SMACC2
|
#include <cb_call_service.hpp>
Public Attributes | |
std::shared_future< std::shared_ptr< typename ServiceType::Response > > | resultFuture_ |
std::shared_ptr< typename ServiceType::Response > | result_ |
std::chrono::milliseconds | pollRate_ |
Protected Member Functions | |
virtual void | onServiceResponse (std::shared_ptr< typename ServiceType::Response >) |
Protected Member Functions inherited from smacc2::SmaccAsyncClientBehavior | |
void | postSuccessEvent () |
void | postFailureEvent () |
virtual void | dispose () override |
bool | isShutdownRequested () |
onEntry is executed in a new thread. However the current state cannot be left until the onEntry thread finishes. This flag can be checked from the onEntry thread to force finishing the thread. | |
Protected Member Functions inherited from smacc2::ISmaccClientBehavior | |
virtual void | runtimeConfigure () |
template<typename EventType > | |
void | postEvent (const EventType &ev) |
template<typename EventType > | |
void | postEvent () |
ISmaccState * | getCurrentState () |
virtual rclcpp::Node::SharedPtr | getNode () const |
virtual rclcpp::Logger | getLogger () const |
Protected Attributes | |
std::shared_ptr< rclcpp::Client< ServiceType > > | client_ |
std::string | serviceName_ |
std::shared_ptr< typename ServiceType::Request > | request_ |
Definition at line 30 of file cb_call_service.hpp.
|
inline |
Definition at line 33 of file cb_call_service.hpp.
References smacc2::client_behaviors::CbServiceCall< ServiceType >::pollRate_, and smacc2::client_behaviors::CbServiceCall< ServiceType >::request_.
|
inline |
Definition at line 39 of file cb_call_service.hpp.
|
inlineoverridevirtual |
Reimplemented from smacc2::ISmaccClientBehavior.
Definition at line 46 of file cb_call_service.hpp.
References smacc2::client_behaviors::CbServiceCall< ServiceType >::client_, smacc2::ISmaccClientBehavior::getLogger(), smacc2::ISmaccClientBehavior::getName(), smacc2::ISmaccClientBehavior::getNode(), smacc2::SmaccAsyncClientBehavior::isShutdownRequested(), smacc2::client_behaviors::CbServiceCall< ServiceType >::onServiceResponse(), smacc2::client_behaviors::CbServiceCall< ServiceType >::pollRate_, smacc2::SmaccAsyncClientBehavior::postFailureEvent(), smacc2::SmaccAsyncClientBehavior::postSuccessEvent(), smacc2::client_behaviors::CbServiceCall< ServiceType >::request_, smacc2::client_behaviors::CbServiceCall< ServiceType >::result_, smacc2::client_behaviors::CbServiceCall< ServiceType >::resultFuture_, and smacc2::client_behaviors::CbServiceCall< ServiceType >::serviceName_.
Referenced by cl_nav2z::CbPauseSlam::onEntry(), cl_nav2z::CbResumeSlam::onEntry(), cl_nitrosz::CbPauseSlam::onEntry(), and cl_nitrosz::CbResumeSlam::onEntry().
|
inlineprotectedvirtual |
Definition at line 98 of file cb_call_service.hpp.
References smacc2::ISmaccClientBehavior::getLogger(), and smacc2::ISmaccClientBehavior::getName().
Referenced by smacc2::client_behaviors::CbServiceCall< ServiceType >::onEntry().
|
protected |
Definition at line 94 of file cb_call_service.hpp.
Referenced by smacc2::client_behaviors::CbServiceCall< ServiceType >::onEntry().
std::chrono::milliseconds smacc2::client_behaviors::CbServiceCall< ServiceType >::pollRate_ |
Definition at line 90 of file cb_call_service.hpp.
Referenced by smacc2::client_behaviors::CbServiceCall< ServiceType >::CbServiceCall(), and smacc2::client_behaviors::CbServiceCall< ServiceType >::onEntry().
|
protected |
Definition at line 96 of file cb_call_service.hpp.
Referenced by smacc2::client_behaviors::CbServiceCall< ServiceType >::CbServiceCall(), and smacc2::client_behaviors::CbServiceCall< ServiceType >::onEntry().
std::shared_ptr<typename ServiceType::Response> smacc2::client_behaviors::CbServiceCall< ServiceType >::result_ |
Definition at line 89 of file cb_call_service.hpp.
Referenced by smacc2::client_behaviors::CbServiceCall< ServiceType >::onEntry().
std::shared_future<std::shared_ptr<typename ServiceType::Response> > smacc2::client_behaviors::CbServiceCall< ServiceType >::resultFuture_ |
Definition at line 87 of file cb_call_service.hpp.
Referenced by smacc2::client_behaviors::CbServiceCall< ServiceType >::onEntry().
|
protected |
Definition at line 95 of file cb_call_service.hpp.
Referenced by smacc2::client_behaviors::CbServiceCall< ServiceType >::onEntry().