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.56k stars 1.43k forks source link

OSM: import connectivity relation #10268

Open YangBrady opened 2 years ago

YangBrady commented 2 years ago

I converted OSM to OpenDrive, and i want diy some lane change

image

netconvert --osm-files map.osm --opendrive-output map.xodr --geometry.remove true --offset.x 0 --offset.y 0 --roundabouts.guess true --tls.discard-simple true --tls.join true --tls.guess-signals true --tls.default-type actuated --keep-edges.by-vclass passenger --junctions.join true --junctions.corner-detail 5 --junctions.scurve-stretch 0.75 --osm.turn-lanes true

image

it seems that only the rightmost lane will change lanes, but i want diy it

image

i try to add connectivity, like '1:1|2:1,2', but netconvert dosen't work

so what shall I do? thanks


SUMO-version: 1.12.0

operating system: win7 64

namdre commented 2 years ago

The connectivity relation isn't currently imported from OSM. I recommend a three step process:

  1. import OSM with -o net.net.xml
  2. Use netedit to modify connections to your liking (https://sumo.dlr.de/docs/Netedit/editModesNetwork.html#edit_connections)
  3. use netconvert to convert the modified net.xml to xodr