ADORe
ADORe is a modular open source software library and toolkit for decision making, planning, control and simulation of automated vehicles
adore::if_ROS::Writer< T, TMSG, CONVERTER > Class Template Reference

#include <ros_com_patterns.h>

Inheritance diagram for adore::if_ROS::Writer< T, TMSG, CONVERTER >:
Inheritance graph
Collaboration diagram for adore::if_ROS::Writer< T, TMSG, CONVERTER >:
Collaboration graph

Public Member Functions

 Writer (ros::NodeHandle *n, const std::string &topic, int qsize)
 
virtual bool canWriteMore () const override
 
virtual void write (const T &value)
 
virtual uint32_t getNumberOfSubscribers () const override
 
- Public Member Functions inherited from adore::mad::AWriter< T >
virtual std::string getDesc ()
 

Private Attributes

ros::Publisher publisher_
 

Detailed Description

template<class T, class TMSG, class CONVERTER>
class adore::if_ROS::Writer< T, TMSG, CONVERTER >

ROS specific implementation of the AWriter communication pattern.

Constructor & Destructor Documentation

◆ Writer()

template<class T , class TMSG , class CONVERTER >
adore::if_ROS::Writer< T, TMSG, CONVERTER >::Writer ( ros::NodeHandle *  n,
const std::string &  topic,
int  qsize 
)
inline

Member Function Documentation

◆ canWriteMore()

template<class T , class TMSG , class CONVERTER >
virtual bool adore::if_ROS::Writer< T, TMSG, CONVERTER >::canWriteMore ( ) const
inlineoverridevirtual

canWriteMore indicates whether more data can be written

Implements adore::mad::AWriter< T >.

◆ getNumberOfSubscribers()

template<class T , class TMSG , class CONVERTER >
virtual uint32_t adore::if_ROS::Writer< T, TMSG, CONVERTER >::getNumberOfSubscribers ( ) const
inlineoverridevirtual

return the number number of subscribers/readers

Reimplemented from adore::mad::AWriter< T >.

◆ write()

template<class T , class TMSG , class CONVERTER >
virtual void adore::if_ROS::Writer< T, TMSG, CONVERTER >::write ( const T &  value)
inlinevirtual

write sends out data value

Implements adore::mad::AWriter< T >.

Member Data Documentation

◆ publisher_

template<class T , class TMSG , class CONVERTER >
ros::Publisher adore::if_ROS::Writer< T, TMSG, CONVERTER >::publisher_
private

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