Plan towards a global plan
We would like to plan towards an existing trajectory with minimal distance traveled.
Situation:
- A pre-calculated global plan exists which we should stick to as close as possible
- There is an open-field path possible from the robot towards the global path
Requirements:
- The turning radius of the robot should be taken into account
- Driving backwards is allowed
Not-required:
- a. Obstacle avoidance
- b. Dynamic obstacle avoidance
Assumptions:
- I. Existing trajectory has a direction
Question:
Is such a global planner already available?
If not, can we mimic this behavior with an existing global planner?
To add to chfritz' answer below, TEB works quite well as local planner and you can optimize towards shortest time or shortest path. I have seen shortest path works the best for our omni-directional robot see https://youtu.be/o6uR-MZ-jMY, here it adheres more to the global path. You can see an example of
global_plan_viapoint_sep: 0.5
illustrated by the small blue squares along the local path here https://youtu.be/VfQWa06hQlM?t=7. It is a bit more computational expensive, but works out quite well to attract the robot closer to the global path.For optimization of TEB there are loads of parameters. You should try and find some that work, and then tune the weights for TEB afterwards. Do all the tuning through RQT dynamic reconfigure, makes it much easier.