Skip to content

Commit

Permalink
feat(goal_planner): add life time to debug markers (#4562)
Browse files Browse the repository at this point in the history
Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>
  • Loading branch information
kosuke55 authored Aug 8, 2023
1 parent 0b44a26 commit de7d624
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1425,7 +1425,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 de7d624

Please sign in to comment.