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

#include <trafficsimulationfeed.h>

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

Public Member Functions

 TrafficSimulationFeed (ros::NodeHandle *n, const std::string &single_topic, int single_qsize, const std::string &multi_topic, int multi_qsize)
 
virtual bool hasNext () const override
 
virtual void getNext (adore::env::traffic::Participant &value) override
 
virtual void getLatest (adore::env::traffic::Participant &value) override
 

Private Member Functions

void receive_single (adore_if_ros_msg::TrafficParticipantSimulationConstPtr msg)
 receives single message and puts data element in data_queue More...
 
void receive_multi (adore_if_ros_msg::TrafficParticipantSetSimulationConstPtr msg)
 receives aggregates and unpacks into data_ queue More...
 

Private Attributes

std::list< adore::env::traffic::Participantdata_
 
TPSimulationConverter converter_
 
ros::Subscriber single_subscriber_
 
ros::Subscriber multi_subscriber_
 

Constructor & Destructor Documentation

◆ TrafficSimulationFeed()

adore::if_ROS::TrafficSimulationFeed::TrafficSimulationFeed ( ros::NodeHandle *  n,
const std::string &  single_topic,
int  single_qsize,
const std::string &  multi_topic,
int  multi_qsize 
)
inline
Here is the call graph for this function:

Member Function Documentation

◆ getLatest()

virtual void adore::if_ROS::TrafficSimulationFeed::getLatest ( adore::env::traffic::Participant value)
inlineoverridevirtual

getLatest reads the latest data element and discards all previous

Implements adore::mad::AFeed< adore::env::traffic::Participant >.

◆ getNext()

virtual void adore::if_ROS::TrafficSimulationFeed::getNext ( adore::env::traffic::Participant value)
inlineoverridevirtual

getNext reads the next data element

Implements adore::mad::AFeed< adore::env::traffic::Participant >.

◆ hasNext()

virtual bool adore::if_ROS::TrafficSimulationFeed::hasNext ( ) const
inlineoverridevirtual

hasNext indicates whether there is more data to read

Implements adore::mad::AFeed< adore::env::traffic::Participant >.

◆ receive_multi()

void adore::if_ROS::TrafficSimulationFeed::receive_multi ( adore_if_ros_msg::TrafficParticipantSetSimulationConstPtr  msg)
inlineprivate

receives aggregates and unpacks into data_ queue

Here is the caller graph for this function:

◆ receive_single()

void adore::if_ROS::TrafficSimulationFeed::receive_single ( adore_if_ros_msg::TrafficParticipantSimulationConstPtr  msg)
inlineprivate

receives single message and puts data element in data_queue

Here is the caller graph for this function:

Member Data Documentation

◆ converter_

TPSimulationConverter adore::if_ROS::TrafficSimulationFeed::converter_
private

◆ data_

std::list<adore::env::traffic::Participant> adore::if_ROS::TrafficSimulationFeed::data_
private

◆ multi_subscriber_

ros::Subscriber adore::if_ROS::TrafficSimulationFeed::multi_subscriber_
private

◆ single_subscriber_

ros::Subscriber adore::if_ROS::TrafficSimulationFeed::single_subscriber_
private

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