MoveIt Pro Behavior
Core Behaviors for MoveIt Pro
|
Implements ClientInterfaceBase for the rclcpp service client. More...
#include <service_client_interface.hpp>
Public Member Functions | |
RclcppClientInterface (const std::shared_ptr< BehaviorContext > &shared_resources) | |
Constructor for this implementation. More... | |
void | initialize (const std::string &service_name, std::chrono::duration< double > wait_for_server_timeout, std::chrono::duration< double > result_timeout) override |
Implementation of ClientInterfaceBase::initialize for an rclcpp service client. More... | |
bool | waitForServiceServer () const override |
Implementation of ClientInterfaceBase::waitForServiceServer for an rclcpp service client. More... | |
tl::expected< typename ServiceT::Response, std::string > | syncSendRequest (const typename ServiceT::Request &request) override |
Implementation of ClientInterfaceBase::syncGetResult for an rclcpp service client. More... | |
void | cancelRequest () override |
Implementation of ClientInterfaceBase::cancelRequest for an rclcpp service client. More... | |
Public Member Functions inherited from moveit_studio::behaviors::ClientInterfaceBase< ServiceT > | |
virtual | ~ClientInterfaceBase ()=default |
Static Public Attributes | |
static constexpr std::chrono::milliseconds | kResponseBusyWaitPeriod { 100 } |
Implements ClientInterfaceBase for the rclcpp service client.
|
explicit |
Constructor for this implementation.
shared_resources | A shared_ptr to an instance of BehaviorContext. When this behavior is created using |
|
overridevirtual |
Implementation of ClientInterfaceBase::cancelRequest for an rclcpp service client.
Aborts the busy-waiting request loop causing it to return (almost) immediately.
Implements moveit_studio::behaviors::ClientInterfaceBase< ServiceT >.
|
overridevirtual |
Implementation of ClientInterfaceBase::initialize for an rclcpp service client.
Sets client_ to a new service client instance
Implements moveit_studio::behaviors::ClientInterfaceBase< ServiceT >.
|
overridevirtual |
Implementation of ClientInterfaceBase::syncGetResult for an rclcpp service client.
Calls the service client's async_send_request function and blocks while waiting on the future which it returns.
Implements moveit_studio::behaviors::ClientInterfaceBase< ServiceT >.
|
overridevirtual |
Implementation of ClientInterfaceBase::waitForServiceServer for an rclcpp service client.
Calls the service client's wait_for_service function.
Implements moveit_studio::behaviors::ClientInterfaceBase< ServiceT >.
|
staticconstexpr |