MATLAB Functions for Scene Authoring
R2026bAutomated Driving Toolbox™ offers functions that enable you to programmatically author scenes in RoadRunner, such as by adding roads, modifying road geometry, and adding lanes and junctions, 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
roadrunnerAPI | RoadRunner authoring API (Since R2025a) |
Project | Specify RoadRunner project folder (Since R2025a) |
Scene | Current RoadRunner scene (Since R2025a) |
createAsset | Create new asset (Since R2025a) |
getAsset | Extract object for specified asset (Since R2025a) |
Define Road Types
addLineArcRoad | Add road with line-arc horizontal curve type to RoadRunner scene (Since R2025a) |
addSegmentedRoad | Add road with segmented curve type to RoadRunner scene (Since R2025a) |
addClothoidFitRoad | Add clothoid curve type road to RoadRunner scene (Since R2025a) |
Road Layout
Road | Specify road in RoadRunner scene (Since R2025a) |
Define Horizontal Road Curve Geometry
addControlPoint | Add control point to line-arc road curve (Since R2025a) |
addLine | Add new line segment to horizontal curve of segmented road (Since R2025a) |
addArc | Add new arc segment to horizontal curve of segmented road (Since R2025a) |
addSpiral | Add new spiral segment to horizontal curve of segmented road (Since R2025a) |
addParametricCubic | Add new parametric cubic segment to horizontal curve of segmented road (Since R2025a) |
Horizontal Road Curve Types
LineArcRoadCurve | Specify line-arc road curve in RoadRunner scene (Since R2025a) |
LineArcRoadCurvePoint | Specify control point on line-arc road curve in RoadRunner scene (Since R2025a) |
SegmentedRoadCurve | Define horizontal curve of segmented road (Since R2025a) |
Extract Lane Object
Lane | Lane on road in RoadRunner scene (Since R2025a) |
ReferenceLane | Reference lane of road in RoadRunner scene (Since R2025a) |
Add Lanes
addLaneToRight | Add lane to right side of specified lane (Since R2025a) |
addLaneToLeft | Add lane to left side of specified lane (Since R2025a) |
Define Lane Marking Profile
LaneMarkingProfile | Marking profile for lane boundaries in RoadRunner scene (Since R2025a) |
LaneMarkingStyle | Marking style of lane boundary in RoadRunner scene (Since R2025a) |
LaneMarkingSpan | Span in lane marking profile in RoadRunner scene (Since R2025a) |
LaneMarkingNode | Node in lane marking profile in RoadRunner scene (Since R2025a) |
Define Lane Width Profile
LaneWidthProfile | Width profile for lane boundaries in RoadRunner scene (Since R2025a) |
LaneWidthSpan | Span in lane width profile in RoadRunner scene (Since R2025a) |
LaneWidthNode | Node in lane width profile in RoadRunner scene (Since R2025a) |
Define Vertical Road Curve Geometry
insertNode | Insert node in span sequence (Since R2025a) |
Vertical Road Curve Types
SpanSequence | Define sequence of nodes connected by spans (Since R2025a) |
SpanSequenceNode | Define span sequence node in span sequence (Since R2025a) |
SpanSequenceSpan | Define span between two nodes in span sequence (Since R2025a) |
SuperElevationCurve | Road superelevation or banking angle profile (Since R2026a) |
SuperElevationNode | Road superelevation or banking angle at point (Since R2026a) |
SuperElevationSpan | Banking angle transition between adjacent superelevation nodes along road (Since R2026a) |
addSuperElevation | Add or update road superelevation or banking angle at point (Since R2026a) |
LateralProfile | Lateral profile of road (Since R2026a) |
LateralProfileNode | Node in lateral profile (Since R2026a) |
LateralProfileSpan | Span in lateral profile in RoadRunner scene (Since R2026a) |
CrossSectionCurve | Cross-section profile of road (Since R2026a) |
CrossSectionSpan | Span in cross-section profile (Since R2026a) |
CrossSectionNode | Node in cross-section profile (Since R2026a) |
addLateralHeight | Add lateral height variation to road (Since R2026a) |
Create and Modify Junctions
Junction | Junctions in RoadRunner scene (Since R2026b) |
addJunction | Add junction to RoadRunner scene (Since R2026b) |
clearMarkingsInJunction | Clear lane markings in junction (Since R2026b) |
Manage Junction Maneuvers
Maneuver | Maneuver roads in junction (Since R2026b) |
addAutomaticManeuvers | Add automatic maneuvers to junction (Since R2026b) |
addManeuver | Add maneuver roads to junction (Since R2026b) |
Modify Corner Geometry
Corner | Corner of junction connecting edges of two adjacent approach roads (Since R2026b) |
setRadius | Set corner radius (Since R2026b) |
Manage Road Overlaps
OverlapGroup | Overlap group of road (Since R2026b) |
addOverlapGroup | Add overlap group (Since R2026b) |
getRoadOverlaps | Returns distance ranges where two roads overlap (Since R2026b) |
Query Junction Topology
getLanes | Query direction specific lanes on road relative to junction (Since R2026b) |
getConnectedRoads | Query approach roads connected by corner (Since R2026b) |
getConnectedRoadOrientations | Query orientation of connected approach roads (Since R2026b) |
getJunctions | Returns all junctions for road (Since R2026b) |
Featured Examples
Design a Curved Road Programmatically using MATLAB Scene Authoring Functions
Design a curved road using scene authoring functions.
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Sélectionner un site web
Choisissez un site web pour accéder au contenu traduit dans votre langue (lorsqu'il est disponible) et voir les événements et les offres locales. D’après votre position, nous vous recommandons de sélectionner la région suivante : .
Vous pouvez également sélectionner un site web dans la liste suivante :
Comment optimiser les performances du site
Pour optimiser les performances du site, sélectionnez la région Chine (en chinois ou en anglais). Les sites de MathWorks pour les autres pays ne sont pas optimisés pour les visites provenant de votre région.
Amériques
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
