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

#include <motioncommandconverter.h>

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

Public Member Functions

 MotionCommandReader (ros::NodeHandle *n, const std::string axtopic, const std::string steeringtopic, int qsize)
 
virtual bool hasData () const override
 hasData indicates whether the data has been initialized with a first data item More...
 
virtual bool hasUpdate () const override
 hasUpdate indicates whether the data item was updated since last getdata More...
 
virtual void getData (adore::fun::MotionCommand &value)
 getData returns the latest data item More...
 
- Public Member Functions inherited from adore::mad::AReader< adore::fun::MotionCommand >
virtual std::string getDesc ()
 

Private Member Functions

void receive_accelerationRequest (std_msgs::Float32ConstPtr msg)
 
void receive_steeringRequest (std_msgs::Float32ConstPtr msg)
 

Private Attributes

bool changed_
 
bool acceleration_initialized_
 
bool steering_initialized_
 
ros::Subscriber accelerationSubscriber_
 
ros::Subscriber steeringSubscriber_
 
adore::fun::MotionCommand data_
 

Detailed Description

ROS specific implementation of AReader for adore::fun::MotionCommand. Receives two std_msgs::Float32 to create adore::fun::MotionCommand.

Constructor & Destructor Documentation

◆ MotionCommandReader()

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

Member Function Documentation

◆ getData()

virtual void adore::if_ROS::MotionCommandReader::getData ( adore::fun::MotionCommand value)
inlinevirtual

getData returns the latest data item

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

◆ hasData()

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

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

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

◆ hasUpdate()

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

hasUpdate indicates whether the data item was updated since last getdata

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

◆ receive_accelerationRequest()

void adore::if_ROS::MotionCommandReader::receive_accelerationRequest ( std_msgs::Float32ConstPtr  msg)
inlineprivate
Here is the call graph for this function:
Here is the caller graph for this function:

◆ receive_steeringRequest()

void adore::if_ROS::MotionCommandReader::receive_steeringRequest ( std_msgs::Float32ConstPtr  msg)
inlineprivate
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ acceleration_initialized_

bool adore::if_ROS::MotionCommandReader::acceleration_initialized_
private

◆ accelerationSubscriber_

ros::Subscriber adore::if_ROS::MotionCommandReader::accelerationSubscriber_
private

◆ changed_

bool adore::if_ROS::MotionCommandReader::changed_
private

◆ data_

adore::fun::MotionCommand adore::if_ROS::MotionCommandReader::data_
private

◆ steering_initialized_

bool adore::if_ROS::MotionCommandReader::steering_initialized_
private

◆ steeringSubscriber_

ros::Subscriber adore::if_ROS::MotionCommandReader::steeringSubscriber_
private

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