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.
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.
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.