SMACC2
|
#include <smacc_service_client.hpp>
Public Member Functions | |
SmaccServiceClient () | |
void | onInitialize () override |
std::shared_ptr< typename ServiceType::Response > | call (std::shared_ptr< typename ServiceType::Request > &request) |
Public Member Functions inherited from smacc2::ISmaccClient | |
ISmaccClient () | |
virtual | ~ISmaccClient () |
virtual void | onInitialize () |
virtual std::string | getName () const |
template<typename TComponent > | |
TComponent * | getComponent () |
template<typename TComponent > | |
TComponent * | getComponent (std::string name) |
template<typename TComponent > | |
TComponent * | getComponent (int index) |
virtual smacc2::introspection::TypeInfo::Ptr | getType () |
ISmaccStateMachine * | getStateMachine () |
template<typename TSmaccSignal , typename T > | |
void | connectSignal (TSmaccSignal &signal, void(T::*callback)(), T *object) |
template<typename SmaccClientType > | |
void | requiresClient (SmaccClientType *&storage) |
void | getComponents (std::vector< std::shared_ptr< ISmaccComponent > > &components) |
template<typename EventType > | |
void | postEvent (const EventType &ev) |
template<typename EventType > | |
void | postEvent () |
Public Attributes | |
std::optional< std::string > | serviceName_ |
Protected Attributes | |
std::shared_ptr< rclcpp::Client< ServiceType > > | client_ |
bool | initialized_ |
Protected Attributes inherited from smacc2::ISmaccClient | |
std::map< ComponentKey, std::shared_ptr< smacc2::ISmaccComponent > > | components_ |
Additional Inherited Members | |
Protected Member Functions inherited from smacc2::ISmaccClient | |
template<typename TOrthogonal , typename TSourceObject > | |
void | onOrthogonalAllocation () |
template<typename SmaccComponentType , typename TOrthogonal , typename TClient , typename... TArgs> | |
SmaccComponentType * | createComponent (TArgs... targs) |
template<typename SmaccComponentType , typename TOrthogonal , typename TClient , typename... TArgs> | |
SmaccComponentType * | createNamedComponent (std::string name, TArgs... targs) |
rclcpp::Node::SharedPtr | getNode () |
rclcpp::Logger | getLogger () |
Definition at line 31 of file smacc_service_client.hpp.
|
inline |
Definition at line 36 of file smacc_service_client.hpp.
References smacc2::client_bases::SmaccServiceClient< ServiceType >::initialized_.
|
inline |
Definition at line 56 of file smacc_service_client.hpp.
References smacc2::client_bases::SmaccServiceClient< ServiceType >::client_.
Referenced by sm_dance_bot::cl_service3::CbService3::onEntry(), sm_dance_bot_strikes_back::cl_service3::CbService3::onEntry(), sm_dance_bot_warehouse::cl_service3::CbService3::onEntry(), sm_dance_bot_warehouse_2::cl_service3::CbService3::onEntry(), and sm_dance_bot_warehouse_3::cl_service3::CbService3::onEntry().
|
inlineoverridevirtual |
Reimplemented from smacc2::ISmaccClient.
Definition at line 38 of file smacc_service_client.hpp.
References smacc2::client_bases::SmaccServiceClient< ServiceType >::client_, smacc2::ISmaccClient::getLogger(), smacc2::ISmaccClient::getName(), smacc2::ISmaccClient::getNode(), smacc2::client_bases::SmaccServiceClient< ServiceType >::initialized_, and smacc2::client_bases::SmaccServiceClient< ServiceType >::serviceName_.
|
protected |
Definition at line 66 of file smacc_service_client.hpp.
Referenced by smacc2::client_bases::SmaccServiceClient< ServiceType >::call(), and smacc2::client_bases::SmaccServiceClient< ServiceType >::onInitialize().
|
protected |
Definition at line 67 of file smacc_service_client.hpp.
Referenced by smacc2::client_bases::SmaccServiceClient< ServiceType >::onInitialize(), and smacc2::client_bases::SmaccServiceClient< ServiceType >::SmaccServiceClient().
std::optional<std::string> smacc2::client_bases::SmaccServiceClient< ServiceType >::serviceName_ |
Definition at line 34 of file smacc_service_client.hpp.
Referenced by smacc2::client_bases::SmaccServiceClient< ServiceType >::onInitialize().