MaisJamal / Carla_apollo_maps

HD Apollo maps for Carla simulator towns. Town01 - Town02 - Town03 - Town04 - Town05
26 stars 3 forks source link

Failed to init hdmap input #6

Open Michael-Fuu opened 7 months ago

Michael-Fuu commented 7 months ago

when I use carla_town01 in this repository, after launching mainboard I checked mainboard.log and got :

Failed to find hadmap file: /apollo/modules/map/data/carla_town01/base_map.bin F1123 16:30:48.873589 18299 radar_detection_component.cc:81] Check failed: hdmapinput->Init() Failed to init hdmap input.

which leads starting radar perception module failed, how to generate base_map.bin to fix this issue ?

MaisJamal commented 7 months ago

Apollo can launch and use the map if you add one of the files : base_map.bin or base_map.txt or base_map.xml. If you have already added base_map.txt no need for .bin file. Is the map showing in Dreamview and the car drives appropriately with Carla or in SimControl mode?

MaisJamal commented 7 months ago

In this tutorial, at time code 6:27 you can check how I add the maps to Apollo and test them. Make sure you are following the same steps. https://www.youtube.com/watch?v=2dQC3ToJGJU

Michael-Fuu commented 7 months ago

Only test pnc it works..but when I test apollo perception module, some algorithm plugins(radar detection) fails because the needs of base_map.bin. thx, I will try to find some ways to work around with it !

Michael-Fuu commented 7 months ago
image

also about launching liar module, when I start the liar module, it also need town01.bin

Michael-Fuu commented 7 months ago

I have tried to change modules/perception/map/hdmap/hdmap_input.cc to change from obtaining carla_town01.bin into carla_town01.txt. It works but might cause bugs when use other maps without txt suffixe.