Road

class Road(val id: RoadspaceIdentifier, val surface: AbstractCurveRelativeSurface3D, val surfaceWithoutTorsion: AbstractCurveRelativeSurface3D, val laneOffset: UnivariateFunction, val laneSections: NonEmptyList<LaneSection>, val linkage: RoadLinkage)

Representation of an actual road (without road objects) containing the surface and information on the lane topology as well as attributes.

Parameters

id

identifier of this road (each roadspace has exactly one road)

surface

surface geometry of the road with torsion applied

surfaceWithoutTorsion

surface geometry of the road without torsion applied

laneOffset

lateral lane offset to road reference line

laneSections

lane sections of this road

linkage

link information to other roads and junctions

Constructors

Link copied to clipboard
constructor(id: RoadspaceIdentifier, surface: AbstractCurveRelativeSurface3D, surfaceWithoutTorsion: AbstractCurveRelativeSurface3D, laneOffset: UnivariateFunction, laneSections: NonEmptyList<LaneSection>, linkage: RoadLinkage)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val laneSections: NonEmptyList<LaneSection>
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard

Returns the identifiers of all center lanes as a list.

Link copied to clipboard

Returns the center line of the road.

Link copied to clipboard

Returns a lane curve for all lanes contained in this road.

Link copied to clipboard

Returns the identifiers of all lanes (center, left and right) as a list.

Link copied to clipboard

Returns the identifiers of all lane sections as a list.

Link copied to clipboard

Returns the left boundary of all lanes contained in this road.

Link copied to clipboard

Returns the identifiers of all left and right lanes as a flattened list.

Link copied to clipboard

Returns all left and right lanes as a flattened list.

Link copied to clipboard

Returns the right boundary of all lanes contained in this road.

Link copied to clipboard

Returns the curve of the center lane with laneSectionIdentifier.

Link copied to clipboard
fun getCurveOnLane(laneIdentifier: LaneIdentifier, factor: Double, addLateralOffset: UnivariateFunction = ConstantFunction.ZERO): Either<Exception, AbstractCurve3D>

Returns a curve that lies on the road surface and is parallel to the lane boundaries

Link copied to clipboard

Returns the inner lane boundary of an individual lane with laneIdentifier.

Link copied to clipboard
fun getLane(laneIdentifier: LaneIdentifier): Either<IllegalArgumentException, Lane>

Returns an individual lane referenced by laneIdentifier; if it does not exist, an Either.Left is returned.

Link copied to clipboard

Returns the lane reference line which is a laterally translated road reference line.

Link copied to clipboard

Returns the lane section of the curveRelativePoint; if it does not exist, an Either.Left is returned.

Returns the lane section with the laneSectionIdentifier; if it does not exist, an Either.Left is returned.

Link copied to clipboard

Returns the LaneSectionIdentifier (first or last lane section) of the roadspace which is referenced by the roadspaceContactPointIdentifier.

Link copied to clipboard
fun getLaneSurface(laneIdentifier: LaneIdentifier, step: Double): Either<Exception, AbstractSurface3D>

Returns the surface of an individual lane with laneIdentifier and a certain discretization step size.

Link copied to clipboard
fun getLateralFillerSurface(laneIdentifier: LaneIdentifier, step: Double): Either<Exception, Option<LateralFillerSurface>>

Returns the filler surface which closes the gap occurring at the lateral transition of the laneIdentifier to the inner lane toward the road reference line. These lateral transitions might contain vertical holes which are caused by e.g. lane height offsets. If no lateral surface filler is needed due to adjacent lane surfaces, Option is returned.

Link copied to clipboard

Returns the left boundary of an individual lane with laneIdentifier.

Link copied to clipboard

Returns the outer lane boundary of an individual lane with laneIdentifier.

Link copied to clipboard

Returns the right boundary of an individual lane with laneIdentifier.

Link copied to clipboard
Link copied to clipboard

Returns the contact point of the roadspace which connects to the junction with the junctionIdentifier.

Link copied to clipboard

Returns true, if the lane with laneIdentifier is contained in the last lane section of the road.

Link copied to clipboard

Returns true, if the lane with laneIdentifier is contained in the last lane section of the road.

Link copied to clipboard

Returns true, if road belongs to a junction.

Link copied to clipboard

Returns the number of contained lane sections.