class RoadBuilder: Any

Builder for Road objects of the RoadSpaces data model.

Constructors

<init>

constructor(configuration: Opendrive2RoadspacesConfiguration)

Builder for Road objects of the RoadSpaces data model.

Parameters

Name Description
configuration: Opendrive2RoadspacesConfiguration

Methods

buildRoad

fun buildRoad(id: RoadspaceIdentifier, srcRoad: OpendriveRoad, roadSurface: CurveRelativeParametricSurface3D, roadSurfaceWithoutTorsion: CurveRelativeParametricSurface3D, baseAttributes: AttributeList): Result<Road, Exception>

Builds a single road from the OpenDRIVE data model.

Parameters

Name Description
id: RoadspaceIdentifier

identifier of the road space

srcRoad: OpendriveRoad

source road model of OpenDRIVE

roadSurface: CurveRelativeParametricSurface3D

road surface with torsion applied

roadSurfaceWithoutTorsion: CurveRelativeParametricSurface3D

road surface without torsion applied (needed for lanes with true level entry)

baseAttributes: AttributeList

attributes attached to each element of the road (e.g. lanes)

ReturnValue

Name Description
Result<Road, Exception>