20 #ifndef __ROBOT_STATE__ 21 #define __ROBOT_STATE__ 23 #include <boost/thread/mutex.hpp> 25 #include "nav_msgs/Odometry.h" 58 odom_pub = n->
advertise<nav_msgs::Odometry>(
"odom", 50);
75 boost::mutex::scoped_lock scoped_lock(mutex);
81 boost::mutex::scoped_lock scoped_lock(mutex);
87 boost::mutex::scoped_lock scoped_lock(mutex);
93 boost::mutex::scoped_lock scoped_lock(mutex);
99 boost::mutex::scoped_lock scoped_lock(mutex);
105 boost::mutex::scoped_lock scoped_lock(mutex);
116 boost::mutex::scoped_lock scoped_lock(mutex);
122 boost::mutex::scoped_lock scoped_lock(mutex);
128 boost::mutex::scoped_lock scoped_lock(mutex);
134 boost::mutex::scoped_lock scoped_lock(mutex);
140 boost::mutex::scoped_lock scoped_lock(mutex);
146 boost::mutex::scoped_lock scoped_lock(mutex);
void sendTransformOdomTF(geometry_msgs::TransformStamped odom_trans)
void publish(const boost::shared_ptr< M > &message) const
tf::TransformBroadcaster odom_broadcaster
Publisher advertise(const std::string &topic, uint32_t queue_size, bool latch=false)
void publishOdomMsg(nav_msgs::Odometry odom)
ros::NodeHandle * getNodeHandle()
RobotState(ros::NodeHandle *n, int socket)