Skip to content

Commit f1aaa5d

Browse files
authored
fix(obstacle_avoidance_planner): fix build error (#1948)
Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com> Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com>
1 parent 2970485 commit f1aaa5d

File tree

1 file changed

+2
-2
lines changed
  • planning/obstacle_avoidance_planner/src

1 file changed

+2
-2
lines changed

planning/obstacle_avoidance_planner/src/node.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1145,12 +1145,12 @@ Trajectories ObstacleAvoidancePlanner::optimizeTrajectory(
11451145
constexpr double max_path_change_diff = 1.0e4;
11461146
for (size_t i = 0; i < eb_traj->size(); ++i) {
11471147
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;
11491149

11501150
const double diff_x = eb_pos.x - path_pos.x;
11511151
const double diff_y = eb_pos.y - path_pos.y;
11521152
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);
11541154
}
11551155
}
11561156

0 commit comments

Comments
 (0)