Skip to content

Commit

Permalink
fix(behavior_path_planner): reset previou modified goal (autowarefoun…
Browse files Browse the repository at this point in the history
…dation#5785)

Signed-off-by: kosuke55 <[email protected]>
Signed-off-by: karishma <[email protected]>
  • Loading branch information
kosuke55 authored and karishma1911 committed Dec 19, 2023
1 parent 097dcd2 commit 0737d4e
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,9 @@ void BehaviorPathPlannerNode::run()
// Reset behavior tree when new route is received,
// so that the each modules do not have to care about the "route jump".
if (!is_first_time && !has_same_route_id) {
RCLCPP_INFO(get_logger(), "New uuid route is received. Resetting modules.");
planner_manager_->reset();
planner_data_->prev_modified_goal.reset();
}
}

Expand Down

0 comments on commit 0737d4e

Please sign in to comment.