SMACC
Loading...
Searching...
No Matches
Public Member Functions | List of all members
cl_ros_publisher::ClRosPublisher Class Reference

#include <cl_ros_publisher.h>

Inheritance diagram for cl_ros_publisher::ClRosPublisher:
Inheritance graph
Collaboration diagram for cl_ros_publisher::ClRosPublisher:
Collaboration graph

Public Member Functions

 ClRosPublisher ()
 
template<typename MessageType >
void configure (std::string topicName)
 
template<typename MessageType >
void publish (const MessageType &msg)
 
- Public Member Functions inherited from smacc::client_bases::SmaccPublisherClient
 SmaccPublisherClient ()
 
virtual ~SmaccPublisherClient ()
 
template<typename MessageType >
void configure (std::string topicName)
 
template<typename MessageType >
void publish (const MessageType &msg)
 
- Public Member Functions inherited from smacc::ISmaccClient
 ISmaccClient ()
 
virtual ~ISmaccClient ()
 
virtual void initialize ()
 
virtual std::string getName () const
 
template<typename EventType >
void postEvent (const EventType &ev)
 
template<typename EventType >
void postEvent ()
 
template<typename TComponent >
TComponent * getComponent ()
 
template<typename TComponent >
TComponent * getComponent (std::string name)
 
virtual smacc::introspection::TypeInfo::Ptr getType ()
 
ISmaccStateMachinegetStateMachine ()
 
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)
 

Additional Inherited Members

- Public Attributes inherited from smacc::client_bases::SmaccPublisherClient
boost::optional< std::string > topicName
 
boost::optional< int > queueSize
 
- Protected Member Functions inherited from smacc::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)
 
void setStateMachine (ISmaccStateMachine *stateMachine)
 
void setOrthogonal (ISmaccOrthogonal *orthogonal)
 
- Protected Attributes inherited from smacc::client_bases::SmaccPublisherClient
ros::NodeHandle nh_
 
ros::Publisher pub_
 
- Protected Attributes inherited from smacc::ISmaccClient
std::map< ComponentKey, std::shared_ptr< smacc::ISmaccComponent > > components_
 

Detailed Description

Definition at line 9 of file cl_ros_publisher.h.

Constructor & Destructor Documentation

◆ ClRosPublisher()

cl_ros_publisher::ClRosPublisher::ClRosPublisher ( )
inline

Definition at line 12 of file cl_ros_publisher.h.

13 {
14 }

Member Function Documentation

◆ configure()

template<typename MessageType >
void cl_ros_publisher::ClRosPublisher::configure ( std::string  topicName)
inline

Definition at line 17 of file cl_ros_publisher.h.

18 {
19 SmaccPublisherClient::configure<MessageType>(topicName);
20 }

References smacc::client_bases::SmaccPublisherClient::topicName.

◆ publish()

template<typename MessageType >
void cl_ros_publisher::ClRosPublisher::publish ( const MessageType &  msg)
inline

Definition at line 23 of file cl_ros_publisher.h.

24 {
25 SmaccPublisherClient::publish(msg);
26 }

Referenced by cl_ros_publisher::CbDefaultPublishLoop::setMessage(), and cl_ros_publisher::CbPublishOnce< RosMsgType >::setMessage().

Here is the caller graph for this function:

The documentation for this class was generated from the following file: