How can I get trajectory of all annotated cars in one scene?

Hi, I am trying to do multi-agent motion prediction. I am trying to extract all the annotated agents in one scene as a trajectory dataset. it seems the annotation is per car but not per scene? How can I get the trajectory of all cars per scene?

Thanks!

get_future_for_sample should return what you want: https://github.com/nutonomy/nuscenes-devkit/blob/bff4462f0f1b80cf95610aafa409a0c57787560a/python-sdk/nuscenes/prediction/helper.py#L276

For more details, do check out our prediction tutorial at: https://www.nuscenes.org/nuscenes?tutorial=prediction