TraCI/VehicleType Value Retrieval
Command 0xa5: Get Vehicle Type Variable
| ubyte | string |
| Variable | Vehicle Type ID |
|---|
Asks for the value of a certain variable of the named vehicle type.
The following variable values can be retrieved, the type of the return value is also shown in the table.
| Variable | ValueType | Description |
|---|---|---|
| id list (0x00) | stringList | Returns a list of ids of currently loaded vehicle types (the given vehicle type ID is ignored) |
| count (0x01) | int | Returns the number of currently loaded vehicle types (the given vehicle type ID is ignored) |
| length (0x44) | double | Returns the length of the vehicles of this type (including stop gap) [m] |
| vmax (0x41) | double | Returns the maximum speed of vehicles of this type [m/s] |
| accel (0x46) | double | Returns the maximum acceleration possibility of vehicles of this type [m/s^2] |
| decel (0x47) | double | Returns the maximum deceleration possibility of vehicles of this type [m/s^2] |
| tau (0x48) | double | Returns the driver's reaction time for vehicles of this type [s] |
| vclass (0x49) | string | Returns the class of vehicles of this type |
| emission_class (0x4a) | string | Returns the emission class of vehicles of this type |
| shape (0x4b) | string | Returns the shape of vehicles of this type |
| offset (0x4c) | double | Returns the offset (gap to front vehicle if halting) of vehicles of this type [m] |
| gui width (0x4d) | double | Returns the width of vehicles of this type [m] |
| color (0x45) | byte,byte,byte,byte | Returns the color of this type |
Response 0xb5: Vehicle Type Variable
| ubyte | string | ubyte | <return_type> |
| Variable | Vehicle Type ID | Return type of the variable | <VARIABLE_VALUE> |
|---|
The respond to a "Command Get Vehicle Type Variable".
This page was last modified on 13 July 2011, at 14:01.