ReferenceLane
Description
The ReferenceLane
object defines the center lane, or reference
line, of a road in a RoadRunner scene. This lane has no width and serves as the basis for positioning all other
lanes, which are arranged outward from the reference line. You can use the
ReferenceLane
object to programmatically add lanes on either side of the
reference line using addLaneToRight
and
addLaneToLeft
functions,
respectively. Each road must have at least a reference lane and one additional lane with a
specified width. The reference lane is composed of a sequence of parametric spans, represented
as an ordered collection of nodes connected by spans between each pair of adjacent nodes. You
can use the LaneMarkingProfile
property to assign lane markings to each
span of the reference lane.
Creation
To retrieve a ReferenceLane
object that represents the reference line
of a road from your RoadRunner scene, extract the ReferenceLane
property of the road. For
example, refLane = rrRoad.ReferenceLane
extracts the
ReferenceLane
object from the ReferenceLane
property
of the road rrRoad
and assigns it to the variable
refLane
.
Properties
Object Functions
addLaneToRight | Add lane to right side of specific lane, relative to road direction |
addLaneToLeft | Add lane to left side of specific lane, relative to road direction |
Examples
Version History
Introduced in R2025a
See Also
roadrunnerAPI
| roadrunnerSetup
| Scene
| Lane
(RoadRunner) | addLineArcRoad