Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Digital Twin Tool Fails to Import Maps from OpenStreetMap #8495

Open
Trans-cending opened this issue Dec 19, 2024 · 2 comments
Open

Digital Twin Tool Fails to Import Maps from OpenStreetMap #8495

Trans-cending opened this issue Dec 19, 2024 · 2 comments

Comments

@Trans-cending
Copy link

Hi, everyone. I am interested in digital twin tool in Carla. I want to select a region from OpenStreetMap and paste the url to "UW_OnRoadMainWidget" and then click "Generate" button. However, no matter which size of selected map I choose, the UE4 editor crashed with error. When I relaunch the UE4 editor and opened the generated XXX.umap and then run simulation, nothing (no buildings, vegetation and roads) is shown on the interface. Can anyone help me? Thanks a lot. Problems are described in detail as follows.

CARLA version: 0.9.15 (build from source)
Platform/OS: Windows 10, UE 4.26
Steps to reproduce:

Note that osm_renderer is not available for Windows users. So I use the url to transform selected map according to Digital Twin Tool.

  1. First, I launch the "UW_OnRoadMainWidget" and paste the OpenStreetMap url and click "Generate" button.
    Fig 1. Import url and generate
    Fig 2. A small region map

  2. "UW_OnRoadMainWidget" starts generating maps for Carla. It seems normal at the beginning. But However, in the middle and later stages, the editor will become stick, and finally report an error and then crash.
    Fig 3. Error
    Fig 4. Error in detail
    ("加载失败" means "fail to load"; "引用者" means "quoter" or "citer". The English version
    of error is "fail to load /Game/Carla/Static/Pedestrian/Animations/GEN3/Nos_/AS_walkingG3.AS_walkingG3 quoter
    Default_BP_Walker_AB001_G3_C")

  3. Then I look at the files generated under 'carla-0.9.15\Unreal\CarlaUE4\Content\CustomMaps' path. The structure is shown in the figure.
    Fig 5. Directory structure 1
    Fig 6. Directory structure 2

  4. Lastly, I relaunch the UE4 editor and open the test.umap. I click the 'Run' button but only to find
    that no buildings, vegetation and roads are displayed, meaning that generation process fails.
    Fig 7. Result

  5. I try to run manual_control.py to test the validity of customed map. And it raises

INFO: listening to server 127.0.0.1:2000
ERROR: unable to parse the OpenDRIVE XML string
RuntimeError: failed to generate map
The server could not send the OpenDRIVE (.xodr) file:
Make sure it exists, has the same name of your town, and is correct.

If I run the default map (Town10), the whole process works normally. Thanks for your help.

@EvilQQQ
Copy link

EvilQQQ commented Dec 22, 2024

Same problem, but I successfully generate the map. However, it doesn't work when use PythonAPI. #8448

@Trans-cending
Copy link
Author

@EvilQQQ Hi, I have used LibCarla and CarlaUE4 in ue4-dev to replace the counterparts in carla-0.9.15. However, After many attempts, I find that if selected region has buildings, it will crash. Do you know how to fix it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants