ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
The first step would be to get encoders ticks -> wheel velocity for the left and right wheel. Besides the tick count/motor revolutions this obviously depends on the wheel diameter.
Next, convert left/right velocity to translational and rotational velocity. Google should give you some simple formulas using the wheel base.
Given the measured time between two odometry readings, you now get a delta in translation and orientation that you can add to your last send odometry.
You can use this information to fill out the message.