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

#include <trafficlightsimconverter.h>

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

Public Member Functions

 TrafficLightSimReader (ros::NodeHandle *n, const std::string &topic_tlsim, int qsize)
 
virtual bool hasData () const override
 
bool hasUpdate () const override
 
virtual void getData (adore::env::SimTrafficLightMap &value) override
 
- Public Member Functions inherited from adore::mad::AReader< adore::env::SimTrafficLightMap >
virtual std::string getDesc ()
 

Private Member Functions

void receive_simTL (adore_if_ros_msg::TrafficLightSimulation msg)
 

Private Attributes

adore::env::SimTrafficLightMap data_
 
ros::Subscriber simTLSubscriber_
 
bool changed_
 

Detailed Description

ROS specific implementation of AReader for adore::env::SimTrafficLight. Receives ROS adore_if_ros_msg::TrafficLightSimulation and creates adore::env::SimTrafficLight.

Constructor & Destructor Documentation

◆ TrafficLightSimReader()

adore::if_ROS::TrafficLightSimReader::TrafficLightSimReader ( ros::NodeHandle *  n,
const std::string &  topic_tlsim,
int  qsize 
)
inline
Here is the call graph for this function:

Member Function Documentation

◆ getData()

virtual void adore::if_ROS::TrafficLightSimReader::getData ( adore::env::SimTrafficLightMap value)
inlineoverridevirtual

getData returns the latest data item

Implements adore::mad::AReader< adore::env::SimTrafficLightMap >.

◆ hasData()

virtual bool adore::if_ROS::TrafficLightSimReader::hasData ( ) const
inlineoverridevirtual

hasData indicates whether the data has been initialized with a first data item

Implements adore::mad::AReader< adore::env::SimTrafficLightMap >.

Here is the caller graph for this function:

◆ hasUpdate()

bool adore::if_ROS::TrafficLightSimReader::hasUpdate ( ) const
inlineoverridevirtual

hasUpdate indicates whether the data item was updated since last getdata

Implements adore::mad::AReader< adore::env::SimTrafficLightMap >.

Here is the call graph for this function:

◆ receive_simTL()

void adore::if_ROS::TrafficLightSimReader::receive_simTL ( adore_if_ros_msg::TrafficLightSimulation  msg)
inlineprivate
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ changed_

bool adore::if_ROS::TrafficLightSimReader::changed_
private

◆ data_

adore::env::SimTrafficLightMap adore::if_ROS::TrafficLightSimReader::data_
private

◆ simTLSubscriber_

ros::Subscriber adore::if_ROS::TrafficLightSimReader::simTLSubscriber_
private

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