ADORe
ADORe is a modular open source software library and toolkit for decision making, planning, control and simulation of automated vehicles
adore::if_ROS::TrafficLightSimWriter Class Reference

#include <trafficlightsimconverter.h>

Inheritance diagram for adore::if_ROS::TrafficLightSimWriter:
Inheritance graph
Collaboration diagram for adore::if_ROS::TrafficLightSimWriter:
Collaboration graph

Public Member Functions

 TrafficLightSimWriter (ros::NodeHandle *n, const std::string tlSimTopic, int qsize)
 
virtual bool canWriteMore () const override
 canWriteMore indicates whether more data can be written More...
 
virtual void write (const adore::env::SimTrafficLight &value) override
 write sends out data value More...
 
virtual std::string getDesc () override
 
- Public Member Functions inherited from adore::mad::AWriter< adore::env::SimTrafficLight >
virtual uint32_t getNumberOfSubscribers () const
 

Private Attributes

ros::Publisher simTLPublisher_
 

Detailed Description

ROS specific implementation of AWriter for adore::env::SimTrafficLight. Transmits adore::env::SimTrafficLight by sending a ROS TrafficLightSimulation msg.

Constructor & Destructor Documentation

◆ TrafficLightSimWriter()

adore::if_ROS::TrafficLightSimWriter::TrafficLightSimWriter ( ros::NodeHandle *  n,
const std::string  tlSimTopic,
int  qsize 
)
inline

Member Function Documentation

◆ canWriteMore()

virtual bool adore::if_ROS::TrafficLightSimWriter::canWriteMore ( ) const
inlineoverridevirtual

canWriteMore indicates whether more data can be written

Implements adore::mad::AWriter< adore::env::SimTrafficLight >.

◆ getDesc()

virtual std::string adore::if_ROS::TrafficLightSimWriter::getDesc ( )
inlineoverridevirtual

describes the implementation of the writer

Returns
default implementation only returns best guess for type T

Reimplemented from adore::mad::AWriter< adore::env::SimTrafficLight >.

◆ write()

virtual void adore::if_ROS::TrafficLightSimWriter::write ( const adore::env::SimTrafficLight value)
inlineoverridevirtual

write sends out data value

Implements adore::mad::AWriter< adore::env::SimTrafficLight >.

Here is the call graph for this function:

Member Data Documentation

◆ simTLPublisher_

ros::Publisher adore::if_ROS::TrafficLightSimWriter::simTLPublisher_
private

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