Networks/Import/OpenDRIVE

For reading OpenDRIVE networks, give NETCONVERT the option or  for short. netconvert --opendrive myOpenDriveNetwork.xodr -o mySUMOnetwork.net.xml

=User Options=

Defining Lane Types to Import
OpenDRIVE allows to assign a lane to an abstract (not pre-defined) class. Some of the lanes can be used by vehicles, some represent non-usable building structures, such as curbs. When reading OpenDRIVE files, NETCONVERT determines whether and how a lane shall be imported by looking into pre-defined and/or loaded edge types. Several known lane types are pre-defined, and shown in the following table together with their defaults. They can be overwritten using edge types of same name. The following attributes are retrieved from the edge types if not set explicitly by the lane within the read OpenDRIVE file:
 * width
 * maximum allowed speed
 * allowed vehicle classes

Lane types NETCONVERT interprets as driving lanes

All other types are not imported.

As a conclusion, if you wish to import lanes of type " border ", you have to additionally load a edge types file like this:



=Import Process=

Dealing with Lane Sections
OpenDRIVE edges may contain one or more "lane sections". As OpenDRIVE lane sections may differ in number of lanes for any of the directions, the importer has to split the imported edge at all lane sections. The resulting edges' IDs are built from the original edge ID and the offset of the lane section within the edge (lane section's s -value), divided by a dot ('.'). As an example, the first lane section of the edge '100' is named '100.0.00'. Assuming the edge has a further lane section starting at s =100, a further edge named '100.100.00' would be built.

The importer checks whether the lane sections are given in the right order (increasing s -value) and resorts them, if not. Additionally, lane sections that are very short, this means the s -value is near (POSITION_EPS, 0.1 m) to the last one, are removed. We have seen this only in automatically generated (scanned) networks.

Dealing with Speed Changes
OpenDRIVE allows to define changes of the allowed velocity along a lane. As SUMO road networks do not support such a feature, the imported OpenDRIVE edge is split at the positions the speed of a lane changes. Internally, this is handled by building additional lane section. As a result, the IDs of the edges are built the same way it would be done for lane sections - the s -value of the new lane section is composed by the original lane section's s -value plus the speed change's sOffset -value.