ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
In this case you have to convert encoder ticks into nav_msgs/Odometry Messages. Take a look at navigation/Tutorials/RobotSetup/Odom in the wiki to basically understand what is required.
Which might be (there a multiple options available):
Depending on your vehicle you might also be able to use the differential_drive package.
2 | No.2 Revision |
In this case you have to convert encoder ticks into nav_msgs/Odometry Messages. Take a look at navigation/Tutorials/RobotSetup/Odom in the wiki to basically understand what is required.
Which might be (there a multiple options available):
Depending on your vehicle you might also be able to use the differential_drive package.
If you publish both, the position of your lidar relative to the robot and the position of the robot as tf tf (as described in the Odometry tutorial), then yes, you also have the position of the lidar in the odom frame and rviz will display it properly.