nutonomy / nuscenes-devkit

The devkit of the nuScenes dataset.
https://www.nuScenes.org
Other
2.25k stars 623 forks source link

about render_egoposes_on_map #1068

Closed Nan-yxchen closed 5 months ago

Nan-yxchen commented 5 months ago

Sorry to bother!

When I read the tutroiral of nuScenes, I found a code is "nusc.render_wfo_poses_on_map". But if I hace several scenes, how can I know which section of the render map correrponds to which scene? In other words, can I draw these scenes one after another on the same render map?

whyekit-motional commented 5 months ago

@Nan-yxchen you can render the ego poses of multiple scenes on the same map using render_egoposes_on_map by specifying a list of scene tokens: https://github.com/nutonomy/nuscenes-devkit/blob/4df2701feb3436ae49edaf70128488865a3f6ff9/python-sdk/nuscenes/nuscenes.py#L1783-L1785

Nan-yxchen commented 5 months ago

@whyekit-motional Okay,I saw that. But I want to know that can I draw these scenes one by one on the same map image. For example, I draw scene-001 first and get a scene-001.png, then I draw scene-002 on the scene-001.png, so I can watch the relative position relationship bewteen all the scenes? Thanks!!!

whyekit-motional commented 5 months ago

@Nan-yxchen there isn't such a method within the devkit right now, but you could probably use render_egoposes_on_map as a reference to write your own method for your use-case

Nan-yxchen commented 5 months ago

@whyekit-motional I got it, that's very helpful, thanks!!