ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
As you say, in that code you have all the variables you need. Only one strange thing, you have a transformation to cm, usually ROS works with meters (m).
Then, you only need to publish that information in 2 ways: a tf transform and a nav_msgs/Odometry message.
Just follow the tutorial you have linked, fro line 40 to 75.