public class V2IPilot extends BasicPilot
AutoVehicleDriverView
autonomously. This agent
attempts to emulate the behavior of a real-world autonomous driver agent in
terms of physically controlling the Vehicle.Modifier and Type | Field and Description |
---|---|
static double |
DEFAULT_STOP_DISTANCE_BEFORE_INTERSECTION
The default shortest distance before an intersection at which the vehicle
stops if the vehicle can't enter the intersection immediately.
|
static double |
MINIMUM_FOLLOWING_DISTANCE
The minimum distance to maintain between the Vehicle controlled by this
AutonomousPilot and the one in front of it.
|
static double |
TRAVERSING_LANE_CHANGE_LEAD_TIME
The distance, expressed in units of the Vehicle's velocity, at which to
switch to a new lane when turning.
|
Constructor and Description |
---|
V2IPilot(AutoVehicleDriverView vehicle,
AutoDriver driver)
Create an pilot to control a vehicle.
|
Modifier and Type | Method and Description |
---|---|
void |
followAccelerationProfile(V2ICoordinator.ReservationParameter rp)
Follow the acceleration profile received as part of a reservation
confirmation from an IntersectionManager.
|
AutoDriver |
getDriver()
Get the driver this pilot controls.
|
AutoVehicleDriverView |
getVehicle()
Get the vehicle this pilot controls.
|
void |
simpleThrottleAction()
The simple throttle action.
|
void |
takeSteeringActionForTraversing(V2ICoordinator.ReservationParameter rp)
Set the steering action when the vehicle is traversing an intersection.
|
cruise, followCurrentLane, followNewLane
public static final double MINIMUM_FOLLOWING_DISTANCE
public static double DEFAULT_STOP_DISTANCE_BEFORE_INTERSECTION
public static final double TRAVERSING_LANE_CHANGE_LEAD_TIME
public V2IPilot(AutoVehicleDriverView vehicle, AutoDriver driver)
vehicle
- the vehicle to controldriver
- the driverpublic AutoVehicleDriverView getVehicle()
getVehicle
in class BasicPilot
public AutoDriver getDriver()
getDriver
in class BasicPilot
public void takeSteeringActionForTraversing(V2ICoordinator.ReservationParameter rp)
public void followAccelerationProfile(V2ICoordinator.ReservationParameter rp)
public void simpleThrottleAction()
Copyright © 2013. All rights reserved.