|
SMACC2
|
#include <smacc_service_client.hpp>


Public Member Functions | |
| SmaccServiceClient (std::string serviceName) | |
| 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 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) |
| const std::vector< std::shared_ptr< ISmaccComponent > > & | iterateComponents () const |
| 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 TClient > | |
| void | onComponentInitialization () |
| template<typename TOrthogonal , typename TSourceObject > | |
| void | onOrthogonalAllocation () |
| template<typename TOrthogonal , typename TSourceObject > | |
| void | onStateOrthogonalAllocation () |
| 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 38 of file smacc_service_client.hpp.
References smacc2::client_bases::SmaccServiceClient< ServiceType >::initialized_.
|
inline |
Definition at line 58 of file smacc_service_client.hpp.
References smacc2::client_bases::SmaccServiceClient< ServiceType >::client_.
|
inlineoverridevirtual |
Reimplemented from smacc2::ISmaccClient.
Definition at line 40 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 68 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 69 of file smacc_service_client.hpp.
Referenced by smacc2::client_bases::SmaccServiceClient< ServiceType >::onInitialize(), smacc2::client_bases::SmaccServiceClient< ServiceType >::SmaccServiceClient(), 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().