TraCI/Person Value Retrieval
generated on 2015-09-02 00:02:08.039129 from the wiki page for TraCI/Person_Value_Retrieval for SUMO 0.24.0
Command 0xae: Get Person Variable
| ubyte | string |
| Variable | Person ID |
|---|
Asks for the value of a certain variable of the named person. The value returned is the state of the asked variable/value within the last simulation step. In the case the person is loaded, but outside the network - due not being yet inserted into the network or being teleported within the current time step - a default "error" value is returned.
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 all persons currently running within the scenario (the given person ID is ignored) |
| count (0x01) | int | Returns the number of persons currently running within the scenario (the given person ID is ignored) |
| speed (0x40) | double | Returns the speed of the named person within the last step [m/s]; error value: -1001 |
| position (0x42) | position | Returns the position(two doubles) of the named person within the last step [m,m]; error value: [-1001,-1001] |
| angle (0x43) | double | Returns the angle of the named person within the last step [°]; error value: -1001 |
| road id (0x50) | string | Returns the id of the edge the named person was at within the last step; error value: "" |
| type id (0x4f) | string | Returns the id of the type of the named person |
| color (0x45) | ubyte,ubyte,ubyte,ubyte | Returns the person's color (RGBA). |
| edge position (0x56) | double | The position of the person along the edge (in [m]); error value: -1001 |
| length (0x44) | double | Returns the length of the persons [m] |
| minGap (0x4c) | double | Returns the offset (gap to front person if halting) of this person [m] |
| width (0x4d) | double | Returns the width of this person [m] |
| waiting time (0x7a) | double | Returns the waiting time [s] |
| next edge (0xc1) | string | Returns the next edge on the persons route while it is walking. If there is no further edge or the person is in another stage, returns the empty string. |
Response 0xb4: Person Variable
| ubyte | string | ubyte | <return_type> |
| Variable | Person ID | Return type of the variable | <VARIABLE_VALUE> |
|---|
The respond to a "Command Get Person Variable".
This page was last modified on 16 April 2015, at 13:22.