Skip to content

Commit bd76aee

Browse files
kosuke55HansRobo
authored andcommitted
fix(obstacle_avoidance_planner): isPathGoalChanged (autowarefoundation#2205)
Signed-off-by: kosuke55 <[email protected]> Signed-off-by: kosuke55 <[email protected]> Signed-off-by: Kotaro Yoshimoto <[email protected]>
1 parent cc38c90 commit bd76aee

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
@@ -1001,7 +1001,7 @@ bool ObstacleAvoidancePlanner::checkReplan(const PlannerData & planner_data)
10011001
return true;
10021002
}
10031003

1004-
if (isPathGoalChanged(planner_data)) {
1004+
if (isPathGoalChanged(p)) {
10051005
RCLCPP_INFO(get_logger(), "Replan with resetting optimization since path goal was changed.");
10061006
resetPrevOptimization();
10071007
return true;
@@ -1077,7 +1077,7 @@ bool ObstacleAvoidancePlanner::isPathGoalChanged(const PlannerData & planner_dat
10771077
{
10781078
const auto & p = planner_data;
10791079

1080-
if (prev_path_points_ptr_) {
1080+
if (!prev_path_points_ptr_) {
10811081
return false;
10821082
}
10831083

0 commit comments

Comments
 (0)