Export road network to OpenDRIVE
export(
exports the roads, lanes, and junctions in a driving scenario to the OpenDRIVE® 1.4H file format. There may be variations between the original scenario and
the exported scenario. For details, see Limitations.scenario
,'OpenDRIVE',filename
)
The export
function does not export the actors and their
properties from the original scenario to the OpenDRIVE format.
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 OpenDRIVE format.
Input Road | Exported OpenDRIVE Road |
|
|
The junctions of the road network are processed without lane connection information and so, the junction shapes may not be accurate in the exported scenario.
Input Road | Exported OpenDRIVE Road |
|
|
The limitations in OpenDRIVE import applies to OpenDRIVE export, if you export a driving scenario object that contains an imported
OpenDRIVE scenario. You can import an OpenDRIVE scenario to a drivingScenario
object by using the roadNetwork
function. For information on limitations in OpenDRIVE import, see roadNetwork
.