Public Member Functions | Private Member Functions | Private Attributes | List of all members
kobuki::FakeKobukiRos Class Reference

#include <fake_kobuki_ros.h>

Public Member Functions

 FakeKobukiRos (std::string &node_name)
 
bool init (ros::NodeHandle &nh)
 
bool update ()
 
 ~FakeKobukiRos ()
 

Private Member Functions

void advertiseTopics (ros::NodeHandle &nh)
 
void publishVersionInfoOnce ()
 
void subscribeMotorPowerCommand (const kobuki_msgs::MotorPowerConstPtr msg)
 
void subscribeTopics (ros::NodeHandle &nh)
 
void subscribeVelocityCommand (const geometry_msgs::TwistConstPtr msg)
 
void updateJoint (unsigned int index, double &w, ros::Duration step_time)
 
void updateOdometry (double w_left, double w_right, ros::Duration step_time)
 
void updateTF (geometry_msgs::TransformStamped &odom_tf)
 

Private Attributes

std::map< std::string, ros::Publisherevent_publisher
 
FakeKobuki kobuki
 
ros::Time last_cmd_vel_time
 
std::string name
 
ros::Time prev_update_time
 
std::map< std::string, ros::Publisherpublisher
 
std::map< std::string, ros::Publishersensor_publisher
 
std::map< std::string, ros::Subscribersubscriber
 
tf::TransformBroadcaster tf_broadcaster
 

Detailed Description

Definition at line 57 of file fake_kobuki_ros.h.

Constructor & Destructor Documentation

kobuki::FakeKobukiRos::FakeKobukiRos ( std::string node_name)

Definition at line 6 of file fake_kobuki_ros.cpp.

kobuki::FakeKobukiRos::~FakeKobukiRos ( )

Definition at line 11 of file fake_kobuki_ros.cpp.

Member Function Documentation

void kobuki::FakeKobukiRos::advertiseTopics ( ros::NodeHandle nh)
private

Definition at line 32 of file fake_kobuki_ros.cpp.

bool kobuki::FakeKobukiRos::init ( ros::NodeHandle nh)

Definition at line 15 of file fake_kobuki_ros.cpp.

void kobuki::FakeKobukiRos::publishVersionInfoOnce ( )
private

Definition at line 70 of file fake_kobuki_ros.cpp.

void kobuki::FakeKobukiRos::subscribeMotorPowerCommand ( const kobuki_msgs::MotorPowerConstPtr  msg)
private

Definition at line 82 of file fake_kobuki_ros.cpp.

void kobuki::FakeKobukiRos::subscribeTopics ( ros::NodeHandle nh)
private

Definition at line 63 of file fake_kobuki_ros.cpp.

void kobuki::FakeKobukiRos::subscribeVelocityCommand ( const geometry_msgs::TwistConstPtr  msg)
private

Definition at line 75 of file fake_kobuki_ros.cpp.

bool kobuki::FakeKobukiRos::update ( )

Definition at line 158 of file fake_kobuki_ros.cpp.

void kobuki::FakeKobukiRos::updateJoint ( unsigned int  index,
double &  w,
ros::Duration  step_time 
)
private

Definition at line 96 of file fake_kobuki_ros.cpp.

void kobuki::FakeKobukiRos::updateOdometry ( double  w_left,
double  w_right,
ros::Duration  step_time 
)
private

Definition at line 105 of file fake_kobuki_ros.cpp.

void kobuki::FakeKobukiRos::updateTF ( geometry_msgs::TransformStamped &  odom_tf)
private

Definition at line 147 of file fake_kobuki_ros.cpp.

Member Data Documentation

std::map<std::string,ros::Publisher> kobuki::FakeKobukiRos::event_publisher
private

Definition at line 90 of file fake_kobuki_ros.h.

FakeKobuki kobuki::FakeKobukiRos::kobuki
private

Definition at line 99 of file fake_kobuki_ros.h.

ros::Time kobuki::FakeKobukiRos::last_cmd_vel_time
private

Definition at line 84 of file fake_kobuki_ros.h.

std::string kobuki::FakeKobukiRos::name
private

Definition at line 83 of file fake_kobuki_ros.h.

ros::Time kobuki::FakeKobukiRos::prev_update_time
private

Definition at line 85 of file fake_kobuki_ros.h.

std::map<std::string,ros::Publisher> kobuki::FakeKobukiRos::publisher
private

Definition at line 88 of file fake_kobuki_ros.h.

std::map<std::string,ros::Publisher> kobuki::FakeKobukiRos::sensor_publisher
private

Definition at line 92 of file fake_kobuki_ros.h.

std::map<std::string,ros::Subscriber> kobuki::FakeKobukiRos::subscriber
private

Definition at line 97 of file fake_kobuki_ros.h.

tf::TransformBroadcaster kobuki::FakeKobukiRos::tf_broadcaster
private

Definition at line 94 of file fake_kobuki_ros.h.


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


kobuki_softnode
Author(s): Jihoon Lee
autogenerated on Mon Jun 10 2019 13:52:14