10.1 Introduction to roads
Elements in UML model
<road>
element
In ASAM OpenDRIVE, roads are represented by <road>
elements within the <OpenDRIVE>
element.
UML class: t_road XML tag: <road> (Multiplicity: 1..*)
Roads are the core elements for any road network in ASAM OpenDRIVE. Each road runs along one road reference line.
A road shall have at least the center lane. Vehicles may drive in both directions of the road reference line. The standard driving direction is defined by the value which is assigned to the @rule attribute (RHT=right-hand traffic, LHT=left-han traffic).
ASAM OpenDRIVE roads may be roads in the real road network or artificial road network created for application use.
Each road is described by one or more <road>
elements.
One <road>
element may cover a long stretch of a road, shorter stretches between junctions, or even several roads.
A new <road>
element should only start if the properties of the road cannot be described within the previous <road>
element or if a junction is required.d
Name | Type | Use | Unit | Description |
---|---|---|---|---|
|
string |
required |
Unique ID within the database. If it represents an integer number, it should comply to uint32_t and stay within the given range. |
|
|
string |
required |
ID of the junction to which the road belongs, for example connecting roads, cross paths, and roads of a junction boundary. Use -1 for none. |
|
|
required |
m |
Total length of the reference line in the xy-plane. Change in length due to elevation is not considered |
|
|
string |
optional |
Name of the road. May be chosen freely. |
|
|
optional |
Basic rule for using the road; RHT=right-hand traffic, LHT=left-hand traffic. When this attribute is missing, RHT is assumed. |

Figure 36 shows the UML class diagram of the ASAM OpenDRIVE Road class.

Figure 37 shows the UML class diagram of the ASAM OpenDRIVE RoadGeometry class.
Rules
The following rules apply to roads:
-
asam.net:xodr:1.4.0:road.overlap_inside_junction: Only roads with the same junction id may overlap on the same level. This does not include roads on different driving levels, for example, bridges.
-
asam.net:xodr:1.4.0:road.no_overlap_outside_junction: Roads outside a junction shall not overlap.
-
asam.net:xodr:1.4.0:road.no_overlap_self: A road shall not overlap with itself.
-
The road length should be the sum of the lengths of all
<geometry>
elements
Related topics