diff --git a/planning/behavior_path_lane_change_module/src/interface.cpp b/planning/behavior_path_lane_change_module/src/interface.cpp index e3763720c2d8a..0c6656fda3247 100644 --- a/planning/behavior_path_lane_change_module/src/interface.cpp +++ b/planning/behavior_path_lane_change_module/src/interface.cpp @@ -299,11 +299,10 @@ bool LaneChangeInterface::canTransitFailureState() 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()); }