Main Content

MATLAB Functions for Scene Authoring

Create and modify RoadRunner scene elements, such as roads, and lanes, using MATLAB® (requires Automated Driving Toolbox™)

MATLAB functions for scene authoring enable you to programmatically author scenes in RoadRunner, such as by adding roads, modifying road geometry, and adding lanes, from the MATLAB command-line interface. By authoring scenes programmatically, you can quickly build scenes without switching between applications, automate repetitive authoring tasks, and generate scene variations for automated tests.

Functions

expand all

roadrunnerAPIRoadRunner authoring API (Since R2025a)
ProjectSpecify RoadRunner project folder (Since R2025a)
SceneCurrent RoadRunner scene (Since R2025a)

Define Road Types

addLineArcRoadAdd road with line-arc horizontal curve type to RoadRunner scene (Since R2025a)
addSegmentedRoadAdd road with segmented curve type to RoadRunner scene (Since R2025a)
addClothoidFitRoadAdd clothoid curve type road to RoadRunner scene (Since R2025a)

Road Layout

RoadSpecify road in RoadRunner scene (Since R2025a)

Define Horizontal Road Curve Geometry

addControlPointAdd control point to line-arc road curve (Since R2025a)
addLineAdd new line segment to horizontal curve of segmented road (Since R2025a)
addArcAdd new arc segment to horizontal curve of segmented road (Since R2025a)
addSpiralAdd new spiral segment to horizontal curve of segmented road (Since R2025a)
addParametricCubicAdd new parametric cubic segment to horizontal curve of segmented road (Since R2025a)
LineArcRoadCurvePointSpecify control point on line-arc road curve in RoadRunner scene (Since R2025a)

Horizontal Road Curve Types

LineArcRoadCurveSpecify line-arc road curve in RoadRunner scene (Since R2025a)
SegmentedRoadCurveDefine horizontal curve of segmented road (Since R2025a)

Define Vertical Road Curve Geometry

insertNodeInsert node in span sequence (Since R2025a)

Vertical Road Curve Types

SpanSequenceDefine sequence of nodes connected by spans (Since R2025a)
SpanSequenceNodeDefine span sequence node in span sequence (Since R2025a)
SpanSequenceSpanDefine span between two nodes in span sequence (Since R2025a)

Extract Lane Object

LaneLane on road in RoadRunner scene (Since R2025a)
ReferenceLaneReference lane of road in RoadRunner scene (Since R2025a)

Add Lanes

addLaneToRightAdd lane to right side of specific lane, relative to road direction (Since R2025a)
addLaneToLeftAdd lane to left side of specific lane, relative to road direction (Since R2025a)

Define Lane Marking Profile

LaneMarkingProfileMarking profile for lane boundaries in RoadRunner scene (Since R2025a)
LaneMarkingStyleMarking style of lane boundary in RoadRunner scene (Since R2025a)
LaneMarkingSpanSpan in lane marking profile in RoadRunner scene (Since R2025a)
LaneMarkingNodeNode in lane marking profile in RoadRunner scene (Since R2025a)

Lane Width Profile

LaneWidthProfileWidth profile for lane boundaries in RoadRunner scene (Since R2025a)
LaneWidthSpanSpan in lane width profile in RoadRunner scene (Since R2025a)
LaneWidthNodeNode in lane width profile in RoadRunner scene (Since R2025a)

Topics

  • Create Simple RoadRunner Scene (RoadRunner)

    Use RoadRunner scene editing software to create a simple road network.

  • Span Editing (RoadRunner)

    Various attributes are represented as parametric spans along lanes, roads, and other objects. Learn common steps to create, delete, and modify these span instances.