public static interface LaneChange.LaneChangePath
Copyright (c) 2013-2019 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
Modifier and Type | Interface and Description |
---|---|
static class |
LaneChange.LaneChangePath.SequentialLaneChangePath
A helper class to allow a lane change to follow a sequential determination of the target position (including
rotation) for each time step.
|
Modifier and Type | Field and Description |
---|---|
static LaneChange.LaneChangePath |
BEZIER
A simple Bezier curve directly to the lane change target position.
|
static LaneChange.LaneChangePath |
POLY3
The target point (including rotation) for the coming time step is based on a 3rd-degree polynomial.
|
static LaneChange.LaneChangePath |
SINE
The target point (including rotation) for the coming time step is based on a sine wave.
|
Modifier and Type | Method and Description |
---|---|
OTSLine3D |
getPath(Duration timeStep,
Length planDistance,
Speed meanSpeed,
DirectedLanePosition from,
DirectedPoint startPosition,
LateralDirectionality laneChangeDirection,
List<LaneDirection> fromLanes,
List<LaneDirection> toLanes,
double endFractionalPosition,
Duration laneChangeDuration,
double lcFraction)
Returns a (partial) path for a lane change.
|
static final LaneChange.LaneChangePath BEZIER
static final LaneChange.LaneChangePath SINE
static final LaneChange.LaneChangePath POLY3
OTSLine3D getPath(Duration timeStep, Length planDistance, Speed meanSpeed, DirectedLanePosition from, DirectedPoint startPosition, LateralDirectionality laneChangeDirection, List<LaneDirection> fromLanes, List<LaneDirection> toLanes, double endFractionalPosition, Duration laneChangeDuration, double lcFraction) throws OTSGeometryException
planDistance
, unless the lane change
will be finished during the coming time step. In that case, the caller of this method is to lengthen the path along
the center line of the target lane.timeStep
- Duration; time stepplanDistance
- Length; distance covered during the planmeanSpeed
- Speed; mean speed during time stepfrom
- DirectedLanePosition; current position on the from-lanesstartPosition
- DirectedPoint; current 2D positionlaneChangeDirection
- LateralDirectionality; lane change directionfromLanes
- List<LaneDirection>; lane list of the from-lane concernedtoLanes
- List<LaneDirection>; lane list of the to-lane concernedendFractionalPosition
- double; fractional position at the end of the plan at the last lanes in the lane listslaneChangeDuration
- Duration; current considered duration of the entire lane changelcFraction
- double; fraction of lane change done so farOTSGeometryException
- on wrong fractional positionCopyright © 2014–2019 Delft University of Technology. All rights reserved.