From 947c329e33807637bafbc5cc2795cfe96f89a9bc Mon Sep 17 00:00:00 2001 From: Esteve Fernandez Date: Tue, 22 Oct 2024 00:42:25 +0200 Subject: [PATCH 1/3] refactor(autoware_iv_external_api_adaptor): update component_interface_specs dependency Signed-off-by: Esteve Fernandez --- autoware_iv_external_api_adaptor/package.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoware_iv_external_api_adaptor/package.xml b/autoware_iv_external_api_adaptor/package.xml index 508da09..0a46882 100644 --- a/autoware_iv_external_api_adaptor/package.xml +++ b/autoware_iv_external_api_adaptor/package.xml @@ -11,11 +11,11 @@ autoware_cmake autoware_ad_api_specs + autoware_component_interface_specs autoware_control_msgs autoware_external_api_msgs autoware_system_msgs autoware_vehicle_msgs - component_interface_specs component_interface_utils nlohmann-json-dev rclcpp From d7e73b7fcd88926a22708bdd2aaf13d144baa1c7 Mon Sep 17 00:00:00 2001 From: Esteve Fernandez Date: Tue, 22 Oct 2024 00:42:30 +0200 Subject: [PATCH 2/3] shorten namespaces Signed-off-by: Esteve Fernandez --- .../src/initial_pose.cpp | 12 ++++++++---- .../src/initial_pose.hpp | 4 ++-- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/autoware_iv_external_api_adaptor/src/initial_pose.cpp b/autoware_iv_external_api_adaptor/src/initial_pose.cpp index abf0ebe..3e769b3 100644 --- a/autoware_iv_external_api_adaptor/src/initial_pose.cpp +++ b/autoware_iv_external_api_adaptor/src/initial_pose.cpp @@ -60,8 +60,10 @@ 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(); - 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; @@ -77,8 +79,10 @@ 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(); - 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); diff --git a/autoware_iv_external_api_adaptor/src/initial_pose.hpp b/autoware_iv_external_api_adaptor/src/initial_pose.hpp index 535fbd9..9e335f1 100644 --- a/autoware_iv_external_api_adaptor/src/initial_pose.hpp +++ b/autoware_iv_external_api_adaptor/src/initial_pose.hpp @@ -39,8 +39,8 @@ class InitialPose : public rclcpp::Node rclcpp::CallbackGroup::SharedPtr group_; tier4_api_utils::Service::SharedPtr srv_set_initialize_pose_; tier4_api_utils::Service::SharedPtr srv_set_initialize_pose_auto_; - component_interface_utils::Client::SharedPtr - cli_localization_initialize_; + component_interface_utils::Client:: + SharedPtr cli_localization_initialize_; // ros callback void setInitializePose( From 1fb730eb37f98f39cafeb66cf8552dfeb4d650a8 Mon Sep 17 00:00:00 2001 From: Esteve Fernandez Date: Tue, 22 Oct 2024 00:42:34 +0200 Subject: [PATCH 3/3] update includes Signed-off-by: Esteve Fernandez --- autoware_iv_external_api_adaptor/src/initial_pose.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoware_iv_external_api_adaptor/src/initial_pose.hpp b/autoware_iv_external_api_adaptor/src/initial_pose.hpp index 9e335f1..c4bd49c 100644 --- a/autoware_iv_external_api_adaptor/src/initial_pose.hpp +++ b/autoware_iv_external_api_adaptor/src/initial_pose.hpp @@ -15,7 +15,7 @@ #ifndef INITIAL_POSE_HPP_ #define INITIAL_POSE_HPP_ -#include +#include #include #include #include