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

TPSetMultiReader reads two ros topics and combines data from both. More...

#include <trafficparticipantconverter.h>

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

Public Member Functions

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

Private Member Functions

void receive1 (adore_if_ros_msg::TrafficParticipantSetConstPtr msg)
 
void receive2 (adore_if_ros_msg::TrafficParticipantSetConstPtr msg)
 

Private Attributes

bool initialized_
 
bool changed_
 
adore::env::traffic::TParticipantSet data1_
 
adore::env::traffic::TParticipantSet data2_
 
ros::Subscriber subscriber1_
 
ros::Subscriber subscriber2_
 

Detailed Description

TPSetMultiReader reads two ros topics and combines data from both.

Constructor & Destructor Documentation

◆ TPSetMultiReader()

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

Member Function Documentation

◆ getData()

virtual void adore::if_ROS::TPSetMultiReader::getData ( adore::env::traffic::TParticipantSet value)
inlineoverridevirtual

getData returns the latest data item

Implements adore::mad::AReader< adore::env::traffic::TParticipantSet >.

◆ hasData()

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

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

Implements adore::mad::AReader< adore::env::traffic::TParticipantSet >.

◆ hasUpdate()

virtual bool adore::if_ROS::TPSetMultiReader::hasUpdate ( ) const
inlineoverridevirtual

hasUpdate indicates whether the data item was updated since last getdata

Implements adore::mad::AReader< adore::env::traffic::TParticipantSet >.

◆ receive1()

void adore::if_ROS::TPSetMultiReader::receive1 ( adore_if_ros_msg::TrafficParticipantSetConstPtr  msg)
inlineprivate
Here is the caller graph for this function:

◆ receive2()

void adore::if_ROS::TPSetMultiReader::receive2 ( adore_if_ros_msg::TrafficParticipantSetConstPtr  msg)
inlineprivate
Here is the caller graph for this function:

Member Data Documentation

◆ changed_

bool adore::if_ROS::TPSetMultiReader::changed_
private

◆ data1_

adore::env::traffic::TParticipantSet adore::if_ROS::TPSetMultiReader::data1_
private

◆ data2_

adore::env::traffic::TParticipantSet adore::if_ROS::TPSetMultiReader::data2_
private

◆ initialized_

bool adore::if_ROS::TPSetMultiReader::initialized_
private

◆ subscriber1_

ros::Subscriber adore::if_ROS::TPSetMultiReader::subscriber1_
private

◆ subscriber2_

ros::Subscriber adore::if_ROS::TPSetMultiReader::subscriber2_
private

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