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