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

Table 23. Attributes of the <road> element
Name Type Use Unit Description

id

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.

junction

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.

length

t_grZero

required

m

Total length of the reference line in the xy-plane. Change in length due to elevation is not considered

name

string

optional

Name of the road. May be chosen freely.

rule

e_trafficRule

optional

Basic rule for using the road; RHT=right-hand traffic, LHT=left-hand traffic. When this attribute is missing, RHT is assumed.

img
Figure 36. UML class diagram of the Road class

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

img
Figure 37. UML class diagram of the RoadGeometry class

Figure 37 shows the UML class diagram of the ASAM OpenDRIVE RoadGeometry class.

Rules

The following rules apply to roads:

  • 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.

  • Roads outside a junction shall not overlap.

  • A road shall not overlap with itself.

Related topics