ros-perception / vision_msgs

Algorithm-agnostic computer vision message types for ROS.
Apache License 2.0
157 stars 75 forks source link

Clear rviz plugins stale markers #95

Closed jmm-slamcore closed 1 year ago

jmm-slamcore commented 1 year ago

From my own experience and as reported in https://github.com/NovoG93/vision_msgs_rviz_plugins/issues/4 some visualization markers would sometimes persist and go stale (this seems to be when new boxes size is less than the older boxes size, the excess boxes won't be modified and will be left around until something or nothing happens).

After the latest changes I no longer see the issue (Tested with live Detection3DArray). If a node stops publishing detections/bounding boxes, the markers will also disappear according to the marker lifetime.

jmm-slamcore commented 1 year ago

Ok sounds good, the choice of 0.5s is indeed arbitrary. I had added it in to clear the last bounding box if no more bounding boxes come after that one, but removed it for now.