File tree 1 file changed +2
-2
lines changed
planning/obstacle_avoidance_planner/src
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1145,12 +1145,12 @@ Trajectories ObstacleAvoidancePlanner::optimizeTrajectory(
1145
1145
constexpr double max_path_change_diff = 1.0e4 ;
1146
1146
for (size_t i = 0 ; i < eb_traj->size (); ++i) {
1147
1147
const auto & eb_pos = eb_traj->at (i).pose .position ;
1148
- const auto & path_pos = path.points .at (std::min (i, path.points .size () - 1 )).pose .position ;
1148
+ const auto & path_pos = p. path .points .at (std::min (i, p. path .points .size () - 1 )).pose .position ;
1149
1149
1150
1150
const double diff_x = eb_pos.x - path_pos.x ;
1151
1151
const double diff_y = eb_pos.y - path_pos.y ;
1152
1152
if (max_path_change_diff < std::abs (diff_x) || max_path_change_diff < std::abs (diff_y)) {
1153
- return getPrevTrajs (path.points );
1153
+ return getPrevTrajs (p. path .points );
1154
1154
}
1155
1155
}
1156
1156
You can’t perform that action at this time.
0 commit comments