lgsvl / simulator

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

Import HD map Lanelet2 fail? InvalidOperationExecption: Nullable object must have a value. #1987

Open llu0120 opened 2 years ago

llu0120 commented 2 years ago

I'm trying to use the lgsvl simulator and I'm using the tag 2021.3 in the simulator repo. However, when I'm trying to import my lanelet2 map into the simulator, I can't see my map inside unity and report an error below. Has anyone confront this before and can help with this? Thanks in advance.

image

EricBoiseLGSVL commented 2 years ago

You most likely have an error in the hdmap or an corner case that the importer can't handle. You will need to trace the import and see what part is causing the exception.

llu0120 commented 2 years ago

Hi @EricBoiseLGSVL, Thanks for your reply. I've tried to import the example lanelet2 map from BorregasAve, but the import visualization looks strange as well. image

Looks like only the traffic lights are being imported. Is it normal? Or how can I visualize the lanes, boundaries...etc?

Thanks in advance

EricBoiseLGSVL commented 2 years ago

Do you have generate mesh setting enabled in the import settings?

llu0120 commented 2 years ago

no, but I can see the lanes when clicking view all in the HD Map Annotation mode. Is that normal? Thanks!

EricBoiseLGSVL commented 2 years ago

Yes, this is just annotation data, not a drive-able mesh.