ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
![]() | 1 | initial version |
You have misunderstood the sensor data that the diff_drive_controller needs. It normally reads from a JointStateInterface. A joint state interface has information about individual wheels: the (angular) position of the wheel shaft and the rotational velocity of the wheel shaft. The JointStateInterace contains a separate entry for each driven wheel on the robot. The urdf provides the physical position info between each wheel and base_link of the robot..
The diff_drive_controller will do all the other calculations that it needs.