Closed hdy117 closed 5 years ago
Hi @hdy117
The OpenDriveActor
does not generate the map itself, the map and the OpenDrive, both, are generated using RoadRunner.
i have contact with roadrunner, and use the trial version, made a simple road map, but how can i import this map to carla? i export the road map as fbx format, import it to carla, but the spawned vehicle just go directly , not follow the road.
Hi @matthew-rococo. The @carla-simulator/art team is working on the documentation about this topic.
Good news, very appreciating of your work !
Sent from Mailhttps://go.microsoft.com/fwlink/?LinkId=550986 for Windows 10
From: Marc Garcia Puig notifications@github.com Sent: Thursday, November 29, 2018 10:45:14 PM To: carla-simulator/carla Cc: matthew-rococo; Mention Subject: Re: [carla-simulator/carla] [0.9.1] any suggestion about generating map with opendrive file? (#996)
Hi @matthew-rococohttps://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fmatthew-rococo&data=02%7C01%7C%7C5dc7db4534104baa020d08d6560946b6%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636790995167653472&sdata=4OMyhco33tkuihyQTU4PxtbvHnu5remBuHvfGRbtPlA%3D&reserved=0. The @carla-simulator/arthttps://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Forgs%2Fcarla-simulator%2Fteams%2Fart&data=02%7C01%7C%7C5dc7db4534104baa020d08d6560946b6%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636790995167653472&sdata=ksFWy8QzmDpk1YP83scr4oKte%2BMhUhPzDjX93a6uguw%3D&reserved=0 team is working on the documentation about this topic.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fcarla-simulator%2Fcarla%2Fissues%2F996%23issuecomment-442858774&data=02%7C01%7C%7C5dc7db4534104baa020d08d6560946b6%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636790995167653472&sdata=95vZFQRKw3f27WZ1Gp2zJT8Gpl8r1XI8mz0w5mZbZWU%3D&reserved=0, or mute the threadhttps://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAjPTlnIoaeLVsDKfxhXduwt7s5udQhMBks5uz_L6gaJpZM4Y1T3g&data=02%7C01%7C%7C5dc7db4534104baa020d08d6560946b6%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636790995167653472&sdata=rwbMhOEya8Njam8%2BNnEKRWbA%2FwLGNMfg%2BHMSg0i2dFM%3D&reserved=0.
Hi @matthew-rococo. The @carla-simulator/art team is working on the documentation about this topic.
Now, if I place a opendrive file under /game/carla/maps/opendrive. Carla will build road network and route planner according to this file if I also create a level which share the same name. Am I right? If yes, then I think I can just place a big flat floor in UE4, I don't have to build road network using roadrunner. Am I right? If yes, Then I can use carla to test trajectory algorithm on a custom map with minimum build effort.
Hi Guys !!! The main steps RoadRunner - Unreal with Opendrive
When you created the map in RoadRunner. Export the map FBX. and OpenDrive. FBX import into Unreal and Opendrive in file under /game/carla/maps/opendrive. "IMPORTANT" same name Map and OpenDrive.
Once this is done, go to Unreal and drop on the map the actor "OpenDriveActor". This Actor generate automatically the opendrive. After that, place an actor "Vehicle Spawn Point" over any OpenDrive generated trigger. And Play !!!
Soon we will publish the documentation with the most detailed steps.
@XGodina I have done as your instruction. I have my own xodr file, and I create a empyt level with the same name.
When I run python client I got some error:
Hello from the pygame community. https://www.pygame.org/contribute.html INFO: listening to server 127.0.0.1:2000
Welcome to CARLA manual control.
Use ARROWS or WASD keys for control.
W : throttle
S : brake
AD : steer
Q : toggle reverse
Space : hand-brake
P : toggle autopilot
TAB : change sensor position
` : next sensor
[1-9] : change to sensor [1-9]
C : change weather (Shift+C reverse)
Backspace : change vehicle
R : toggle recording images to disk
F1 : toggle HUD
H/? : toggle help
ESC : quit
ERROR: vector::_M_range_check: n (which is 0) >= this->size() (which is 0) Traceback (most recent call last): File "manual_control.py", line 695, in main game_loop(args) File "manual_control.py", line 629, in game_loop world = World(client.get_world(), hud) File "manual_control.py", line 134, in init__ spawn_points = self.world.get_map().get_spawn_points() IndexError: vector::_M_range_check: __n (which is 0) >= this->size() (which is 0)
Hi David, Dou you put the actor "Vehicle Spawn Point" ? .This actor's function is to spawn vehicles. The OpenDrive generates triggers. You only drag the "Vehicle Spawn Point" above these. I hope this solve your issue.
Hi David, Dou you put the actor "Vehicle Spawn Point" ? .This actor's function is to spawn vehicles. The OpenDrive generates triggers. You only drag the "Vehicle Spawn Point" above these. I hope this solve your issue.
Yes, I did, as you can see in the picture. I have dragged 1 "Vehicle Spawn Point. I als0 test 2 or 3 vehicle spawn point, but it makes no difference
Sorry ! It's true !!! Well in any case you need the actor "Carla Map Generations" and drag into Unreal . Right now our autopilot needs a CarlaMapGenerator Built in the world for it to work correctly, even in maps using the new roadrunner pipeline. Don't put below or avobe, put it in outside the map.
We currently working to make the workflow easier
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.
Is there any possibility to import directly maps created in RoadRunner into Carla, without passing by Unreal Engine ?
Currently no, we have many things that depend on unreal.
Currently no, we have many things that depend on unreal.
I read some of your responses for the steps to import map created in RoadRunner into Carla Simulator, but I'm wondering which version of Carla is needed ? I cloned the "stable" and "master" branches, but didn't find "***/Carla/Map/Game...". Could you plz describe a little bit in detail, how to export a map from RoadRunner, than pass by UE4, and import into Carla ?
It has been severals months when this issue is up, I'm wondering as well do you or your team have already a documentation about it ? Cuz I didn't find yet anyone has reached successfully to this issue with a documentation prepared.
Thanks a lot !
Hi, @ShanshanYOU
If it is true that the documentation is needed an update and there are many things to consider to export the map.
Currently, it has three-way to export maps
1- A script to automatically generate a map from RoadRunner (work in Linux version 0.9.1). https://github.com/carla-simulator/carla/blob/master/Docs/generate_map_from_fbx.md 2- Unreal Plugin from RoadRunner - https://www.youtube.com/watch?v=OcbYuTFAo8o 3- This is the manual method https://carla.readthedocs.io/en/latest/how_to_make_a_new_map/
Sorry, the way 1 it's not necessary to use Unreal. Export directly.
How can I install opendrive on windows 10 any idea
please
Hi, @ShanshanYOU
If it is true that the documentation is needed an update and there are many things to consider to export the map.
Currently, it has three-way to export maps
1- A script to automatically generate a map from RoadRunner (work in Linux version 0.9.1). https://github.com/carla-simulator/carla/blob/master/Docs/generate_map_from_fbx.md 2- Unreal Plugin from RoadRunner - https://www.youtube.com/watch?v=OcbYuTFAo8o 3- This is the manual method https://carla.readthedocs.io/en/latest/how_to_make_a_new_map/
Sorry, the way 1 it's not necessary to use Unreal. Export directly.
Hi, @XGodina Thank you for your reply. Actually I tried all these three ways, none of them worked well for me. The first one shows an error : "No smoothing group information". Equally for the second one, UE Editor couldn't find RoadRunnerImporter Plugin (which is contained in Plugins that I have copied).
Meantime, the third one doesn't provide a clear documentation. I'm in the mid way of it, could you clarify which meshs/elements of map should be put in each folder : Road/Roadlines/Terrain. I just have some meterials for road markings, roads/grass and trees.
Thanks again ! Best regards, Shanshan
Hello,
does the "OpenDriveActor" generate the road geometry (mesh) from OpenDrive format? Or do i also need the fbx* file to see a geometry?
I was wondering, because in the "How to make a new map in RoadRunner" tutorial it sais i should export both filetypes.
Best regards
Can I make a Map in CARLA without RoadRunner just using opendrive file. Actually I want to make same Map in CARLA as in OpenStreetMap. I can export OpenStreetMap to Opendrive format using SUMO simulator. Can Anyone guide me how to make fbx file and use it to create MAP in CARLA.
Hi, @arvindpalkyutech. I haven't used SUMO. If you can export .fbx file from SUMO, you can load in UE4. Another way is to load your OpenDrive in RoadRunner. Generate the map and after export in UE4.
Hi, I just meet a problem when using the Open Drive Actor. I have a umap file in Content Browser, but the box named "Generate Route" cannot be clicked. I'm so confused so any advise is welcomed.
@jeffchen006 Open Drive Actor is obsolete and will be removed soon, there is no need to use it since the new Trafic Manager works using the OpenDRIVE directly :)
@marcgpuig Hi, I am doing co-simulation with Carla and sumo, when I process the map in Carla, I cannot find the "Open Drive Actor" in Carla. Should I apply the "OpenDRIVE" to generate a series of RoutePlanner and VehicleSpawnPoint actors?
Hi @ZJH166018,
If I understood good you are working in UE4. In that case, here you can find the Blueprint of OpenDriveActor.
Remember that the Map file and the OpenDrive file must have the same name.
OK,I will check it, thank you very much!
发自我的iPhone
------------------ Original ------------------ From: Xavi @.> Date: Wed, Jun 30, 2021 7:23 PM To: carla-simulator/carla @.> Cc: Jiahao Zhang @.>, Mention @.> Subject: Re: [carla-simulator/carla] [0.9.1] any suggestion about generating map with opendrive file? (#996)
Hi @ZJH166018,
If I understood good you are working in UE4. In that case, here you can find the Blueprint of OpenDriveActor.
Remember that the Map file and the OpenDrive file must have the same name.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.
Is there any way to parse OpenDrive file in Carla? And I don't have fbx data. I'd like to generate map in carla without RoadRunner because I haven't receive any reply from Mathworks.
Thank you.
I want to generate map in carla according to a opendrive file. I search the plugin and find an "OpenDriveActor". This actor will load opendrive file. I want to know when this actor will work? Also, any suggestion about generating map automatically? thank you very much.