Robotics StackExchange | Archived questions

How can I convert PWM values to velocity?

i am a newbie in ROS ,I am using a two wheel configuration bot in which I was directly providing PWM values to both the motors. Now i want to do GMapping , for that I need to convert those PWM values to velocities. How can I do that?

Asked by manish0718 on 2019-09-08 03:52:36 UTC

Comments

Answers

PWM values do not map to velocity, they will map (possibly non-linearly) to torque in your case. You could produce a rough approximation by measuring the distance travelled using different settings. The correct way of doing this is do add encoders to your wheels.

Asked by PeteBlackerThe3rd on 2019-09-09 07:15:28 UTC

Comments

After encoders are added, you will also end up needing PID controllers to correctly transform effort into velocity.

Asked by georgeknowlden on 2019-09-09 08:46:59 UTC