From 6100a949d65e7fb886d5f9501977dfaea34e660d Mon Sep 17 00:00:00 2001 From: Chris Lalancette Date: Mon, 26 Feb 2024 13:43:37 -0500 Subject: [PATCH] Shorten the callback definition for uncrustify. (#163) This should ensure that it works for both uncrustify 0.72 and 0.78. Signed-off-by: Chris Lalancette --- turtlesim/tutorials/teleop_turtle_key.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/turtlesim/tutorials/teleop_turtle_key.cpp b/turtlesim/tutorials/teleop_turtle_key.cpp index 9e6ac557..bd70fd4f 100644 --- a/turtlesim/tutorials/teleop_turtle_key.cpp +++ b/turtlesim/tutorials/teleop_turtle_key.cpp @@ -305,13 +305,12 @@ class TeleopTurtle final void sendGoal(float theta) { - auto goal = turtlesim::action::RotateAbsolute::Goal(); + using Rotate = turtlesim::action::RotateAbsolute; + auto goal = Rotate::Goal(); goal.theta = theta; - auto send_goal_options = - rclcpp_action::Client::SendGoalOptions(); + auto send_goal_options = rclcpp_action::Client::SendGoalOptions(); send_goal_options.goal_response_callback = - [this](rclcpp_action::ClientGoalHandle::SharedPtr - goal_handle) + [this](rclcpp_action::ClientGoalHandle::SharedPtr goal_handle) { RCLCPP_DEBUG(nh_->get_logger(), "Goal response received"); this->goal_handle_ = goal_handle;