/** @brief Set the odometry topic. This overrides what was set in the constructor, if anything. * * This unsubscribes from the old topic (if any) and subscribes to the new one (if any). * * If odom_topic is the empty string, this just unsubscribes from the previous topic. */ voidsetOdomTopic(std::string odom_topic);
private: std::string odom_topic_; // we listen on odometry on the odom topic ros::Subscriber odom_sub_; nav_msgs::Odometry base_odom_; boost::mutex odom_mutex_; // global tf frame id std::string frame_id_; ///< The frame_id associated this data };