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

#include <missiondataconverter.h>

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

Public Member Functions

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

Private Member Functions

void receive_mission_state (std_msgs::UInt8ConstPtr msg)
 

Private Attributes

ros::Subscriber mission_state_subscriber_
 
bool mission_state_initialized_
 
bool changed_
 
adore::fun::MissionData data_
 

Detailed Description

ROS specific implementation of AReader for MissionData. Reads std_msgs::UInt8 (mission state) and converts to adore::fun::MissionData

Constructor & Destructor Documentation

◆ MissionDataReader()

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

Member Function Documentation

◆ getData()

virtual void adore::if_ROS::MissionDataReader::getData ( adore::fun::MissionData value)
inlineoverridevirtual

getData returns the latest data item

Implements adore::mad::AReader< adore::fun::MissionData >.

◆ hasData()

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

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

Implements adore::mad::AReader< adore::fun::MissionData >.

Here is the caller graph for this function:

◆ hasUpdate()

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

hasUpdate indicates whether the data item was updated since last getdata

Implements adore::mad::AReader< adore::fun::MissionData >.

Here is the call graph for this function:

◆ receive_mission_state()

void adore::if_ROS::MissionDataReader::receive_mission_state ( std_msgs::UInt8ConstPtr  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::MissionDataReader::changed_
private

◆ data_

adore::fun::MissionData adore::if_ROS::MissionDataReader::data_
private

◆ mission_state_initialized_

bool adore::if_ROS::MissionDataReader::mission_state_initialized_
private

◆ mission_state_subscriber_

ros::Subscriber adore::if_ROS::MissionDataReader::mission_state_subscriber_
private

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