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.
选择网站
选择网站以获取翻译的可用内容,以及查看当地活动和优惠。根据您的位置,我们建议您选择:。
您也可以从以下列表中选择网站:
如何获得最佳网站性能
选择中国网站(中文或英文)以获得最佳网站性能。其他 MathWorks 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
- América Latina (Español)
- Canada (English)
- United States (English)
欧洲
- 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)
