TraCI/Lane Area Detector Value Retrieval
generated on 2015-09-02 00:02:07.984790 from the wiki page for TraCI/Lane_Area_Detector_Value_Retrieval for SUMO 0.24.0
Command 0xad: Get LaneAreaDetector Variable
| ubyte | string |
| Variable | Get LaneArea Detector ID |
|---|
Asks for the value of a certain variable of the named LaneArea (e2) detector. The value returned is the state of the asked variable/value within the last simulation step. Please note that for asking values from your LaneArea detectors with TraCI, you have to:
- define them
- set their frequency to 1s
The following variable values can be retrieved, the type of the return value is also shown in the table. The commands marked with a star(*) are not yet implemented in released 0.19.0 and earlier
| Variable | ValueType | Description |
|---|---|---|
| id list (0x00) | stringList | Returns a list of ids of all lane area detectors within the scenario (the given DetectorID is ignored) |
| count (0x01)* | int | Returns the number of lane area detectors within the scenario (the given DetectorID is ignored) |
| position (0x42) | double | Returns the starting position of the detector at it's lane, counted from the lane's begin, in meters. |
| length(0x44) | double | Returns the length of the detector in meters. |
| lane ID (0x51) | string | Returns the ID of the lane the detector is placed at. |
| last step vehicle number (0x10)* | integer | Returns the number of vehicles that have been within the area detector within the last simulation step [#]; |
| last step mean speed (0x11)* | double | Returns the mean speed of vehicles that have been within the named area detector within the last simulation step [m/s] |
| last step vehicle ids (0x12)* | stringList | Returns the list of ids of vehicles that have been within the detector in the last simulation step |
| last step occupancy (0x13) | int | Returns the percentage of space the detector was occupied by a vehicle [%] |
| last step halting vehicles number (0x14)* | int | Returns the number of vehicles which were halting during the last time step |
| last step jam length in number of vehicles (0x18) | int | Returns the number of vehicles which were halting on the loop during the last time step |
| last step jam length in meters (0x19) | int | Returns the length of the jam in meters |
Response 0xbd: LaneAreaDetector Variable
| ubyte | string | ubyte | <return_type> |
| Variable | Lane Area Detector ID | Return type of the variable | <VARIABLE_VALUE> |
|---|
The respond to a "Command Get Get LaneAreaDetector Variable".
Notes
This page was last modified on 24 April 2015, at 10:00.