johschmitz / blender-driving-scenario-creator

Blender add-on for creating OpenDRIVE and OpenSCENARIO based automotive driving scenarios including 3D models
GNU General Public License v3.0
220 stars 36 forks source link

Open designed roads in CARLA #14

Open AMINTAHOUNI opened 2 years ago

AMINTAHOUNI commented 2 years ago

Hi Would you please explain how I can export the roads designed in blender driving scenario creator to Carla? which format should I export? I wanted to design my own road and then open it in the Carla simulator, then I wanted to add objects such as a vehicle, pedestrian, bicycle, and .. (in Carla) to generate my scenario.

johschmitz commented 2 years ago

It is actually on my roadmap as well to try this out but I just haven't reached that point. But I guess we could either just load the xodr at runtime or we could bake the gltf or fbx into the CARLA executable. See the documentation here: https://carla.readthedocs.io/en/latest/core_map/#custom-maps

I believe currently CARLA does still not support runtime loading of gltf maps. I hope someone will add that feature at some point using one of the available Unreal gltf loader add-ons.

If you succeed in doing the import please provide a short report about the results here. If you discover issues related to the Blender add-on I can try to provide some fixes.

johschmitz commented 2 years ago

Here is the other link for the OpenDRIVE standalone mode: https://carla.readthedocs.io/en/latest/adv_opendrive/#run-a-standalone-map