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

#include <motioncommandconverter.h>

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

Public Member Functions

 MotionCommandWriter (ros::NodeHandle *n, const std::string axtopic, const std::string deltatopic, int qsize)
 
virtual bool canWriteMore () const override
 canWriteMore indicates whether more data can be written More...
 
virtual void write (const adore::fun::MotionCommand &value) override
 write sends out data value More...
 
- Public Member Functions inherited from adore::mad::AWriter< adore::fun::MotionCommand >
virtual std::string getDesc ()
 
virtual uint32_t getNumberOfSubscribers () const
 

Private Attributes

ros::Publisher accelerationPublisher_
 
ros::Publisher steeringAnglePublisher_
 

Detailed Description

ROS specific implementation of AWriter for adore::fun::MotionCommand. Transmits a MotionCommand by sending two ROS std_msgs::Float32 for acceleration and steering angle.

Constructor & Destructor Documentation

◆ MotionCommandWriter()

adore::if_ROS::MotionCommandWriter::MotionCommandWriter ( ros::NodeHandle *  n,
const std::string  axtopic,
const std::string  deltatopic,
int  qsize 
)
inline

Member Function Documentation

◆ canWriteMore()

virtual bool adore::if_ROS::MotionCommandWriter::canWriteMore ( ) const
inlineoverridevirtual

canWriteMore indicates whether more data can be written

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

◆ write()

virtual void adore::if_ROS::MotionCommandWriter::write ( const adore::fun::MotionCommand value)
inlineoverridevirtual

write sends out data value

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

Here is the call graph for this function:

Member Data Documentation

◆ accelerationPublisher_

ros::Publisher adore::if_ROS::MotionCommandWriter::accelerationPublisher_
private

◆ steeringAnglePublisher_

ros::Publisher adore::if_ROS::MotionCommandWriter::steeringAnglePublisher_
private

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