Skip to content

Commit

Permalink
style(pre-commit): autofix
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Oct 21, 2024
1 parent 63918e1 commit 00c7973
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
12 changes: 8 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,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<autoware::component_interface_specs::localization::Initialize::Service::Request>();
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;

Expand All @@ -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<autoware::component_interface_specs::localization::Initialize::Service::Request>();
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);
Expand Down
4 changes: 2 additions & 2 deletions autoware_iv_external_api_adaptor/src/initial_pose.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ 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<autoware::component_interface_specs::localization::Initialize>::SharedPtr
cli_localization_initialize_;
component_interface_utils::Client<autoware::component_interface_specs::localization::Initialize>::
SharedPtr cli_localization_initialize_;

// ros callback
void setInitializePose(
Expand Down

0 comments on commit 00c7973

Please sign in to comment.