Skip to content

Commit 74b0a1b

Browse files
authored
fix(behavior_path_planner): reset previou modified goal (#5785)
Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>
1 parent c52e116 commit 74b0a1b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

planning/behavior_path_planner/src/behavior_path_planner_node.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,9 @@ void BehaviorPathPlannerNode::run()
408408
// Reset behavior tree when new route is received,
409409
// so that the each modules do not have to care about the "route jump".
410410
if (!is_first_time && !has_same_route_id) {
411+
RCLCPP_INFO(get_logger(), "New uuid route is received. Resetting modules.");
411412
planner_manager_->reset();
413+
planner_data_->prev_modified_goal.reset();
412414
}
413415
}
414416

0 commit comments

Comments
 (0)