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

#include <funvehiclemotionstateconverter.h>

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

Public Member Functions

 MotionStateWriter (ros::NodeHandle *n, const std::string &frame_id, const std::string &odom_topic, const std::string &steering_topic, const std::string &acceleration_topic, int qsize)
 
virtual bool canWriteMore () const override
 
virtual void write (const adore::fun::VehicleMotionState9d &value) override
 
- Public Member Functions inherited from adore::mad::AWriter< adore::fun::VehicleMotionState9d >
virtual std::string getDesc ()
 
virtual uint32_t getNumberOfSubscribers () const
 

Private Attributes

ros::Publisher publisher_odom_
 
ros::Publisher publisher_steering_
 
ros::Publisher publisher_acceleration_
 
tf::TransformBroadcaster broadcaster
 
adore::params::APVehicleparams_
 
bool publisher_steering_initialized_
 
bool publisher_acceleration_initialized_
 
std::string frame_id_
 

Detailed Description

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

Constructor & Destructor Documentation

◆ MotionStateWriter()

adore::if_ROS::MotionStateWriter::MotionStateWriter ( ros::NodeHandle *  n,
const std::string &  frame_id,
const std::string &  odom_topic,
const std::string &  steering_topic,
const std::string &  acceleration_topic,
int  qsize 
)
inline

Member Function Documentation

◆ canWriteMore()

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

canWriteMore indicates whether more data can be written

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

◆ write()

virtual void adore::if_ROS::MotionStateWriter::write ( const adore::fun::VehicleMotionState9d value)
inlineoverridevirtual

write sends out data value

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

Here is the call graph for this function:

Member Data Documentation

◆ broadcaster

tf::TransformBroadcaster adore::if_ROS::MotionStateWriter::broadcaster
private

◆ frame_id_

std::string adore::if_ROS::MotionStateWriter::frame_id_
private

◆ params_

adore::params::APVehicle* adore::if_ROS::MotionStateWriter::params_
private

◆ publisher_acceleration_

ros::Publisher adore::if_ROS::MotionStateWriter::publisher_acceleration_
private

◆ publisher_acceleration_initialized_

bool adore::if_ROS::MotionStateWriter::publisher_acceleration_initialized_
private

◆ publisher_odom_

ros::Publisher adore::if_ROS::MotionStateWriter::publisher_odom_
private

◆ publisher_steering_

ros::Publisher adore::if_ROS::MotionStateWriter::publisher_steering_
private

◆ publisher_steering_initialized_

bool adore::if_ROS::MotionStateWriter::publisher_steering_initialized_
private

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