ROS订阅odom里程计消息,并在RVIZ中显示轨迹
ubuntu16.04 kineticshowpath#include <ros/ros.h>#include <ros/console.h>#include <nav_msgs/Path.h>#include <nav_msgs/Odometry.h>#include <std_msgs/String.h>#include <geometry