File tree 1 file changed +4
-5
lines changed
1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -305,13 +305,12 @@ class TeleopTurtle final
305
305
306
306
void sendGoal (float theta)
307
307
{
308
- auto goal = turtlesim::action::RotateAbsolute::Goal ();
308
+ using Rotate = turtlesim::action::RotateAbsolute;
309
+ auto goal = Rotate::Goal ();
309
310
goal.theta = theta;
310
- auto send_goal_options =
311
- rclcpp_action::Client<turtlesim::action::RotateAbsolute>::SendGoalOptions ();
311
+ auto send_goal_options = rclcpp_action::Client<Rotate>::SendGoalOptions ();
312
312
send_goal_options.goal_response_callback =
313
- [this ](rclcpp_action::ClientGoalHandle<turtlesim::action::RotateAbsolute>::SharedPtr
314
- goal_handle)
313
+ [this ](rclcpp_action::ClientGoalHandle<Rotate>::SharedPtr goal_handle)
315
314
{
316
315
RCLCPP_DEBUG (nh_->get_logger (), " Goal response received" );
317
316
this ->goal_handle_ = goal_handle;
You can’t perform that action at this time.
0 commit comments