robot unable to go in reverse to avoid obstacles
Hi all,
I have a robot with dimensions (LxWxH) in cm: 82x64x104 and the rotational center is 8 cm from the back of the robot. I am using rotary encoders to get the odometry message. I am using amcl for localization and move_base for planning with TrajectoryPlannerROS
as the local planner and sbpl_lattice_planner
as global planner.
Everything seems to be working good except in the case when an obstacle comes suddenly in front of the robot. In this case, robot stops but instead of going in reverse (I have specified escape_vel: -0.2
) and then continuing on its path (or replanning and then continuing on the new path), it prefers to turn in place and rotates a complete circle (almost) with some jerks and then continues on the path which does not look very elegant. I will prefer that the robot stops, goes in reverse and then continues on its path. What changes do I have to make to do something like this? Let me know if you need more information from me.
Thanks in advance.
Naman Kumar