diff --git a/planning/behavior_velocity_planner/autoware_behavior_velocity_planner_common/include/autoware/behavior_velocity_planner_common/scene_module_interface.hpp b/planning/behavior_velocity_planner/autoware_behavior_velocity_planner_common/include/autoware/behavior_velocity_planner_common/scene_module_interface.hpp index ae60b15051..c4887bb42e 100644 --- a/planning/behavior_velocity_planner/autoware_behavior_velocity_planner_common/include/autoware/behavior_velocity_planner_common/scene_module_interface.hpp +++ b/planning/behavior_velocity_planner/autoware_behavior_velocity_planner_common/include/autoware/behavior_velocity_planner_common/scene_module_interface.hpp @@ -206,9 +206,10 @@ class SceneModuleManagerInterface // The velocity factor must be called after modifyPathVelocity. - for (const auto & marker : scene_module->createDebugMarkerArray().markers) { - debug_marker_array.markers.push_back(marker); - } + auto module_markers = scene_module->createDebugMarkerArray(); + debug_marker_array.markers.insert( + debug_marker_array.markers.end(), std::make_move_iterator(module_markers.markers.begin()), + std::make_move_iterator(module_markers.markers.end())); virtual_wall_marker_creator_.add_virtual_walls(scene_module->createVirtualWalls()); }