 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
15 #ifndef CC_VEHICLEVARIABLES_H
16 #define CC_VEHICLEVARIABLES_H
double controllerAcceleration
acceleration as computed by the controller, to be sent to other vehicles
double frontDataReadTime
when front vehicle data has been readed from GPS
double K[MAX_N_CARS][MAX_N_CARS]
K matrix.
double accHeadwayTime
headway time for ACC
Position frontPosition
current front vehicle position
double frontSpeed
current front vehicle speed
double leaderAngle
platoon's leader angle in radians
bool leaderInitialized
@did we receive at least one packet?
Position leaderPosition
platoon's leader position
bool autoFeed
determines whether CACC should automatically fetch data about other vehicles
double leaderDataReadTime
when leader data has been readed from GPS
double caccSpacing
fixed spacing for CACC
double caccXi
controller related parameters
bool frontInitialized
@did we receive at least one packet?
const static double defaultK[MAX_N_CARS][MAX_N_CARS]
double leaderControllerAcceleration
double frontAcceleration
current front vehicle acceleration (used by CACC)
double ccDesiredSpeed
CC desired speed.
int nCars
number of cars in the platoon
GenericEngineModel * engine
engine model employed by this car
double h[MAX_N_CARS]
vector of time headways h
enum Plexe::ACTIVE_CONTROLLER activeController
currently active controller
struct Plexe::VEHICLE_DATA vehicles[MAX_N_CARS]
data about vehicles in the platoon
bool useControllerAcceleration
determines whether PATH's CACC should use the real vehicle acceleration or the controller computed on...
represent the set of fake data which is sent to the controller in order to automatically make the car...
struct FAKE_CONTROLLER_DATA fakeData
fake controller data.
double frontControllerAcceleration
double frontAngle
front vehicle angle in radians
int position
my position within the platoon (0 = first car)
bool initialized[MAX_N_CARS]
tells whether data about a certain vehicle has been initialized
const static double defaultB[]
A point in 2D or 3D with translation and scaling methods.
Position frontVelocity
front vehicle velocity vector
int L[MAX_N_CARS][MAX_N_CARS]
L matrix.
MSVehicle * frontVehicle
front sumo id, used for auto feeding
double b[MAX_N_CARS]
vector of damping ratios b
bool autoLaneChange
automatic whole platoon lane change
double leaderAcceleration
const static double defaultH[]
double leaderAcceleration
platoon's leader acceleration (used by CACC)
Position leaderVelocity
platoon's leader velocity vector
std::map< int, std::string > members
list of members belonging to my platoon
ACTIVE_CONTROLLER
Determines the currently active controller, i.e., ACC, CACC, or the driver. In future we might need t...
double leaderControllerAcceleration
platoon's leader controller acceleration (used by CACC)
const static int defaultL[MAX_N_CARS][MAX_N_CARS]
int engineModel
numeric value indicating the employed model
bool usePrediction
enable/disable data prediction (interpolation) for missing data
int nInitialized
count of initialized vehicles
double frontControllerAcceleration
front vehicle controller acceleration (used by CACC)
double leaderSpeed
platoon's leader speed (used by CACC)
Representation of a vehicle in the micro simulation.
MSVehicle * leaderVehicle
leader vehicle, used for auto feeding