#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::Publisher > | event_publisher |
FakeKobuki | kobuki |
ros::Time | last_cmd_vel_time |
std::string | name |
ros::Time | prev_update_time |
std::map< std::string, ros::Publisher > | publisher |
std::map< std::string, ros::Publisher > | sensor_publisher |
std::map< std::string, ros::Subscriber > | subscriber |
tf::TransformBroadcaster | tf_broadcaster |
Definition at line 57 of file fake_kobuki_ros.h.
kobuki::FakeKobukiRos::FakeKobukiRos | ( | std::string & | node_name | ) |
Definition at line 6 of file fake_kobuki_ros.cpp.
Definition at line 11 of file fake_kobuki_ros.cpp.
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.
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.
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.
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.
Definition at line 94 of file fake_kobuki_ros.h.