Skip to content

Commit

Permalink
feat(goal_planner): add life time to debug markers
Browse files Browse the repository at this point in the history
Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>
  • Loading branch information
kosuke55 committed Aug 8, 2023
1 parent 2e5752f commit bf8bcbd
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 bf8bcbd

Please sign in to comment.