diff --git a/turtlebot4_node/include/turtlebot4_node/action.hpp b/turtlebot4_node/include/turtlebot4_node/action.hpp index 58972c4..72f235b 100644 --- a/turtlebot4_node/include/turtlebot4_node/action.hpp +++ b/turtlebot4_node/include/turtlebot4_node/action.hpp @@ -141,9 +141,8 @@ class Turtlebot4Action * @input future - Shared future with goal response */ void goal_response_callback( - std::shared_future::SharedPtr> future) + typename rclcpp_action::ClientGoalHandle::SharedPtr goal_handle) { - auto goal_handle = future.get(); if (!goal_handle) { RCLCPP_ERROR(nh_->get_logger(), "%s goal was rejected by server", action_.c_str()); } else {