public class RoadDescription
Object aggregating information about road markup and road geometry.
Constructor and Description |
---|
RoadDescription(Lane[] lanes,
int currentLaneIndex,
float relativePositionInLane,
float currentLaneCenter,
float currentLaneWidth)
Object aggregating information about road markup and road geometry.
|
Modifier and Type | Method and Description |
---|---|
float |
getCurrentLaneCenter()
Position of the center of the current lane
|
int |
getCurrentLaneIndex()
Index of the lane in lanes array where vehicle is located.
|
float |
getCurrentLaneWidth()
Width of the current lane in meters
|
Lane[] |
getLanes()
Lanes on the road
|
float |
getRelativePositionInLane()
Relative position in the lane.
|
public RoadDescription(Lane[] lanes, int currentLaneIndex, float relativePositionInLane, float currentLaneCenter, float currentLaneWidth)
Object aggregating information about road markup and road geometry.
lanes
- Lanes on the roadcurrentLaneIndex
- Index of the lane in lanes array where vehicle is located. -1 - lane is not determinedrelativePositionInLane
- Relative position in the lane. 0 - left markup line, 1 - right markup linecurrentLaneCenter
- Position of the center of the current lanecurrentLaneWidth
- Width of the current lane in meterslanes
- Lanes on the roadcurrentLaneIndex
- Index of the lane in lanes array where vehicle is located. -1 - lane is not determinedrelativePositionInLane
- Relative position in the lane. 0 - left markup line, 1 - right markup linecurrentLaneCenter
- Position of the center of the current lanecurrentLaneWidth
- Width of the current lane in meterspublic Lane[] getLanes()
Lanes on the road
public int getCurrentLaneIndex()
Index of the lane in lanes array where vehicle is located.
-1 - lane is not determined
public float getRelativePositionInLane()
Relative position in the lane.
0 - left markup line, 1 - right markup line
public float getCurrentLaneCenter()
Position of the center of the current lane
public float getCurrentLaneWidth()
Width of the current lane in meters