TraCI/Change VehicleType State

Command 0xc5: Change Vehicle Type State

ubyte string ubyte <value_type>
Variable Vehicle Type ID Type of the value New Value

Changes a vehicle type. Because it is possible to change different values of a vehicle type, the number of parameter to supply and their types differ between commands. The following values can be changed, the parameter which must be given are also shown in the table. If a vehicle type is changed all vehicles sharing this type get the new value. If a value mentioned below is changed via the vehicle (see TraCI/Change_Vehicle_State), the vehicle gets a new type and won't be affected by further changes to the original type.

Overview Changeable Vehicle Type Variables
Variable ValueType Description
length (0x44) double Sets the vehicle type's length to the given value
max speed (0x41) double Sets the vehicle type's maximum speed to the given value
vehicle class (0x49) string Sets the vehicle type's vehicle class to the given value
speed factor (0x5e) double Sets the vehicle type's speed factor to the given value
speed deviation (0x5f) double Sets the vehicle type's speed deviation to the given value
emission class (0x4a) string Sets the vehicle type's emission class to the given value
width (0x4d) double Sets the vehicle type's width to the given value
min gap (0x4c) double Sets the vehicle type's minimum headway gap to the given value
shape class (0x4b) string Sets the vehicle type's shape class to the given value
acceleration (0x46) double Sets the vehicle type's wished maximum acceleration to the given value
deceleration (0x47) double Sets the vehicle type's wished maximum deceleration to the given value
imperfection (0x5d) double Sets the vehicle type's driver imperfection (sigma) to the given value
tau (0x48) double Sets the vehicle type's wished headway time to the given value
color (0x45) ubyte,ubyte,ubyte,ubyte (RGBA) Sets the vehicle type's color.

The message contents are as following:

length (0x44)

byte double
value type double New Length

max speed (0x41)

byte double
value type double New Maximum Speed

This page was last modified on 2 May 2013, at 14:51.