ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

If I understand correctly your are building your own robot and your problem is to develop Odom node for it. I think you need to check the equations which describe the ( differential-driven ) mobile robot kinematics here. Then you need to measure different parameters of your robot (i.g. wheel diameter and gauge distance) and substitute these values into the equations.

"Now, when I can control the robot and also getting ticks via magnetic encoders"

As you mention you can get feedback from the magnetic encoders, you need to convert these ticks to speed. Your Odom node will subscribe to /ticks and convert it to rotation speed for the two wheels, then using the kinematic equations, you convert this rotation speed to linear and angular speed of the robot and calculate the distance that the robot moved, the direction of the robot as well.

So, your Odom node will send the new relative pose of your robot based on the initial position of the robot in the environment. At that moment, you can use your Odom node the AMCL library to get an accurate location.