Lane Area Detector Value Retrieval

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 detectors you have to define them within an additional-file and load them at the start of the simulation. The period and file attributes do not matter for TraCI.

The following variable values can be retrieved, the type of the return value is also shown in the table.

Overview Retrievable Lane Area Detector Variables

Variable ValueType Description Python Method
id list (0x00) stringList Returns a list of ids of all lane area detectors within the scenario (the given DetectorID is ignored) getIDList
count (0x01) int Returns the number of lane area detectors within the scenario (the given DetectorID is ignored) getIDCount
position (0x42) double Returns the starting position of the detector at its lane, counted from the lane's begin, in meters. getPosition
length(0x44) double Returns the length of the detector in meters. getLength
lane ID (0x51) string Returns the ID of the lane the detector is placed at. getLaneID
last step vehicle number (0x10) int Returns the number of vehicles that have been within the area detector within the last simulation step [#]; getLastStepVehicleNumber
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] getLastStepMeanSpeed
last step vehicle ids (0x12) stringList Returns the list of ids of vehicles that have been within the detector in the last simulation step getLastStepVehicleIDs
last step occupancy (0x13) int Returns the percentage of space the detector was occupied by a vehicle [%] getLastStepOccupancy
last step halting vehicles number (0x14) int Returns the number of vehicles which were halting during the last time step getJamLengthVehicle
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 getJamLengthVehicle
last step jam length in meters (0x19) int Returns the length of the jam in meters getJamLengthMeters
interval occupancy (0x23) double The average percentage of the detector length that was occupied by a vehicle during the current interval getIntervalOccupancy
interval speed (0x24) double The average (time mean) speed of vehicles during the current interval getIntervalMeanSpeed
interval number (0x25) int The number of vehicles (or persons, if so configured) that passed the detector during the current interval getIntervalVehicleNumber
interval max jam length in meters (0x32) stringList The maximum jam length in meters during the current interval getIntervalMaxJamLengthInMeters
last interval occupancy (0x27) double The average percentage of the detector length that was occupied by a vehicle during the previous interval getLastIntervalOccupancy
last interval speed (0x28) double The average (time mean) speed of vehicles during the previous interval getLastIntervalMeanSpeed
last interval number (0x29) int The number of vehicles (or persons, if so configured) that passed the detector during the previous interval getLastIntervalVehicleNumber
last interval max jam length in meters (0x33) stringList TThe maximum jam length in meters during the previous interval getLastIntervalMaxJamLengthInMeters

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#