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
OpenDRIVE Standalone Mode issues with converted OSM #3009
Comments
@Axel1092 could you take care of this? |
Hi @rohanb2018, |
How to Export .xodr from SUMO netconvert. Have imported OSM file but how to get xodr file for it? |
@sp062 netconvert produces broken OpenDRIVE which will crash when loading into carla. If you compile Carla from source you will find a new feature to convert OSM to XODR files. You can also use the packages here: https://github.com/carla-simulator/carla/blob/master/Docs/download.md#pre-release-0910 which also have these feature enabled but you need additional dependencies in linux ( |
Hi @Axel1092 , I love the new feature. Unfortunalety if I follow the tutorial (https://carla.readthedocs.io/en/latest/tuto_G_openstreetmap/) a warning is thrown.
How should the input data look like to generate a georeferenced OpenDRIVE file? |
Hi @TKeutgens, right now that feature is not supported, we are working on expanding this feature to add new projections to include geolocation information. A workarround for now is to include the geolocation information yourself into the resulting opendrive file. |
Hi @Axel1092 thanks very much for your support! Is there an example or step-by-step guide for the workarround? I tried adding the geoGeoreference tag into the ODR file. As lat_0 and lon_0 I added the minlon and minlat parameters of the OSM file. But the results don't match my georeferenced satellite image. It also seems like there is a roation error in the ODR file. Do you have any information on this? |
Hi, I'm also working with conversion from OpenStreetMap to OpenDrive and to import it to Carla. How can I use this new feature? I've downloaded the pre-release version 9.9.10 but I don't know how to use python API from this pre-release, when I run a python code using carla lib I just get:
|
@lucasnmatias it seems like you are missing a specific library required for running carla in your system. Here are some of the libraries you may be missing: |
@Hanjinchao, can you import the map in carla with the standalone mode? |
so....for some reason my carla0.9.10 build does not work properly, I tried on Linux build and win build, the windows carla unreal editor does not show up, it will go straight to crash. For Linux, the Carla unreal editor will crash if I play it, so I can't really test it with the later version, but with carla0.9.9 I try to use the config.py -x <generated_from_osm.xodr>. it does not load anything |
also.....is there any support for left-hand model? I am located in Japan, the osm data is left-hand by default |
@Hanjinchao Do any messages show up with the crash? If the unreal crash report pops up I would like to take a look at it in order to help you to solve this issue. |
I suspect I got something wrong when I build the 0.9.10 carla, but the same result showed after I rebuild Carla. BuildCarlaUE4.sh: line 151: 10623 Killed ${GDB} ${UE4_ROOT}/Engine/Binaries/Linux/UE4Editor "${PWD}/CarlaUE4.uproject" ${RHI} That's strange, I got 0.9.9 version running on the same machine, and it's all fine. |
@Hanjinchao It seems that the ue4 editor is crashing (I think it is due to not enough memory could you share the system specs?). |
I can confirm that I experience the same projection distortion that @Hanjinchao reported above even when I just load an OSM file into Carla directly using the Python script Any insight into whether this issue can be worked around and specifically how to do it? |
I am having a similar problem while trying to follow the tutorial here
I overlooked the warning at first, but the map does not load properly in the next step using
Any information would be greatly appreciated. |
I have solved my problem. The solution is here in the CARLA Docs. My map is loaded properly when I use the This command works for me.
I realize that this may have been off topic... |
Now that my map is loading, I can confirm that I am also experiencing the map distortion. I tested today with Update:@Krxtopher, I have found a work around the distortion issue by using |
Hi! I am also experiencing the map distortion. I have used the method you have recommended by running OSM2XODRconv.py. However, it shows "AttributeError: 'Namespace' object has no attribute 'xodr_pathen'". |
I do not recognize that error, but I do notice that your script is called |
@thillRobot , I tried the osm2xodr project that you mentioned, but the .xodr file it produces (for a very simple OSM file) crashes Carla when I try to load it into the running simulation using Carla's config.py script. I don't have this problem when loading other .xodr files this way. Do you have any insight into what might be wrong? I noticed that the output file that osm2xodr produces has no <header> elements (including projection information) which seemed suspicious to me. Would you be able to provide me with a sample OSM file that you know works with that converter tool so I can better troubleshoot the issue? |
@Krxtopher, I would be happy to share. You can get the Let me know if you get it going. |
@thillRobot, thanks a lot for your advice. I successfully realized your example in SUMO and no distortion appears. Also, I can use osm2xodr.py to convert my osm to xodr. But when I use CARLA's netconvert_carla.py to convert xodr to net, it shows the error below: Also, I noticed that the 'topomap.png' in main.py seems specific for the example map. Whether should I renew the 'topomap.png' for my own osm, and by how. |
You are welcome. It is good to hear that you got it working. I admit I am learning this as I go, and I do not have any information about net files. I have not encountered this file type in my project. Regarding |
I really appreciate your help. Good luck with your study! |
OK, thanks. This is consistent with what I have seen. The OpenDRIVE map works after exporting from RoadRunner only if the junctions are intact, also there may be other funny issues that I have not seen. |
@Axel1092 I have an interesting finding:
(2) I also observe the same error when I use the OpenDrive file generated by netconvert in SUMO. So, I'm wondering whether CARLA has the assumption that the OpenDrive file needs to be centered before using config.py feeding into CARLA. Is it possible that the OpenDrive file generated by netconvert is not corrupted but just not centered? |
Hello, if anyone is interested, i wrote a small workaround for the projection-issue with the Carla OSM Converter. |
@hongyuli the problem with netconvert is that junctions are broken which causes our parser to crash due to references to non-existing roads in the OpenDRIVE file. My guess is that with some options RoadRunner may be able to repair these issues providing a working OpenDRIVE. |
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. |
I case anyone is still interested: SUMO version 1.12.0 supports import and export XODR with shifted geo coordinates. Generally speaking, If you find any issues with SUMO tools, I invite you to open an issue at https://github.com/eclipse/sumo |
@namdre, I can produce an example if someone else does not have one readily available. It will have to wait until later tonight or tomorrow. |
@namdre, here is a small an example of the conversion process using netconvert from sumo (stable - installed 02/24/2022). Later I can add some examples of how is appears in Roadrunner and CARLA. https://github.com/thillRobot/carla_simulator/tree/master/maps/Campus03 |
@thillRobot Thanks. I'm afraid I won't be able to solve this problem on the sumo side without additional information from the carla devs (except for diving into the carla parser code myself). @Axel1092 can you confirm that the netconvert-generated xodr has been working with Carla at some point? At least the whole OSM2ODR part of Carla which uses sumo/netwrite version 1.8.0 as a library seems to suggest a working toolchain.
FYI, SUMO users have report success in using netconvert-generated xodr with RoadRunner, VTD and Esmini. The classic odrViewer from VIRESalso loads netconvert-xodr. |
@Axel1092 I think that the error You are refering to is mentioned here eclipse-sumo/sumo#9637 (comment) . I encountered the same problem when running in Esmini. This issue has been since fixed. Of course this is just my guess . |
@gregor-ovsenjak The error you mentioned is old and hence should have always affected the carla-OSM2ODR library. |
@thillRobot Please try the latest github version of netconvert. As @gregor-ovsenjak reported, the latest fixes on the sumo side permit loading of his netconvert-generated xodr with Carla. |
The git clone must be compiled.
You can get nightly-binaries via
pip install -i https://test.pypi.org/simple/ eclipse-sumo
Am Fr., 11. März 2022 um 00:13 Uhr schrieb thillRobot <
***@***.***>:
… @namdre <https://github.com/namdre>, previously I have used a system wide
installation of sumo from apt, but I just cloned the latest sumo from
github. Do I need to compile to use this netconvert?
—
Reply to this email directly, view it on GitHub
<#3009 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABPTS5WE3SVSUBUKXKTKTGTU7J6YZANCNFSM4OMRWPSA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Thanks @namdre. I got that compiled and converted the map I shared previously with the latest netconvert. I am now running a test in standalone mode, and the map looks good (link to image). However, there is an error that appears after loading the map that I am not familiar with. This continues with hundreds of more lines of the same warning.
I need to improve the world to do a better test. The cars tend to fall off the map very quickly in standalone mode so the test is not representative. Also, I think the cars that fall off into infinity may cause problem. Further, after closing the processes, CARLA server will not start again without restarting the GPU (I think). Here is what I see when I try to restart the server
This may be related to my outdated 9.12 (Python3.6) version of CARLA, but I am not sure. I need to update. |
The Traffic signs are supposed to be over the driving line ( What is causing cars to "fall of the map"? W.r.t to CARLA server not starting again, I can just hope that this is unrelated to the loaded map. |
I am not sure about the signs. I have not looked at that much. I have tested adding them in RoadRunner and that seems to work. The cars fall off the map because in 'standalone mode' (load raw converted xodr into CARLA) there is is not a sidewalk or walls, so the cars accidentally fall off the road at turns. I remember there being a setting to make walls, but I cannot remember where. I think it is in the conversion using CARLA instead of netconvert. Last night I downloaded and updated CARLA 0.9.13. After building I will work on another test. RoadRunner and/or Blendr can be used to add terrain which will fix the falling off the map issue. I'll keep you updated, @namdre. |
@namdre I have 0.9.13 built now with the PythonAPI working in Python3.8. Its going to take some more time to get the map ready to test. I will be away for a week, but Ill try to run a thorough test when I return. |
I ran "python3 config.py -x opendrive/TownBig.xodr". Unfortunately got the following. any suggestions? |
Hello all, I would like to use the file edited by NETEDIT in Carla. I tried using NETCONVERT tool to get the .xodr file. netconvert -s osm.net.xml --opendrive-output osm.xodr --sidewalks.guess --walkingareas There were also many warning messages that appeared. But Carla crashed instantly with the following error: 4.26.2-0+++UE4+Release-4.26 522 0
Disabling core dumps.
WARNING: cannot parse georeference: ''. Using default values.
Signal 11 caught.
Malloc Size=65538 LargeMemoryPoolOffset=65554
CommonUnixCrashHandler: Signal=11
Malloc Size=131160 LargeMemoryPoolOffset=196744
Malloc Size=131160 LargeMemoryPoolOffset=327928
Engine crash handling finished; re-raising signal 11 for the default handler. Good bye.
Segmentation fault (core dumped)
Ps: This osm.net.xml file was converted from .osm file using NETCONVERT tool. I have used that carla.OSM2ODR tool to get .xodr file and that worked fine for me. I went through the whole thread but could not figure out the solution. |
It looks like a memory issue (possibly OOM). Have you watched the system resources while the crash happens? |
I didn’t check at that time but I use the same computer regularly and have never come across such issues. But I can check it again tomorrow. |
It seems like there is no issue with the memory up to my understanding. |
@buntyk48 I encounted the same issue. Do you have any hint on how you have fixed it using net.xml? Thanks |
We don't have any option to use the networks edited or generated by Netedit in Carla. We have to use its own tool OSM2XODR or other tools mentioned in their documentation. For further information check out this documentation Page: |
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. |
I've been having issues with using the OpenDRIVE standalone feature on OpenDRIVE files that have been converted from OpenStreetMap files (using SUMO netconvert). I am not entirely sure whether this is an issue with SUMO or with the OpenDRIVE standalone mode, but I wanted to document it in case anyone has run into similar issues. I also wonder if anyone has been able to successfully convert and deploy OpenStreetMaps files corresponding to real-world environments in CARLA.
OSM to OpenDRIVE conversion
I tested using both the OpenStreetMap export tool and the SUMO osmGet.py script to extract OSM maps, and then I used NETCONVERT to convert these OSM maps into OpenDRIVE maps. In both cases, I got the following warning:
OpenDRIVE standalone mode
I then tried to render the resulting xodr file with CARLA's OpenDRIVE standalone mode (in CARLA 0.9.9.4) using
config.py
, and as expected the CARLA server detected that thegeoReference
tag was missing and crashed:To get around this, I tried inserting a
geoReference
tag with fake lat/long coordinates into the xodr file, but the CARLA server still crashed.Could it be that the OpenDRIVE files coming from NETCONVERT are just corrupt somehow? If so, is there a better way to generate OpenDRIVE files that correspond to real-world data that can be parsed by CARLA?
The text was updated successfully, but these errors were encountered: