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]>
  • Loading branch information
kosuke55 authored and karishma1911 committed May 28, 2024
1 parent 63e8735 commit 7c6cb2d
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 7c6cb2d

Please sign in to comment.