diff --git a/rviz-plugin-zed-od/src/plugin/src/zed_od_display.cpp b/rviz-plugin-zed-od/src/plugin/src/zed_od_display.cpp index 6bdbbda..0218a56 100644 --- a/rviz-plugin-zed-od/src/plugin/src/zed_od_display.cpp +++ b/rviz-plugin-zed-od/src/plugin/src/zed_od_display.cpp @@ -153,7 +153,7 @@ void ZedOdDisplay::processMessage(const zed_interfaces::ObjectsStamped::ConstPtr void ZedOdDisplay::createOrUpdateObject(zed_interfaces::Object& obj) { - int16_t id = obj.label_id; + int16_t id = obj.instance_id; if (id == -1 && obj.tracking_available) // Not a valid ID? { return;