eclipse-sumo / sumo

Eclipse SUMO is an open source, highly portable, microscopic and continuous traffic simulation package designed to handle large networks. It allows for intermodal simulation including pedestrians and comes with a large set of tools for scenario creation.
https://eclipse.dev/sumo
Eclipse Public License 2.0
2.58k stars 1.44k forks source link

shape changed when convert opendrive map to sumo road network in lefthand #5638

Closed o-u-p closed 5 years ago

o-u-p commented 5 years ago

it caused shape changed when executing "netconvert -c defaultSchema.xsd --opendrive opendrive.xodr --lefthand -o test.net.xml "

Screenshot from 2019-05-15 11-52-25 Could someone tell me how to make it work correctly? Any help will be appreciated!

namdre commented 5 years ago

I never tested OpenDRIVE import for lefthand networks. Can you provide a sample .xodr file?

o-u-p commented 5 years ago

I have sent it to your email which subject is "opendrive sample".

namdre commented 5 years ago

Some kinds of geometrical definition already imply a specific jurisdiction and you cannot set the option --lefthand independent of that (https://sumo.dlr.de/wiki/NETCONVERT#Lefthand_Networks)

For OpenDRIVE, this translates to:

o-u-p commented 5 years ago

If I don't set the option --lefthand, it will generate a righthand network and the opendrive map itself is lefthand already, so, do you mean I need to change the opendrive map?

namdre commented 5 years ago

Right now the opendrive map encodes some geometries that only make sense for a right-hand network. If you want a lefthand network you need to change the opendrive (specifically, you must reverse all road elements which only define lanes in one direction) and then you can import with option --lefthand

o-u-p commented 5 years ago

Thanks for your help. By the way, can I know if I can reverse the shape in sumo code to make the lefthand work correctly?

namdre commented 5 years ago

You can do the following