Hello all,
I hope you guys can help me with my problem:
Problem:
I have a original path and I add an obstacle that cannot be passed. This generates a path with a new length (to avoid the obstacle). However, sections of the path are adjusted that would not need to be adjusted (because they do not affect the length of the path). How would you proceed to preserve subsections of a path when recalculating a path?
Here is a concrete example (please see attachment):
Image A: I have an origin path with the length of 9.
Image B: I add one non-traversable object on the prior path. The new path avoids the obstacle and has a length of 11.
Image C: This is what I want to achieve: The newly generated path that avoids the obstacle should use as many subsections of the previous path (the one in Image A) as possible, if this does not affect the length of the new path (compared to B).
Thanks in advance and I appreciate any help