motional / nuplan-devkit

The devkit of the nuPlan dataset.
https://www.nuplan.org
Other
682 stars 131 forks source link

Obtain a bev map like NuScenes #339

Closed Frandre closed 1 year ago

Frandre commented 1 year ago

I noticed that you have a function, get_map_mask, in NuPlanMapExplorer so that one can obtain a map with pre-defined layers and angles at some location. However, when I run it today it says that: *** AttributeError: 'NuPlanMap' object has no attribute 'vector_polygon_layers' After a second look, it seems to me that attribute 'vector_polygon_layers' no longer exists in NuPlanMap.

My question is whether we have alternative options to fulfill this function. If yes, which function should I turn to?

--------- More details -------- I am expecting to have something like: map_mask = nusc_map.get_map_mask(patch_box, patch_angle, layer_names, canvas_size) in NuScenes map tutorial.

Your help is appreciated.

Frandre commented 1 year ago

@christopher-motional could you please help me out if possible. Thanks!

patk-motional commented 1 year ago

Hi @Frandre,

We've developed a new map interface. There should be more functionalities there.

Frandre commented 1 year ago

Hi @Frandre,

We've developed a new map interface. There should be more functionalities there.

Hi @patk-motional , thanks for your response.

Would you mind referring to the new function that corresponds to the original get_map_mask in in NuPlanMapExplorer so that one can obtain a map with pre-defined layers and angles at some location? I am sorry but I could not find one myself.

patk-motional commented 1 year ago

The closest thing that we have is probably this function. You will have to apply a mask yourself something like this