I am using this ROS package called pid : LINK
At the bottom, you can see the instructions on how to control 2 motors for a differential drive robot. It states that both controllers should listen to the same setpoint topic which publishes the desired velocity.
The question is, why do they need to listen to the same topic? What if the robot goes at some angular velocity which means that 1 wheel spins quicker then the second wheel? Shouldn't two controllers listen to two setpoints?
For example, consider a move_base package which publishes Twist messages to /cmd_vel topic. In order to perform circular path, it will publish both linear.x and angular.z message. From simple math we can find the desired velocities on each wheel which means we have two different setpoint velocities for each wheel. Am I correct?
Post score: 1