13.6 Lane validity for objects

By default, objects are valid for all lanes of a road. Lane validity offers the possibility to restrict the validity of an object to specific lanes only.

In ASAM OpenDRIVE, lane validity is represented by the <validity> element within the <object> element.

The @orientation attribute and the <validity> element complement each other. The @orientation attribute and the <validity> element are not interchangeable.

  • @orientation defines the travel direction for which an object is valid. @orientation="+" or @orientation="-" should only be used if the object impacts traffic rules. Otherwise, @orientation="none" should be used.

  • The <validity> element defines specific lanes for which an object is valid. It should only be used for objects which are relevant for traffic rules, for example outlines of stop lines.

Elements in UML model

<validity> element

UML class: t_road_objects_object_laneValidity
XML tag:   <validity> (Multiplicity: 0..*)

Lane validities restrict signals and objects to specific lanes.

Table 95. Attributes of the <validity> element
Name Type Use Description

fromLane

integer

required

Minimum ID of the lanes for which the object is valid

toLane

integer

required

Maximum ID of the lanes for which the object is valid

Rules

The following rules apply to validity elements:

  • An object may be valid for specified lanes.

  • An object may be valid for one lane only.

  • The range given by all <validity> elements shall be a subset of the parent’s @orientation attribute:

    • For right-hand traffic, @orientation="+" implies that the <validity> element shall only span negative lane ids, while @orientation="-" implies that the <validity> element shall only span positive lane ids. If the given <validity> elements span both, positive and negative lane ids, @orientation="none" shall be used.

    • For left-hand-traffic, @orientation="-" implies that the <validity> element shall only span negative lane ids, while @orientation="+" implies that the <validity> element shall only span positive lane ids. If the given <validity> elements span both, positive and negative lane ids, @orientation="none" shall be used.

  • The value of the @fromLane attribute shall be lower than or equal to the value of the @toLane attribute.

Related topics