export
Export driving scenario to ASAM OpenDRIVE, ASAM OpenSCENARIO or RoadRunner HD Map file
Since R2020b
Syntax
Description
export(
exports the roads, lanes, junctions, and actors in a driving scenario to the ASAM OpenDRIVE® file format, describing the static content of driving scenario. There may be
variations between the original scenario and the exported scenario. For details, see Limitations.scenario
,"OpenDRIVE",filename
)
The function supports exporting driving scenarios to OpenDRIVE® file versions V1.4, V1.5, and ASAM OpenDRIVE file version V1.6.
export(
exports the road network, actors, and trajectories in a driving scenario to the ASAM OpenSCENARIO® file format, describing the dynamic content of driving scenario. Exporting to
an ASAM OpenSCENARIO file also exports several data files. For more information, see Data Files Exported with ASAM OpenSCENARIO File. To know about the
default actor parameters that the function exports, see ASAM OpenSCENARIO Representations.scenario
,"OpenSCENARIO",filename
)
The function supports exporting driving scenarios to ASAM OpenSCENARIO file versions V1.0 and V1.1.
Note
The function interpolates additional waypoints between the ones specified in the driving scenario, to generate smooth trajectories for exported actors in the output ASAM OpenSCENARIO file.
The function does not support exporting reverse waypoints of actors to an ASAM OpenSCENARIO file.
export(___,
specifies
options using one or more name-value arguments and any of the input argument combinations
from previous syntaxes. For example,
Name=Value
)export(scenario,"OpenDRIVE",filename,OpenDRIVEVersion=1.5)
exports the
driving scenario to V1.5 of the OpenDRIVE file format.
export(
exports the road network and static actors in a driving scenario to the RoadRunner HD Map file format, describing the static content of driving scenario. There
may be variations between the original scenario and the exported scenario. For details, see
Limitations.scenario
,"RoadRunner HD Map",filename
)
Examples
Input Arguments
Limitations
ASAM OpenDRIVE Export Limitations
Roads
The cubic polynomial and the parametric cubic polynomial geometry types in the scenario are exported as spiral geometry types. This causes some variations in the exported road geometry if the road is a curved road. For example, in the figure below, notice that the sharp corners in the input road became relatively smooth when exported to the ASAM OpenDRIVE format.
Input Road Exported ASAM OpenDRIVE Road When segments of adjacent roads overlap with each other, the function does not export the overlapping segments of the roads.
Input Roads Exported ASAM OpenDRIVE Roads
Lanes
When a road with multiple lane specifications contains a taper between two road segments, the function exports the road without taper.
Input Road Exported ASAM OpenDRIVE Road When a road consisting of multiple segments is connected to a junction, the function does not export the road.
Junctions
The junctions of the road network are processed without lane connection information, so the junction shapes may not be accurate in the exported scenario.
Input Road Exported ASAM OpenDRIVE Road When a junction is not connected to any road, the function does not export such junction.
Input Roads Exported ASAM OpenDRIVE Roads To export a detached junction to an ASAM OpenDRIVE file, you can manually drag incoming or outgoing roads and attach them to the junction.
Actors
The
export
function does not export any actor that is present either on a junction or on a road with multiple road segments.While exporting a user-defined actor, the function sets the type of object to
'none'
.
ASAM OpenDRIVE Import
When you export a driving scenario object that contains an imported ASAM OpenDRIVE scenario, the limitations of ASAM OpenDRIVE import apply to ASAM OpenDRIVE export. You can import an ASAM OpenDRIVE scenario to a
drivingScenario
object by using theroadNetwork
function. For information on the limitations of ASAM OpenDRIVE import, seeroadNetwork
.
RoadRunner HD Map Export Limitations
A RoadRunner Scene Builder license is required to build a scene from the HD map file. Without a RoadRunner Scene Builder license, you can import the HD map file and only view the map as nodes and links
in RoadRunner. Composite Lane Specifications Roads that use composite lane specifications ( Composite lane specifications for creating roads with varying widths are
not supported Lane Markings and Lane Type For lane markings created using the For roads that form loops, multiple lane marking styles are not
supported. Parking Lot Driving scenarios containing parking lots added using the Barriers Barriers with gaps between segments created using the For barriers, setting the Static Actors Static actors such as pedestrians and bicycles are not supported. To
represent these actors in RoadRunner, you can either download a cuboid FBX and place it under
Assets/Vehicles/ or edit the map to point to their own assets. Road Groups and Road Networks Road junctions and intersections added using the Road networks created using the compositeLaneSpec
) and form loops or intersect with themselves
are not supported.laneMarking
object and lane types created using the laneType
object, only Color
name-value
argument is supported. Only white and yellow colors are supported.parkingLot
function are not supported.barrier
function with SegmentGap
name-value argument, are not supported. Such barriers will be laid out
without any gaps in the RoadRunner HD map representation.SegmentLength
,
Width
, and Height
properties
are not supported. These properties are calculated automatically based on
the asset size during import to RoadRunner.roadGroup
function are not supported.roadNetwork
function are not supported when they use road
groups.
More About
Version History
Introduced in R2020b