Handle Linear and Angular Velocity on Differential Drive Robot
Hi guys ,
I have some question about the cmd_vels ( linear , angular) -> Motor Speed Handling
since i have the differential drive robot which each wheel can do the maximum speed at 0.25 m/s
( So, Ideally, MAX Linear Velocity of Robot = 0.25 m/s right ? )
Then ,i've done some calculation on the maximum angular speed = 1.25 rad/s (with my Wheel Separation 40 cm)
and test on joystick teleop
Joystick Teleop Scale Parameters
Linear Scaling = 0.25
and Angular Scaling 1.25
If I push the Joystick in TOP-LEFT Direction, The Result (to command motors) calculated is more than 0.25 m/s,
which is beyond the maximum speed of my motor.
How Can i handle this ? and how to find the range of Linear velocity and Angular velocity that i can access without breaking the condition on maximum speed limit ?
and i wonder that where to put the limitors in order to use with the "Navigation Stack" ( to prevent the navigation node sending command like the example above )
*FYI : motor is commanded by the velocity 0-255 ( 0 - 0.25 m/s ) and Direction Bit (0,1). so i need to convert them to direction and magnitude before sending. *