diff --git a/common/autoware_auto_perception_rviz_plugin/src/object_detection/detected_objects_display.cpp b/common/autoware_auto_perception_rviz_plugin/src/object_detection/detected_objects_display.cpp index 0dd414addf802..26ba30840b178 100644 --- a/common/autoware_auto_perception_rviz_plugin/src/object_detection/detected_objects_display.cpp +++ b/common/autoware_auto_perception_rviz_plugin/src/object_detection/detected_objects_display.cpp @@ -65,6 +65,7 @@ void DetectedObjectsDisplay::processMessage(DetectedObjects::ConstSharedPtr msg) if (velocity_text_marker) { auto velocity_text_marker_ptr = velocity_text_marker.value(); velocity_text_marker_ptr->header = msg->header; + velocity_text_marker_ptr->id = id++; add_marker(velocity_text_marker_ptr); } @@ -74,6 +75,7 @@ void DetectedObjectsDisplay::processMessage(DetectedObjects::ConstSharedPtr msg) if (twist_marker) { auto twist_marker_ptr = twist_marker.value(); twist_marker_ptr->header = msg->header; + twist_marker_ptr->id = id++; add_marker(twist_marker_ptr); } }