Skip to content

Commit

Permalink
feat(goal_planner): add life time to debug markers (autowarefoundatio…
Browse files Browse the repository at this point in the history
…n#4562)

Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>
  • Loading branch information
kosuke55 committed Aug 22, 2023
1 parent 2979e96 commit e76bab6
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1422,7 +1422,10 @@ void GoalPlannerModule::setDebugData()

const auto header = planner_data_->route_handler->getRouteHeader();

const auto add = [this](const MarkerArray & added) {
const auto add = [this](MarkerArray added) {
for (auto & marker : added.markers) {
marker.lifetime = rclcpp::Duration::from_seconds(1.5);
}
tier4_autoware_utils::appendMarkerArray(added, &debug_marker_);
};

Expand Down

0 comments on commit e76bab6

Please sign in to comment.