File tree 1 file changed +3
-3
lines changed
planning/behavior_path_planner_common/src/utils/path_shifter
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ namespace behavior_path_planner
53
53
54
54
using motion_utils::findNearestIndex;
55
55
using motion_utils::insertOrientation;
56
- using motion_utils::removeInvalidOrientationPoints ;
56
+ using motion_utils::removeFirstInvalidOrientationPoints ;
57
57
using motion_utils::removeOverlapPoints;
58
58
59
59
void PathShifter::setPath (const PathWithLaneId & path)
@@ -155,14 +155,14 @@ bool PathShifter::generate(
155
155
shifted_path->path .points = removeOverlapPoints (shifted_path->path .points );
156
156
// Use orientation before shift to remove points in reverse order
157
157
// before setting wrong azimuth orientation
158
- removeInvalidOrientationPoints (shifted_path->path .points );
158
+ removeFirstInvalidOrientationPoints (shifted_path->path .points );
159
159
size_t previous_size{shifted_path->path .points .size ()};
160
160
do {
161
161
previous_size = shifted_path->path .points .size ();
162
162
// Set the azimuth orientation to the next point at each point
163
163
insertOrientation (shifted_path->path .points , true );
164
164
// Use azimuth orientation to remove points in reverse order
165
- removeInvalidOrientationPoints (shifted_path->path .points );
165
+ removeFirstInvalidOrientationPoints (shifted_path->path .points );
166
166
} while (previous_size != shifted_path->path .points .size ());
167
167
168
168
// DEBUG
You can’t perform that action at this time.
0 commit comments