Closed ivogeorg closed 1 year ago
How are the points generated? The intermediate points between start (at altitude) and end are not actually explicitly generated. Since start is at [0, 0] and end is at [10, 10], the trajectory on a grid, without any diagonal motions, is Manhattan distance. So, the trajectory is zig-zag. With diagonal motions, it becomes a straight line.
TODO: Check by commenting the diagonal motions.
Indeed, the diagonal motions cause the zig-zag to straighten out. This also means they work!
When run from
ivogeorg/FCND-Motion-Plannning/
the scriptmotion_planning.py
shows a straight line instead of the zig-zag trajectory when run from original repo or copy of original file. Numeric comparison of waypoints shows that simulator points correspond to the reported waypoints.So, how are the straight-line waypoints generated?