Skip to content

Commit

Permalink
clear marker earlier
Browse files Browse the repository at this point in the history
Signed-off-by: Muhammad Zulfaqar Azmi <[email protected]>
  • Loading branch information
zulfaqar-azmi-t4 committed Feb 1, 2024
1 parent 6a1c5ad commit 3f94f2c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions planning/behavior_path_lane_change_module/src/interface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -322,11 +322,10 @@ bool LaneChangeInterface::canTransitIdleToRunningState()

void LaneChangeInterface::updateDebugMarker() const
{
debug_marker_.markers.clear();
if (!parameters_->publish_debug_marker) {
return;
}

debug_marker_.markers.clear();
using marker_utils::lane_change_markers::createDebugMarkerArray;
debug_marker_ = createDebugMarkerArray(module_type_->getDebugData());
}
Expand Down

0 comments on commit 3f94f2c

Please sign in to comment.