The MAUVE Toolchain
mauve::ros::Publisher< T, ROS_T > Struct Template Reference

Adapter of the ROS Publisher. More...

#include <Publisher.hpp>

Inheritance diagram for mauve::ros::Publisher< T, ROS_T >:
Collaboration diagram for mauve::ros::Publisher< T, ROS_T >:

Protected Member Functions

virtual bool open (const std::string &topic) final
 Open publisher on topic topic. More...
 
virtual void shutdown () final
 Shutdown the publisher.
 

Protected Attributes

ROS_T msg
 The ROS message owned by the resource.
 
runtime::RtMutex mutex
 A mutex to protect the msg.
 
::ros::Publisher publisher
 The ROS publisher.
 

Additional Inherited Members

- Public Member Functions inherited from mauve::ros::Connector
bool init ()
 Initialize ROS Node.
 
- Public Member Functions inherited from mauve::runtime::WithLogger
virtual AbstractLoggerlogger () const =0
 Get the logger.
 
- Static Public Attributes inherited from mauve::ros::Connector
::ros::NodeHandle * node
 An handle to the ROS node.
 
::ros::NodeHandle * node_private
 An handle to the private view of the ROS node.
 

Detailed Description

template<typename T, typename ROS_T>
struct mauve::ros::Publisher< T, ROS_T >

Adapter of the ROS Publisher.

Template Parameters
TMAUVE Type
ROS_TROS Type

Member Function Documentation

template<typename T , typename ROS_T >
bool mauve::ros::Publisher< T, ROS_T >::open ( const std::string &  topic)
finalprotectedvirtual

Open publisher on topic topic.

Parameters
topicThe topic name