Skip to content

Commit

Permalink
Correct plugin so it can show more than one instance of each category
Browse files Browse the repository at this point in the history
The 'id' used is the 'label_id', instead of 'instance_id'. For this reason, rviz is not showing more than one instance of each category.
This PR corrects this problem.
  • Loading branch information
iker-lluvia authored Sep 25, 2023
1 parent 29d7beb commit 4c6c5e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rviz-plugin-zed-od/src/plugin/src/zed_od_display.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4c6c5e7

Please sign in to comment.