|
MoveIt Pro API
Core Behaviors for MoveIt Pro
|
Provides an interface to an action client that can handle a single goal at a time. More...
#include <action_client_behavior_base.hpp>

Public Member Functions | |
| virtual | ~ClientInterfaceBase ()=default |
| virtual void | initialize (const std::string &action_name, std::chrono::duration< double > wait_for_server_timeout, std::chrono::duration< double > goal_response_timeout, std::chrono::duration< double > goal_result_timeout, std::chrono::duration< double > cancel_response_timeout)=0 |
| Initialize the action client. | |
| virtual bool | waitForActionServer () const =0 |
| Block until the action server is ready or a timeout is exceeded. | |
| virtual tl::expected< void, std::string > | syncSendGoal (const typename ActionT::Goal &goal, typename ClientGoalHandle::FeedbackCallback feedback_fn)=0 |
| Send an action goal and block until the goal is accepted or a timeout is exceeded. | |
| virtual tl::expected< typename ActionClientBehaviorBase::ClientGoalHandle::WrappedResult, std::string > | syncGetResult (const std::string &timeout_message) const =0 |
| Block until the in-progress action result is received or a timeout is exceeded. | |
| virtual tl::expected< std::shared_ptr< typename ActionT::Impl::CancelGoalService::Response >, std::string > | syncCancelGoal () const =0 |
| Send a request to cancel an in-progress action goal and block until the cancellation request is accepted or a timeout is exceeded. | |
Provides an interface to an action client that can handle a single goal at a time.
|
virtualdefault |
|
pure virtual |
Initialize the action client.
| action_name | Action name to use when initializing the client. |
| wait_for_server_timeout | Duration to wait for the action server to be available before failing. |
| goal_response_timeout | Duration to wait for a goal response before failing. |
| goal_result_timeout | Duration to wait for a result before failing. If the duration is negative, wait forever. |
| cancel_response_timeout | Duration to wait for a cancel response before failing. |
Implemented in moveit_pro::behaviors::ActionClientBehaviorBase< ActionT >::RclcppClientInterface.
|
pure virtual |
Send a request to cancel an in-progress action goal and block until the cancellation request is accepted or a timeout is exceeded.
Implemented in moveit_pro::behaviors::ActionClientBehaviorBase< ActionT >::RclcppClientInterface.
|
pure virtual |
Block until the in-progress action result is received or a timeout is exceeded.
| timeout_message | The error message to surface if a timeout is reached before a goal result is returned. |
Implemented in moveit_pro::behaviors::ActionClientBehaviorBase< ActionT >::RclcppClientInterface.
|
pure virtual |
Send an action goal and block until the goal is accepted or a timeout is exceeded.
| goal | Action goal message to send to the action server. |
| feedback_fn | Function to execute when the action goal handle received feedback from the server during execution. |
Implemented in moveit_pro::behaviors::ActionClientBehaviorBase< ActionT >::RclcppClientInterface.
|
pure virtual |
Block until the action server is ready or a timeout is exceeded.
Implemented in moveit_pro::behaviors::ActionClientBehaviorBase< ActionT >::RclcppClientInterface.