public class DriverUtil extends Object
Modifier and Type | Field and Description |
---|---|
static double |
DEFAULT_LEAD_TIME
The default amount of lead time for lane following, in seconds.
|
static double |
MIN_LEAD_DIST
The constant term in the formula of calculating lead distances.
|
Modifier and Type | Method and Description |
---|---|
static double |
calculateMaxFeasibleVelocity(VehicleDriverView vehicle)
Determine the maximum velocity at which the Vehicle should travel
given the Lane in which it is.
|
static double |
getLeadDistance(VehicleDriverView vehicle)
Get the estimated lead distance, which is roughly equal to the speed of
the vehicle times the default lead time.
|
public static final double DEFAULT_LEAD_TIME
public static final double MIN_LEAD_DIST
public static double getLeadDistance(VehicleDriverView vehicle)
public static double calculateMaxFeasibleVelocity(VehicleDriverView vehicle)
vehicle
- the vehicleCopyright © 2013. All rights reserved.