Closed marquesghm closed 7 years ago
The "GoTo" function is designed to turn towards the goal position and move towards it. It's implemented here: https://github.com/rtv/Stage/blob/master/libstage/model_position.cc#L405
If you want to do the same thing, but travel backwards towards the goal, you could modify the algorithm that GoTo uses to do so by reversing the yaw angle and wheel speed logic.
Goto behaviour is as-designed. Most robots are not designed to go backwards as they have forward-facing sensors to detect obstacles. As jpgr87 describes, it would be pretty easy to modify to go backwards.
Hi,
I am modelling a robot that moves backwards using Goto function, however, it does not seem to do it. It always turn the robot toward the goal (with an angular move of 180o) and then it moves forwards.
Any suggestion of how to perform this movement ? Currently I am using the following code, but the error in the final position is quite large. I think there should be a better way to do it ....
best regards,