lgsvl / simulator

A ROS/ROS2 Multi-robot Simulator for Autonomous Vehicles
Other
2.26k stars 776 forks source link

Detection3d ID #1230

Open soldierofhell opened 3 years ago

soldierofhell commented 3 years ago

Hi, got question about ground truth detection3d. There's ID field in the message. Can we interpret this id as "tracking id"? I mean let's say we have vehicle_1 and vehicle_2 in our scene. Can I expect that vehicle_1 id will be 1 in each message and vehicle_2 will be always 2? Or there's no such rule and id can be randomly assigned from message to message? And technically what does this id means internally? Is this some kind of Unity object id? Regards,

EricBoiseLGSVL commented 3 years ago

Id is assigned in Unity. When the object is spawned a new id is issued. We have a bug fix on next release to update on respawn.