Skip to content

Commit

Permalink
shorten namespaces
Browse files Browse the repository at this point in the history
Signed-off-by: Esteve Fernandez <[email protected]>
  • Loading branch information
esteve committed Oct 21, 2024
1 parent 9b67dae commit 63918e1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions autoware_iv_external_api_adaptor/src/initial_pose.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ void InitialPose::setInitializePose(
const tier4_external_api_msgs::srv::InitializePose::Request::SharedPtr request,
const tier4_external_api_msgs::srv::InitializePose::Response::SharedPtr response)
{
const auto req = std::make_shared<localization_interface::Initialize::Service::Request>();
req->method = localization_interface::Initialize::Service::Request::AUTO;
const auto req = std::make_shared<autoware::component_interface_specs::localization::Initialize::Service::Request>();
req->method = autoware::component_interface_specs::localization::Initialize::Service::Request::AUTO;
req->pose_with_covariance.push_back(request->pose);
req->pose_with_covariance.back().pose.covariance = particle_covariance;

Expand All @@ -77,8 +77,8 @@ void InitialPose::setInitializePoseAuto(
const tier4_external_api_msgs::srv::InitializePoseAuto::Request::SharedPtr,
const tier4_external_api_msgs::srv::InitializePoseAuto::Response::SharedPtr response)
{
const auto req = std::make_shared<localization_interface::Initialize::Service::Request>();
req->method = localization_interface::Initialize::Service::Request::AUTO;
const auto req = std::make_shared<autoware::component_interface_specs::localization::Initialize::Service::Request>();
req->method = autoware::component_interface_specs::localization::Initialize::Service::Request::AUTO;

try {
const auto res = cli_localization_initialize_->call(req, initial_pose_timeout);
Expand Down
2 changes: 1 addition & 1 deletion autoware_iv_external_api_adaptor/src/initial_pose.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class InitialPose : public rclcpp::Node
rclcpp::CallbackGroup::SharedPtr group_;
tier4_api_utils::Service<InitializePose>::SharedPtr srv_set_initialize_pose_;
tier4_api_utils::Service<InitializePoseAuto>::SharedPtr srv_set_initialize_pose_auto_;
component_interface_utils::Client<localization_interface::Initialize>::SharedPtr
component_interface_utils::Client<autoware::component_interface_specs::localization::Initialize>::SharedPtr
cli_localization_initialize_;

// ros callback
Expand Down

0 comments on commit 63918e1

Please sign in to comment.