rclcpp_action
master
C++ ROS Action Client Library
|
Go to the documentation of this file.
15 #ifndef RCLCPP_ACTION__CLIENT_GOAL_HANDLE_HPP_
16 #define RCLCPP_ACTION__CLIENT_GOAL_HANDLE_HPP_
18 #include <rcl_action/action_client.h>
20 #include <action_msgs/msg/goal_status.hpp>
38 UNKNOWN = action_msgs::msg::GoalStatus::STATUS_UNKNOWN,
39 SUCCEEDED = action_msgs::msg::GoalStatus::STATUS_SUCCEEDED,
40 CANCELED = action_msgs::msg::GoalStatus::STATUS_CANCELED,
41 ABORTED = action_msgs::msg::GoalStatus::STATUS_ABORTED
46 template<
typename ActionT>
58 template<
typename ActionT>
72 typename ActionT::Result::SharedPtr
result;
76 using Result =
typename ActionT::Result;
121 call_feedback_callback(
140 set_result_awareness(
bool awareness);
143 set_status(int8_t status);
152 is_invalidated()
const;
158 bool is_result_aware_{
false};
164 int8_t status_{GoalStatus::STATUS_ACCEPTED};
171 #endif // RCLCPP_ACTION__CLIENT_GOAL_HANDLE_HPP_
struct rclcpp_action::ClientGoalHandle::WrappedResult WrappedResult
const GoalUUID & get_goal_id() const
Get the unique ID for the goal.
Definition: client_goal_handle_impl.hpp:46
Class for interacting with goals sent from action clients.
Definition: client_goal_handle.hpp:59
ActionT::Result::SharedPtr result
User defined fields sent back with an action.
Definition: client_goal_handle.hpp:72
Definition: client.hpp:46
GoalUUID goal_id
The unique identifier of the goal.
Definition: client_goal_handle.hpp:68
bool is_feedback_aware()
Check if an action client has subscribed to feedback for the goal.
Definition: client_goal_handle_impl.hpp:115
Definition: client_goal_handle.hpp:65
Definition: exceptions.hpp:34
typename ActionT::Feedback Feedback
Definition: client_goal_handle.hpp:75
ResultCode code
A status to indicate if the goal was canceled, aborted, or suceeded.
Definition: client_goal_handle.hpp:70
action_msgs::msg::GoalInfo GoalInfo
Definition: types.hpp:34
virtual ~ClientGoalHandle()
Definition: client_goal_handle_impl.hpp:40
int8_t get_status()
Get the goal status code.
Definition: client_goal_handle_impl.hpp:99
bool is_result_aware()
Check if an action client has requested the result for the goal.
Definition: client_goal_handle_impl.hpp:123
std::function< void(const WrappedResult &result)> ResultCallback
Definition: client_goal_handle.hpp:81
#define RCLCPP_SMART_PTR_DEFINITIONS_NOT_COPYABLE(...)
std::function< void(typename ClientGoalHandle< ActionT >::SharedPtr, const std::shared_ptr< const Feedback >)> FeedbackCallback
Definition: client_goal_handle.hpp:80
ResultCode
The possible statuses that an action goal can finish with.
Definition: client_goal_handle.hpp:36
Action Client.
Definition: client.hpp:262
typename ActionT::Result Result
Definition: client_goal_handle.hpp:76
rclcpp::Time get_goal_stamp() const
Get the time when the goal was accepted.
Definition: client_goal_handle_impl.hpp:53