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 |
-
@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.
Name | Type | Use | Description |
---|---|---|---|
|
integer |
required |
Minimum ID of the lanes for which the object is valid |
|
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.
-
asam.net:xodr:1.7.0:road.object.validty.check_parent_orientation: The range given by all
<validity>
elements shall be a subset of the parent’s @orientation attribute:
-
asam.net:xodr:1.7.0:road.object.validty.right_hand_traffic_lane_ids: 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.
-
asam.net:xodr:1.7.0:road.object.validty.left_hand_traffic_lane_ids: 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.
-
asam.net:xodr:1.7.0:road.object.validty.from_lower_equal_to: The value of the @fromLane attribute shall be lower than or equal to the value of the @toLane attribute.
Related topics