How to extract all instance locations

Is there a function to extract all locations of an instance in a given scene?
That is an analogue to render_egoposes for other actors

Hi. There is no existing function, but you could easily write one. If you work in global coordinates you just need to get all sample_annotations for an instance and accumulate their translations (https://github.com/lyft/nuscenes-devkit/blob/master/schema.md#sample_annotation). Note that these are in global coordinates.

1 Like