carla-simulator / carla

Open-source simulator for autonomous driving research.
http://carla.org
MIT License
11.45k stars 3.71k forks source link

Is it possible to automatically import custom maps without UI interaction? #2515

Closed wthwlh closed 4 years ago

wthwlh commented 4 years ago

Version: Carla 0.9.6, UE4 4.22.3 on Ubuntu 16.04

Target: build shipped package (with ue4-docker) with customized map included which I could load as map in PythonAPI

Background: theoractically, all UI interactions could be transformed into the file changes. So when my developers add a map (.fbx and .xodr and all .png used), I want to apply their changes in the make package process and ship a product with custom map supported.

What I have tried:

  1. Import New Maps from UI, and build package from Editor, it works like a charm.

  2. Import New Maps as standalone assets, and build it with carla-docker, the map could be called with PythonAPI, but their is no map/route on the screen. I guess it's because I cannot add physical property in this case as it mentions

The imported map won't have collisions, so they should be generated manually

  1. Right after I imported my map (say my map called foo) in UE4Editor, I searched over all "foo*" files and copy n paste it to correspond locations in carla-docker, also I add my own map here in ini file as "MapsToCook" to declare that I want to build my own map. However, when I build my package by make package, it shows that UE4 cannot find my map.

Are there any suggestions? I guess I still need to add some path/materials somewhere to tell Carla I want to import my map into games. Am I thinking on the right track? What files would be generated when a new map is imported? Is there a hidden tool inside carla/ue4 to generate CollisionBox when import .fbx?

Thanks.

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.