From 00c797375e08ddfe009b75c9f2d2b63062220149 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 21 Oct 2024 22:37:56 +0000 Subject: [PATCH] style(pre-commit): autofix --- .../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 be05cac..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 = autoware::component_interface_specs::localization::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 = autoware::component_interface_specs::localization::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 79081e1..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(