traci.constants

This script contains TraCI constant definitions from /src/libsumo/TraCIConstants.h.

   1# Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.dev/sumo
   2# Copyright (C) 2009-2026 German Aerospace Center (DLR) and others.
   3# This program and the accompanying materials are made available under the
   4# terms of the Eclipse Public License 2.0 which is available at
   5# https://www.eclipse.org/legal/epl-2.0/
   6# This Source Code may also be made available under the following Secondary
   7# Licenses when the conditions for such availability set forth in the Eclipse
   8# Public License 2.0 are satisfied: GNU General Public License, version 2
   9# or later which is available at
  10# https://www.gnu.org/licenses/old-licenses/gpl-2.0-standalone.html
  11# SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-or-later
  12
  13# @file    constants.py
  14# @author  generated by "rebuildConstants.py"
  15# @date    2026-03-02 13:39:15.374704
  16
  17"""
  18This script contains TraCI constant definitions from <SUMO_HOME>/src/libsumo/TraCIConstants.h.
  19"""
  20
  21
  22#  ****************************************
  23#  VERSION
  24#  ****************************************
  25TRACI_VERSION = 22
  26
  27#  ****************************************
  28#  COMMANDS
  29#  ****************************************
  30#  command: get version
  31CMD_GETVERSION = 0x00
  32
  33#  command: load
  34CMD_LOAD = 0x01
  35
  36#  command: execute move (half step)
  37CMD_EXECUTEMOVE = 0x7d
  38
  39#  command: simulation step
  40CMD_SIMSTEP = 0x02
  41
  42#  command: set connection priority (execution order)
  43CMD_SETORDER = 0x03
  44
  45#  command: stop vehicle
  46CMD_STOP = 0x12
  47
  48#  command: reroute to parking area
  49CMD_REROUTE_TO_PARKING = 0xc2
  50
  51#  command: Resume from parking
  52CMD_RESUME = 0x19
  53
  54#  command: set lane
  55CMD_CHANGELANE = 0x13
  56
  57#  command: slow down
  58CMD_SLOWDOWN = 0x14
  59
  60#  command: set sublane (vehicle)
  61CMD_CHANGESUBLANE = 0x15
  62
  63#  command: open gap
  64CMD_OPENGAP = 0x16
  65
  66#  command: replace vehicle stop and update route
  67CMD_REPLACE_STOP = 0x17
  68
  69#  command: insert vehicle stop and update route
  70CMD_INSERT_STOP = 0x18
  71
  72#  command: retrieve information about the current taxi fleet and their status
  73VAR_TAXI_FLEET = 0x20
  74
  75#  command: send dispatch request for the given taxi
  76CMD_TAXI_DISPATCH = 0x21
  77
  78#  command: change target
  79CMD_CHANGETARGET = 0x31
  80
  81#  command: close sumo
  82CMD_CLOSE = 0x7F
  83
  84#  command: add subscription filter
  85CMD_ADD_SUBSCRIPTION_FILTER = 0x7e
  86
  87
  88#  command: subscribe induction loop (e1) context
  89CMD_SUBSCRIBE_INDUCTIONLOOP_CONTEXT = 0x80
  90#  response: subscribe induction loop (e1) context
  91RESPONSE_SUBSCRIBE_INDUCTIONLOOP_CONTEXT = 0x90
  92#  command: get induction loop (e1) variable
  93CMD_GET_INDUCTIONLOOP_VARIABLE = 0xa0
  94#  response: get induction loop (e1) variable
  95RESPONSE_GET_INDUCTIONLOOP_VARIABLE = 0xb0
  96#  command: set induction loop (e1) variable, not used yet
  97CMD_SET_INDUCTIONLOOP_VARIABLE = 0xc0
  98#  command: subscribe induction loop (e1) variable
  99CMD_SUBSCRIBE_INDUCTIONLOOP_VARIABLE = 0xd0
 100#  response: subscribe induction loop (e1) variable
 101RESPONSE_SUBSCRIBE_INDUCTIONLOOP_VARIABLE = 0xe0
 102
 103#  command: subscribe multi-entry/multi-exit detector (e3) context
 104CMD_SUBSCRIBE_MULTIENTRYEXIT_CONTEXT = 0x81
 105#  response: subscribe multi-entry/multi-exit detector (e3) context
 106RESPONSE_SUBSCRIBE_MULTIENTRYEXIT_CONTEXT = 0x91
 107#  command: get multi-entry/multi-exit detector (e3) variable
 108CMD_GET_MULTIENTRYEXIT_VARIABLE = 0xa1
 109#  response: get multi-entry/multi-exit detector (e3) variable
 110RESPONSE_GET_MULTIENTRYEXIT_VARIABLE = 0xb1
 111#  command: set multi-entry/multi-exit detector (e3) variable, not used yet
 112CMD_SET_MULTIENTRYEXIT_VARIABLE = 0xc1
 113#  command: subscribe multi-entry/multi-exit detector (e3) variable
 114CMD_SUBSCRIBE_MULTIENTRYEXIT_VARIABLE = 0xd1
 115#  response: subscribe multi-entry/multi-exit detector (e3) variable
 116RESPONSE_SUBSCRIBE_MULTIENTRYEXIT_VARIABLE = 0xe1
 117
 118#  command: subscribe traffic lights context
 119CMD_SUBSCRIBE_TL_CONTEXT = 0x82
 120#  response: subscribe traffic lights context
 121RESPONSE_SUBSCRIBE_TL_CONTEXT = 0x92
 122#  command: get traffic lights variable
 123CMD_GET_TL_VARIABLE = 0xa2
 124#  response: get traffic lights variable
 125RESPONSE_GET_TL_VARIABLE = 0xb2
 126#  command: set traffic lights variable
 127CMD_SET_TL_VARIABLE = 0xc2
 128#  command: subscribe traffic lights variable
 129CMD_SUBSCRIBE_TL_VARIABLE = 0xd2
 130#  response: subscribe traffic lights variable
 131RESPONSE_SUBSCRIBE_TL_VARIABLE = 0xe2
 132
 133#  command: subscribe lane context
 134CMD_SUBSCRIBE_LANE_CONTEXT = 0x83
 135#  response: subscribe lane context
 136RESPONSE_SUBSCRIBE_LANE_CONTEXT = 0x93
 137#  command: get lane variable
 138CMD_GET_LANE_VARIABLE = 0xa3
 139#  response: get lane variable
 140RESPONSE_GET_LANE_VARIABLE = 0xb3
 141#  command: set lane variable
 142CMD_SET_LANE_VARIABLE = 0xc3
 143#  command: subscribe lane variable
 144CMD_SUBSCRIBE_LANE_VARIABLE = 0xd3
 145#  response: subscribe lane variable
 146RESPONSE_SUBSCRIBE_LANE_VARIABLE = 0xe3
 147
 148#  command: subscribe vehicle context
 149CMD_SUBSCRIBE_VEHICLE_CONTEXT = 0x84
 150#  response: subscribe vehicle context
 151RESPONSE_SUBSCRIBE_VEHICLE_CONTEXT = 0x94
 152#  command: get vehicle variable
 153CMD_GET_VEHICLE_VARIABLE = 0xa4
 154#  response: get vehicle variable
 155RESPONSE_GET_VEHICLE_VARIABLE = 0xb4
 156#  command: set vehicle variable
 157CMD_SET_VEHICLE_VARIABLE = 0xc4
 158#  command: subscribe vehicle variable
 159CMD_SUBSCRIBE_VEHICLE_VARIABLE = 0xd4
 160#  response: subscribe vehicle variable
 161RESPONSE_SUBSCRIBE_VEHICLE_VARIABLE = 0xe4
 162
 163#  command: subscribe vehicle type context
 164CMD_SUBSCRIBE_VEHICLETYPE_CONTEXT = 0x85
 165#  response: subscribe vehicle type context
 166RESPONSE_SUBSCRIBE_VEHICLETYPE_CONTEXT = 0x95
 167#  command: get vehicle type variable
 168CMD_GET_VEHICLETYPE_VARIABLE = 0xa5
 169#  response: get vehicle type variable
 170RESPONSE_GET_VEHICLETYPE_VARIABLE = 0xb5
 171#  command: set vehicle type variable
 172CMD_SET_VEHICLETYPE_VARIABLE = 0xc5
 173#  command: subscribe vehicle type variable
 174CMD_SUBSCRIBE_VEHICLETYPE_VARIABLE = 0xd5
 175#  response: subscribe vehicle type variable
 176RESPONSE_SUBSCRIBE_VEHICLETYPE_VARIABLE = 0xe5
 177
 178#  command: subscribe route context
 179CMD_SUBSCRIBE_ROUTE_CONTEXT = 0x86
 180#  response: subscribe route context
 181RESPONSE_SUBSCRIBE_ROUTE_CONTEXT = 0x96
 182#  command: get route variable
 183CMD_GET_ROUTE_VARIABLE = 0xa6
 184#  response: get route variable
 185RESPONSE_GET_ROUTE_VARIABLE = 0xb6
 186#  command: set route variable
 187CMD_SET_ROUTE_VARIABLE = 0xc6
 188#  command: subscribe route variable
 189CMD_SUBSCRIBE_ROUTE_VARIABLE = 0xd6
 190#  response: subscribe route variable
 191RESPONSE_SUBSCRIBE_ROUTE_VARIABLE = 0xe6
 192
 193#  command: subscribe poi context
 194CMD_SUBSCRIBE_POI_CONTEXT = 0x87
 195#  response: subscribe poi context
 196RESPONSE_SUBSCRIBE_POI_CONTEXT = 0x97
 197#  command: get poi variable
 198CMD_GET_POI_VARIABLE = 0xa7
 199#  response: get poi variable
 200RESPONSE_GET_POI_VARIABLE = 0xb7
 201#  command: set poi variable
 202CMD_SET_POI_VARIABLE = 0xc7
 203#  command: subscribe poi variable
 204CMD_SUBSCRIBE_POI_VARIABLE = 0xd7
 205#  response: subscribe poi variable
 206RESPONSE_SUBSCRIBE_POI_VARIABLE = 0xe7
 207
 208#  command: subscribe polygon context
 209CMD_SUBSCRIBE_POLYGON_CONTEXT = 0x88
 210#  response: subscribe polygon context
 211RESPONSE_SUBSCRIBE_POLYGON_CONTEXT = 0x98
 212#  command: get polygon variable
 213CMD_GET_POLYGON_VARIABLE = 0xa8
 214#  response: get polygon variable
 215RESPONSE_GET_POLYGON_VARIABLE = 0xb8
 216#  command: set polygon variable
 217CMD_SET_POLYGON_VARIABLE = 0xc8
 218#  command: subscribe polygon variable
 219CMD_SUBSCRIBE_POLYGON_VARIABLE = 0xd8
 220#  response: subscribe polygon variable
 221RESPONSE_SUBSCRIBE_POLYGON_VARIABLE = 0xe8
 222
 223#  command: subscribe junction context
 224CMD_SUBSCRIBE_JUNCTION_CONTEXT = 0x89
 225#  response: subscribe junction context
 226RESPONSE_SUBSCRIBE_JUNCTION_CONTEXT = 0x99
 227#  command: get junction variable
 228CMD_GET_JUNCTION_VARIABLE = 0xa9
 229#  response: get junction variable
 230RESPONSE_GET_JUNCTION_VARIABLE = 0xb9
 231#  command: set junction variable
 232CMD_SET_JUNCTION_VARIABLE = 0xc9
 233#  command: subscribe junction variable
 234CMD_SUBSCRIBE_JUNCTION_VARIABLE = 0xd9
 235#  response: subscribe junction variable
 236RESPONSE_SUBSCRIBE_JUNCTION_VARIABLE = 0xe9
 237
 238#  command: subscribe edge context
 239CMD_SUBSCRIBE_EDGE_CONTEXT = 0x8a
 240#  response: subscribe edge context
 241RESPONSE_SUBSCRIBE_EDGE_CONTEXT = 0x9a
 242#  command: get edge variable
 243CMD_GET_EDGE_VARIABLE = 0xaa
 244#  response: get edge variable
 245RESPONSE_GET_EDGE_VARIABLE = 0xba
 246#  command: set edge variable
 247CMD_SET_EDGE_VARIABLE = 0xca
 248#  command: subscribe edge variable
 249CMD_SUBSCRIBE_EDGE_VARIABLE = 0xda
 250#  response: subscribe edge variable
 251RESPONSE_SUBSCRIBE_EDGE_VARIABLE = 0xea
 252
 253#  command: subscribe simulation context
 254CMD_SUBSCRIBE_SIM_CONTEXT = 0x8b
 255#  response: subscribe simulation context
 256RESPONSE_SUBSCRIBE_SIM_CONTEXT = 0x9b
 257#  command: get simulation variable
 258CMD_GET_SIM_VARIABLE = 0xab
 259#  response: get simulation variable
 260RESPONSE_GET_SIM_VARIABLE = 0xbb
 261#  command: set simulation variable
 262CMD_SET_SIM_VARIABLE = 0xcb
 263#  command: subscribe simulation variable
 264CMD_SUBSCRIBE_SIM_VARIABLE = 0xdb
 265#  response: subscribe simulation variable
 266RESPONSE_SUBSCRIBE_SIM_VARIABLE = 0xeb
 267
 268#  command: subscribe GUI context
 269CMD_SUBSCRIBE_GUI_CONTEXT = 0x8c
 270#  response: subscribe GUI context
 271RESPONSE_SUBSCRIBE_GUI_CONTEXT = 0x9c
 272#  command: get GUI variable
 273CMD_GET_GUI_VARIABLE = 0xac
 274#  response: get GUI variable
 275RESPONSE_GET_GUI_VARIABLE = 0xbc
 276#  command: set GUI variable
 277CMD_SET_GUI_VARIABLE = 0xcc
 278#  command: subscribe GUI variable
 279CMD_SUBSCRIBE_GUI_VARIABLE = 0xdc
 280#  response: subscribe GUI variable
 281RESPONSE_SUBSCRIBE_GUI_VARIABLE = 0xec
 282
 283#  command: subscribe lane area detector (e2) context
 284CMD_SUBSCRIBE_LANEAREA_CONTEXT = 0x8d
 285#  response: subscribe lane area detector (e2) context
 286RESPONSE_SUBSCRIBE_LANEAREA_CONTEXT = 0x9d
 287#  command: get lane area detector (e2) variable
 288CMD_GET_LANEAREA_VARIABLE = 0xad
 289#  response: get lane area detector (e2) variable
 290RESPONSE_GET_LANEAREA_VARIABLE = 0xbd
 291#  command: set lane area detector (e2) variable, not used yet
 292CMD_SET_LANEAREA_VARIABLE = 0xcd
 293#  command: subscribe lane area detector (e2) variable
 294CMD_SUBSCRIBE_LANEAREA_VARIABLE = 0xdd
 295#  response: subscribe lane area detector (e2) variable
 296RESPONSE_SUBSCRIBE_LANEAREA_VARIABLE = 0xed
 297
 298#  command: subscribe person context
 299CMD_SUBSCRIBE_PERSON_CONTEXT = 0x8e
 300#  response: subscribe person context
 301RESPONSE_SUBSCRIBE_PERSON_CONTEXT = 0x9e
 302#  command: get person variable
 303CMD_GET_PERSON_VARIABLE = 0xae
 304#  response: get person variable
 305RESPONSE_GET_PERSON_VARIABLE = 0xbe
 306#  command: set person variable
 307CMD_SET_PERSON_VARIABLE = 0xce
 308#  command: subscribe person variable
 309CMD_SUBSCRIBE_PERSON_VARIABLE = 0xde
 310#  response: subscribe person variable
 311RESPONSE_SUBSCRIBE_PERSON_VARIABLE = 0xee
 312
 313#  command: subscribe busstop context
 314CMD_SUBSCRIBE_BUSSTOP_CONTEXT = 0x8f
 315#  response: subscribe busstop context
 316RESPONSE_SUBSCRIBE_BUSSTOP_CONTEXT = 0x9f
 317#  command: get busstop variable
 318CMD_GET_BUSSTOP_VARIABLE = 0xaf
 319#  response: get busstop variable
 320RESPONSE_GET_BUSSTOP_VARIABLE = 0xbf
 321#  command: set busstop variable, not used yet
 322CMD_SET_BUSSTOP_VARIABLE = 0xcf
 323#  command: subscribe busstop variable
 324CMD_SUBSCRIBE_BUSSTOP_VARIABLE = 0xdf
 325#  response: subscribe busstop variable
 326RESPONSE_SUBSCRIBE_BUSSTOP_VARIABLE = 0xef
 327
 328#  command: subscribe parkingarea context
 329CMD_SUBSCRIBE_PARKINGAREA_CONTEXT = 0x04
 330#  response: subscribe parkingarea context
 331RESPONSE_SUBSCRIBE_PARKINGAREA_CONTEXT = 0x14
 332#  command: get parkingarea variable
 333CMD_GET_PARKINGAREA_VARIABLE = 0x24
 334#  response: get parkingarea variable
 335RESPONSE_GET_PARKINGAREA_VARIABLE = 0x34
 336#  command: set parkingarea variable
 337CMD_SET_PARKINGAREA_VARIABLE = 0x44
 338#  command: subscribe parkingarea variable
 339CMD_SUBSCRIBE_PARKINGAREA_VARIABLE = 0x54
 340#  response: subscribe parkingarea variable
 341RESPONSE_SUBSCRIBE_PARKINGAREA_VARIABLE = 0x64
 342
 343#  command: subscribe chargingstation context
 344CMD_SUBSCRIBE_CHARGINGSTATION_CONTEXT = 0x05
 345#  response: subscribe chargingstation context
 346RESPONSE_SUBSCRIBE_CHARGINGSTATION_CONTEXT = 0x15
 347#  command: get chargingstation variable
 348CMD_GET_CHARGINGSTATION_VARIABLE = 0x25
 349#  response: get chargingstation variable
 350RESPONSE_GET_CHARGINGSTATION_VARIABLE = 0x35
 351#  command: set chargingstation variable
 352CMD_SET_CHARGINGSTATION_VARIABLE = 0x45
 353#  command: subscribe chargingstation variable
 354CMD_SUBSCRIBE_CHARGINGSTATION_VARIABLE = 0x55
 355#  response: subscribe chargingstation variable
 356RESPONSE_SUBSCRIBE_CHARGINGSTATION_VARIABLE = 0x65
 357
 358#  command: subscribe routeprobe context
 359CMD_SUBSCRIBE_ROUTEPROBE_CONTEXT = 0x06
 360#  response: subscribe routeprobe context
 361RESPONSE_SUBSCRIBE_ROUTEPROBE_CONTEXT = 0x16
 362#  command: get routeprobe variable
 363CMD_GET_ROUTEPROBE_VARIABLE = 0x26
 364#  response: get routeprobe variable
 365RESPONSE_GET_ROUTEPROBE_VARIABLE = 0x36
 366#  command: set routeprobe variable
 367CMD_SET_ROUTEPROBE_VARIABLE = 0x46
 368#  command: subscribe routeprobe variable
 369CMD_SUBSCRIBE_ROUTEPROBE_VARIABLE = 0x56
 370#  response: subscribe routeprobe variable
 371RESPONSE_SUBSCRIBE_ROUTEPROBE_VARIABLE = 0x66
 372
 373#  command: subscribe calibrator context
 374CMD_SUBSCRIBE_CALIBRATOR_CONTEXT = 0x07
 375#  response: subscribe calibrator context
 376RESPONSE_SUBSCRIBE_CALIBRATOR_CONTEXT = 0x17
 377#  command: get calibrator variable
 378CMD_GET_CALIBRATOR_VARIABLE = 0x27
 379#  response: get calibrator variable
 380RESPONSE_GET_CALIBRATOR_VARIABLE = 0x37
 381#  command: set calibrator variable
 382CMD_SET_CALIBRATOR_VARIABLE = 0x47
 383#  command: subscribe calibrator variable
 384CMD_SUBSCRIBE_CALIBRATOR_VARIABLE = 0x57
 385#  response: subscribe calibrator variable
 386RESPONSE_SUBSCRIBE_CALIBRATOR_VARIABLE = 0x67
 387
 388#  command: subscribe rerouter context
 389CMD_SUBSCRIBE_REROUTER_CONTEXT = 0x08
 390#  response: subscribe rerouter context
 391RESPONSE_SUBSCRIBE_REROUTER_CONTEXT = 0x18
 392#  command: get rerouter variable
 393CMD_GET_REROUTER_VARIABLE = 0x28
 394#  response: get rerouter variable
 395RESPONSE_GET_REROUTER_VARIABLE = 0x38
 396#  command: set rerouter variable
 397CMD_SET_REROUTER_VARIABLE = 0x48
 398#  command: subscribe rerouter variable
 399CMD_SUBSCRIBE_REROUTER_VARIABLE = 0x58
 400#  response: subscribe rerouter variable
 401RESPONSE_SUBSCRIBE_REROUTER_VARIABLE = 0x68
 402
 403#  command: subscribe variablespeedsign context
 404CMD_SUBSCRIBE_VARIABLESPEEDSIGN_CONTEXT = 0x09
 405#  response: subscribe variablespeedsign context
 406RESPONSE_SUBSCRIBE_VARIABLESPEEDSIGN_CONTEXT = 0x19
 407#  command: get variablespeedsign variable
 408CMD_GET_VARIABLESPEEDSIGN_VARIABLE = 0x29
 409#  response: get variablespeedsign variable
 410RESPONSE_GET_VARIABLESPEEDSIGN_VARIABLE = 0x39
 411#  command: set variablespeedsign variable
 412CMD_SET_VARIABLESPEEDSIGN_VARIABLE = 0x49
 413#  command: subscribe variablespeedsign variable
 414CMD_SUBSCRIBE_VARIABLESPEEDSIGN_VARIABLE = 0x59
 415#  response: subscribe variablespeedsign variable
 416RESPONSE_SUBSCRIBE_VARIABLESPEEDSIGN_VARIABLE = 0x69
 417
 418#  command: subscribe meandata context
 419CMD_SUBSCRIBE_MEANDATA_CONTEXT = 0x0a
 420#  response: subscribe meandata context
 421RESPONSE_SUBSCRIBE_MEANDATA_CONTEXT = 0x1a
 422#  command: get meandata variable
 423CMD_GET_MEANDATA_VARIABLE = 0x2a
 424#  response: get meandata variable
 425RESPONSE_GET_MEANDATA_VARIABLE = 0x3a
 426#  command: set meandata variable, not used yet
 427CMD_SET_MEANDATA_VARIABLE = 0x4a
 428#  command: subscribe meandata variable
 429CMD_SUBSCRIBE_MEANDATA_VARIABLE = 0x5a
 430#  response: subscribe meandata variable
 431RESPONSE_SUBSCRIBE_MEANDATA_VARIABLE = 0x6a
 432
 433#  command: subscribe overheadwire context
 434CMD_SUBSCRIBE_OVERHEADWIRE_CONTEXT = 0x0b
 435#  response: subscribe overheadwire context
 436RESPONSE_SUBSCRIBE_OVERHEADWIRE_CONTEXT = 0x1b
 437#  command: get overheadwire variable
 438CMD_GET_OVERHEADWIRE_VARIABLE = 0x2b
 439#  response: get overheadwire variable
 440RESPONSE_GET_OVERHEADWIRE_VARIABLE = 0x3b
 441#  command: set overheadwire variable
 442CMD_SET_OVERHEADWIRE_VARIABLE = 0x4b
 443#  command: subscribe overheadwire variable
 444CMD_SUBSCRIBE_OVERHEADWIRE_VARIABLE = 0x5b
 445#  response: subscribe overheadwire variable
 446RESPONSE_SUBSCRIBE_OVERHEADWIRE_VARIABLE = 0x6b
 447
 448
 449#  ****************************************
 450#  POSITION REPRESENTATIONS
 451#  ****************************************
 452#  Position in geo-coordinates
 453POSITION_LON_LAT = 0x00
 454#  2D cartesian coordinates
 455POSITION_2D = 0x01
 456#  Position in geo-coordinates with altitude
 457POSITION_LON_LAT_ALT = 0x02
 458#  3D cartesian coordinates
 459POSITION_3D = 0x03
 460#  Position on road map
 461POSITION_ROADMAP = 0x04
 462
 463
 464#  ****************************************
 465#  DATA TYPES
 466#  ****************************************
 467#  Polygon (2*n doubles)
 468TYPE_POLYGON = 0x06
 469#  unsigned byte
 470TYPE_UBYTE = 0x07
 471#  signed byte
 472TYPE_BYTE = 0x08
 473#  32 bit signed integer
 474TYPE_INTEGER = 0x09
 475#  double precision float
 476TYPE_DOUBLE = 0x0B
 477#  8 bit ASCII string
 478TYPE_STRING = 0x0C
 479#  list of strings
 480TYPE_STRINGLIST = 0x0E
 481#  compound object
 482TYPE_COMPOUND = 0x0F
 483#  list of double precision floats
 484TYPE_DOUBLELIST = 0x10
 485#  color (four ubytes)
 486TYPE_COLOR = 0x11
 487
 488
 489#  ****************************************
 490#  RESULT TYPES
 491#  ****************************************
 492#  result type: Ok
 493RTYPE_OK = 0x00
 494#  result type: not implemented
 495RTYPE_NOTIMPLEMENTED = 0x01
 496#  result type: error
 497RTYPE_ERR = 0xFF
 498
 499#  ****************************************
 500#  special return or parameter values
 501#  ****************************************
 502#  return value for invalid queries (especially vehicle is not on the road), see Position::INVALID
 503INVALID_DOUBLE_VALUE = -1073741824.0
 504#  return value for invalid queries (especially vehicle is not on the road), see Position::INVALID
 505INVALID_INT_VALUE = -1073741824
 506#  maximum value for client ordering (2 ^ 30)
 507MAX_ORDER = 1073741824
 508#  default number of connection attempts
 509DEFAULT_NUM_RETRIES = 60
 510
 511
 512#  ****************************************
 513#  DIFFERENT DISTANCE REQUESTS
 514#  ****************************************
 515#  air distance
 516REQUEST_AIRDIST = 0x00
 517#  driving distance
 518REQUEST_DRIVINGDIST = 0x01
 519
 520
 521#  ****************************************
 522#  VEHICLE REMOVAL REASONS
 523#  ****************************************
 524#  vehicle started teleport
 525REMOVE_TELEPORT = 0x00
 526#  vehicle removed while parking
 527REMOVE_PARKING = 0x01
 528#  vehicle arrived
 529REMOVE_ARRIVED = 0x02
 530#  vehicle was vaporized
 531REMOVE_VAPORIZED = 0x03
 532#  vehicle finished route during teleport
 533REMOVE_TELEPORT_ARRIVED = 0x04
 534
 535#  ****************************************
 536#  VEHICLE MOVE REASONS
 537#  ****************************************
 538#  infer reason from move distance
 539MOVE_AUTOMATIC = 0x00
 540#  vehicle teleports to another location
 541MOVE_TELEPORT = 0x01
 542#  vehicle moved normally
 543MOVE_NORMAL = 0x02
 544
 545#  ****************************************
 546#  PERSON/CONTAINER STAGES
 547#  ****************************************
 548#  person / container stopping
 549STAGE_WAITING_FOR_DEPART = 0x00
 550#  person / container stopping
 551STAGE_WAITING = 0x01
 552#  person walking
 553STAGE_WALKING = 0x02
 554#  person riding / container being transported
 555STAGE_DRIVING = 0x03
 556#  person accessing stopping place
 557STAGE_ACCESS = 0x04
 558#  stage for encoding abstract travel demand
 559STAGE_TRIP = 0x05
 560#  person / container transhiping
 561STAGE_TRANSHIP = 0x06
 562
 563#  ****************************************
 564#  Stop Flags
 565#  ****************************************
 566STOP_DEFAULT = 0x00
 567STOP_PARKING = 0x01
 568STOP_TRIGGERED = 0x02
 569STOP_CONTAINER_TRIGGERED = 0x04
 570STOP_BUS_STOP = 0x08
 571STOP_CONTAINER_STOP = 0x10
 572STOP_CHARGING_STATION = 0x20
 573STOP_PARKING_AREA = 0x40
 574STOP_OVERHEAD_WIRE = 0x80
 575
 576#  ****************************************
 577#  Departure Flags (corresponding value from DepartDefinition, DepartLaneDefinition with a minus)
 578#  ****************************************
 579DEPARTFLAG_TRIGGERED = -0x01
 580DEPARTFLAG_CONTAINER_TRIGGERED = -0x02
 581DEPARTFLAG_NOW = -0x03
 582DEPARTFLAG_SPLIT = -0x04
 583DEPARTFLAG_BEGIN = -0x05
 584
 585DEPARTFLAG_SPEED_RANDOM = -0x02
 586DEPARTFLAG_SPEED_MAX = -0x03
 587
 588DEPARTFLAG_LANE_RANDOM = -0x02
 589DEPARTFLAG_LANE_FREE = -0x03
 590DEPARTFLAG_LANE_ALLOWED_FREE = -0x04
 591DEPARTFLAG_LANE_BEST_FREE = -0x05
 592DEPARTFLAG_LANE_FIRST_ALLOWED = -0x06
 593
 594DEPARTFLAG_POS_RANDOM = -0x02
 595DEPARTFLAG_POS_FREE = -0x03
 596DEPARTFLAG_POS_BASE = -0x04
 597DEPARTFLAG_POS_LAST = -0x05
 598DEPARTFLAG_POS_RANDOM_FREE = -0x06
 599
 600ARRIVALFLAG_LANE_CURRENT = -0x02
 601ARRIVALFLAG_SPEED_CURRENT = -0x02
 602
 603ARRIVALFLAG_POS_RANDOM = -0x02
 604ARRIVALFLAG_POS_MAX = -0x03
 605
 606#  ****************************************
 607#  Routing modes
 608#  ****************************************
 609#  use custom weights if available, fall back to loaded weights and then to free-flow speed
 610ROUTING_MODE_DEFAULT = 0x00
 611#  use aggregated travel times from device.rerouting
 612ROUTING_MODE_AGGREGATED = 0x01
 613#  use loaded efforts
 614ROUTING_MODE_EFFORT = 0x02
 615#  use combined costs
 616ROUTING_MODE_COMBINED = 0x03
 617#  use aggregated travel times from device.rerouting enriched with custom weights
 618ROUTING_MODE_AGGREGATED_CUSTOM = 0x04
 619#  when this bit is set, routing does not consider temporary permission changes (i.e. from rerouters)
 620#  note: can be combined with either one of the other modes (bitwise)
 621ROUTING_MODE_IGNORE_TRANSIENT_PERMISSIONS = 0x08
 622
 623#  ****************************************
 624#  Traffic light types
 625#  ****************************************
 626TRAFFICLIGHT_TYPE_STATIC = 0x00
 627TRAFFICLIGHT_TYPE_ACTUATED = 0x03
 628TRAFFICLIGHT_TYPE_NEMA = 0x04
 629TRAFFICLIGHT_TYPE_DELAYBASED = 0x05
 630
 631#  ****************************************
 632#  Lane change directions
 633#  ****************************************
 634LANECHANGE_LEFT = 0x01
 635LANECHANGE_RIGHT = -0x01
 636
 637#  ****************************************
 638#  FILTER TYPES (for context subscription filters)
 639#  ****************************************
 640
 641#  Reset all filters
 642FILTER_TYPE_NONE = 0x00
 643
 644#  Filter by list of lanes relative to ego vehicle
 645FILTER_TYPE_LANES = 0x01
 646
 647#  Exclude vehicles on opposite (and other) lanes from context subscription result
 648FILTER_TYPE_NOOPPOSITE = 0x02
 649
 650#  Specify maximal downstream distance for vehicles in context subscription result
 651FILTER_TYPE_DOWNSTREAM_DIST = 0x03
 652
 653#  Specify maximal upstream distance for vehicles in context subscription result
 654FILTER_TYPE_UPSTREAM_DIST = 0x04
 655
 656#  Only return leader and follower on the specified lanes in context subscription result
 657FILTER_TYPE_LEAD_FOLLOW = 0x05
 658
 659#  Only return foes on upcoming junctions in context subscription result
 660FILTER_TYPE_TURN = 0x07
 661
 662#  Only return vehicles of the given vClass in context subscription result
 663FILTER_TYPE_VCLASS = 0x08
 664
 665#  Only return vehicles of the given vType in context subscription result
 666FILTER_TYPE_VTYPE = 0x09
 667
 668#  Only return vehicles within field of vision in context subscription result
 669FILTER_TYPE_FIELD_OF_VISION = 0x0A
 670
 671#  Only return vehicles within the given lateral distance in context subscription result
 672FILTER_TYPE_LATERAL_DIST = 0x0B
 673
 674#  ****************************************
 675#  VARIABLE TYPES (for CMD_GET_*_VARIABLE)
 676#  ****************************************
 677#  list of instances' ids (get: all)
 678TRACI_ID_LIST = 0x00
 679
 680#  count of instances (get: all)
 681ID_COUNT = 0x01
 682
 683#  subscribe object variables (get: all)
 684AUTOMATIC_VARIABLES_SUBSCRIPTION = 0x02
 685
 686#  subscribe context variables (get: all)
 687AUTOMATIC_CONTEXT_SUBSCRIPTION = 0x03
 688
 689#  generic attributes (get/set: all)
 690GENERIC_ATTRIBUTE = 0x03
 691
 692#  last step vehicle number (get: induction loops, multi-entry/multi-exit detector, lanes, edges)
 693LAST_STEP_VEHICLE_NUMBER = 0x10
 694
 695#  last step vehicle number (get: induction loops, multi-entry/multi-exit detector, lanes, edges)
 696LAST_STEP_MEAN_SPEED = 0x11
 697
 698#  last step vehicle list (get: induction loops, multi-entry/multi-exit detector, lanes, edges)
 699LAST_STEP_VEHICLE_ID_LIST = 0x12
 700
 701#  last step occupancy (get: e1, e2, lanes, edges)
 702LAST_STEP_OCCUPANCY = 0x13
 703
 704#  last step vehicle halting number (get: e2, e3, lanes, edges)
 705LAST_STEP_VEHICLE_HALTING_NUMBER = 0x14
 706
 707#  upstream junction (edges)
 708FROM_JUNCTION = 0x7b
 709
 710#  downstream junction (edges)
 711TO_JUNCTION = 0x7c
 712
 713#  incoming edges (junction)
 714INCOMING_EDGES = 0x7b
 715
 716#  outgoing edges (junction)
 717OUTGOING_EDGES = 0x7c
 718
 719#  get bidi object (edges, lanes)
 720VAR_BIDI = 0x7f
 721
 722#  last step mean vehicle length (get: induction loops, lanes, edges)
 723LAST_STEP_LENGTH = 0x15
 724
 725#  last step time since last detection (get: induction loops)
 726LAST_STEP_TIME_SINCE_DETECTION = 0x16
 727
 728#  entry times (get: inductionloop)
 729LAST_STEP_VEHICLE_DATA = 0x17
 730
 731#  get aggregated occupancy (get: inductionloop, e2)
 732VAR_INTERVAL_OCCUPANCY = 0x23
 733
 734#  get aggregated speed (get: inductionloop, e2)
 735VAR_INTERVAL_SPEED = 0x24
 736
 737#  get aggregated vehicle count (get: inductionloop, e2)
 738VAR_INTERVAL_NUMBER = 0x25
 739
 740#  get aggregated vehicle ids (get: inductionloop)
 741VAR_INTERVAL_IDS = 0x26
 742
 743#  get aggregated vehicle ids (get: inductionloop)
 744VAR_INTERVAL_TIMELOSS = 0x34
 745
 746#  get aggregated speed of last written interval (get: inductionloop, e2)
 747VAR_LAST_INTERVAL_OCCUPANCY = 0x27
 748
 749#  get aggregated occupancy of last written interval (get: inductionloop, e2)
 750VAR_LAST_INTERVAL_SPEED = 0x28
 751
 752#  get aggregated vehicle count of last written interval (get: inductionloop, e2)
 753VAR_LAST_INTERVAL_NUMBER = 0x29
 754
 755#  get aggregated vehicle ids of last written interval (get: inductionloop)
 756VAR_LAST_INTERVAL_IDS = 0x2a
 757
 758#  last step jam length in vehicles (get: e2)
 759JAM_LENGTH_VEHICLE = 0x18
 760
 761#  last step jam length in meters (get: e2)
 762JAM_LENGTH_METERS = 0x19
 763
 764#  get aggregated jam length (e2)
 765VAR_INTERVAL_MAX_JAM_LENGTH_METERS = 0x32
 766
 767#  get prior aggregated jam length (e2)
 768VAR_LAST_INTERVAL_MAX_JAM_LENGTH_METERS = 0x33
 769
 770#  last interval travel time (get: e3)
 771VAR_LAST_INTERVAL_TRAVELTIME = 0x58
 772
 773#  last step vehicle halting number (get: e3)
 774VAR_LAST_INTERVAL_MEAN_HALTING_NUMBER = 0x20
 775
 776#  last interval vehicle count(get: e3)
 777VAR_LAST_INTERVAL_VEHICLE_NUMBER = 0x21
 778
 779#  last interval vehicle count(get: e2, e3)
 780VAR_LAST_INTERVAL_TIMELOSS = 0x35
 781
 782#  last interval vehicle count(set, get: e1, e2)
 783VAR_VIRTUAL_DETECTION = 0x22
 784
 785#  last step person list (get: edges, vehicles)
 786LAST_STEP_PERSON_ID_LIST = 0x1a
 787
 788#  full name (get: edges, simulation, trafficlight)
 789VAR_NAME = 0x1b
 790
 791#  carFollowModel function followSpeed (get: vehicle)
 792VAR_FOLLOW_SPEED = 0x1c
 793
 794#  carFollowModel function stopSpeed (get: vehicle)
 795VAR_STOP_SPEED = 0x1d
 796
 797#  carFollowModel function getSecureGap (get: vehicle)
 798VAR_SECURE_GAP = 0x1e
 799
 800#  estimated (depart) delay for next stop (get: vehicle)
 801VAR_STOP_DELAY = 0x1f
 802
 803#  estimated arrival delay for next stop (get: vehicle)
 804VAR_STOP_ARRIVALDELAY = 0x22
 805
 806#  collected timeLoss since departure (get: vehicle, e3)
 807VAR_TIMELOSS = 0x8c
 808
 809#   begin time(get: calibrator)
 810VAR_BEGIN = 0x1c
 811
 812#   end time(get: calibrator, simulation)
 813VAR_END = 0x1d
 814
 815#  vtype list (get: calibrator)
 816VAR_VTYPES = 0x1e
 817
 818#   vehicles per hour (get: calibrator)
 819VAR_VEHSPERHOUR = 0x13
 820
 821#  passed vehicle count (get: calibrator)
 822VAR_PASSED = 0x14
 823
 824#  inserted vehicle count (get: calibrator)
 825VAR_INSERTED = 0x15
 826
 827#  removed vehicle count (get: calibrator)
 828VAR_REMOVED = 0x16
 829
 830#  routeProbe id (get: calibrator)
 831VAR_ROUTE_PROBE = 0x17
 832
 833#  routeProbe id (get: calibrator)
 834CMD_SET_FLOW = 0x18
 835
 836#  traffic light states, encoded as rRgGyYoO tuple (get: traffic lights)
 837TL_RED_YELLOW_GREEN_STATE = 0x20
 838
 839#  index of the phase (set: traffic lights)
 840TL_PHASE_INDEX = 0x22
 841
 842#  traffic light program (set: traffic lights)
 843TL_PROGRAM = 0x23
 844
 845#  phase duration (set: traffic lights)
 846TL_PHASE_DURATION = 0x24
 847
 848#  vehicles that block passing the given signal (get: traffic lights)
 849TL_BLOCKING_VEHICLES = 0x25
 850
 851#  controlled lanes (get: traffic lights)
 852TL_CONTROLLED_LANES = 0x26
 853
 854#  controlled links (get: traffic lights)
 855TL_CONTROLLED_LINKS = 0x27
 856
 857#  index of the current phase (get: traffic lights)
 858TL_CURRENT_PHASE = 0x28
 859
 860#  name of the current program (get: traffic lights)
 861TL_CURRENT_PROGRAM = 0x29
 862
 863#  vehicles that also wish to pass the given signal (get: traffic lights)
 864TL_RIVAL_VEHICLES = 0x30
 865
 866#  vehicles that also wish to pass the given signal and have higher priority (get: traffic lights)
 867TL_PRIORITY_VEHICLES = 0x31
 868
 869#  controlled junctions (get: traffic lights)
 870TL_CONTROLLED_JUNCTIONS = 0x2a
 871
 872#  complete definition (get: traffic lights)
 873TL_COMPLETE_DEFINITION_RYG = 0x2b
 874
 875#  complete program (set: traffic lights)
 876TL_COMPLETE_PROGRAM_RYG = 0x2c
 877
 878#  assumed time to next switch (get: traffic lights)
 879TL_NEXT_SWITCH = 0x2d
 880
 881#  add/get rail signal constraints
 882TL_CONSTRAINT = 0x2f
 883
 884#  switch order of trains encoded in rail signal constraints (set: traffic lights)
 885TL_CONSTRAINT_SWAP = 0x32
 886
 887#  add/get rail signal constraints by foeSignal (get: traffic lights)
 888TL_CONSTRAINT_BYFOE = 0x34
 889
 890#  add/get rail signal constraints by foeSignal (set: traffic lights)
 891TL_CONSTRAINT_REMOVE = 0x35
 892
 893#  update rail signal constraints by vehID (set: traffic lights)
 894TL_CONSTRAINT_UPDATE = 0x36
 895
 896#  add rail signal constraint (set: traffic lights)
 897TL_CONSTRAINT_ADD = 0x37
 898
 899#  retrieve duration spent in the current phase (get: traffic lights)
 900TL_SPENT_DURATION = 0x38
 901
 902#  outgoing link number (get: lanes)
 903LANE_LINK_NUMBER = 0x30
 904
 905#  id of parent edge (get: lanes)
 906LANE_EDGE_ID = 0x31
 907
 908#  outgoing link definitions (get: lanes)
 909LANE_LINKS = 0x33
 910
 911#  list of allowed vehicle classes (get&set: lanes)
 912LANE_ALLOWED = 0x34
 913
 914#  list of not allowed vehicle classes (get&set: lanes)
 915LANE_DISALLOWED = 0x35
 916
 917#  list of allowed vehicle classes for lane changes (get&set: lanes)
 918LANE_CHANGES = 0x3c
 919
 920#  list of foe lanes (get: lane, vehicle)
 921VAR_FOES = 0x37
 922
 923#  slope (get: edge, lane, vehicle, person)
 924VAR_SLOPE = 0x36
 925
 926#  speed (get: vehicle)
 927VAR_SPEED = 0x40
 928
 929#  adapt previous speed (set: vehicle)
 930VAR_PREV_SPEED = 0x3c
 931
 932#  friction coefficient (set&get: lanes, set: edges)
 933VAR_FRICTION = 0x3d
 934
 935#  lateral speed (get: vehicle)
 936VAR_SPEED_LAT = 0x32
 937
 938#  maximum allowed/possible speed (get: vehicle types, lanes, set: edges, lanes)
 939VAR_MAXSPEED = 0x41
 940
 941#  position (2D) (get: vehicle, poi, inductionloop, lane area detector, multi-entry/multi-exit detector; set: poi)
 942VAR_POSITION = 0x42
 943
 944#  position (2D) (get: multi-entry/multi-exit detector)
 945VAR_EXIT_POSITIONS = 0x43
 946
 947#  position (3D) (get: vehicle, poi, set: poi)
 948VAR_POSITION3D = 0x39
 949
 950#  angle (get: vehicle, edge, lane, poi, gui; set: poi, gui)
 951VAR_ANGLE = 0x43
 952
 953#  length (get: vehicle types, lanes, lane area detector, set: lanes)
 954VAR_LENGTH = 0x44
 955
 956#  color (get: vehicles, vehicle types, polygons, pois)
 957VAR_COLOR = 0x45
 958
 959#  max. acceleration (get: vehicles, vehicle types)
 960VAR_ACCEL = 0x46
 961
 962#  max. comfortable deceleration (get: vehicles, vehicle types)
 963VAR_DECEL = 0x47
 964
 965#  max. (physically possible) deceleration (get: vehicles, vehicle types)
 966VAR_EMERGENCY_DECEL = 0x7b
 967
 968#  apparent deceleration (get: vehicles, vehicle types)
 969VAR_APPARENT_DECEL = 0x7c
 970
 971#  action step length (get: vehicles, vehicle types)
 972VAR_ACTIONSTEPLENGTH = 0x7d
 973
 974#  last action time (get: vehicles)
 975VAR_LASTACTIONTIME = 0x7f
 976
 977#  driver's desired headway (get: vehicle types)
 978VAR_TAU = 0x48
 979
 980#  vehicle class (get: vehicle types)
 981VAR_VEHICLECLASS = 0x49
 982
 983#  emission class (get: vehicle types)
 984VAR_EMISSIONCLASS = 0x4a
 985
 986#  shape class (get: vehicle types)
 987VAR_SHAPECLASS = 0x4b
 988
 989#  minimum gap (get: vehicle types)
 990VAR_MINGAP = 0x4c
 991
 992#  width (get: vehicle types, lanes, polygons, poi)
 993VAR_WIDTH = 0x4d
 994
 995#  shape (get: polygons)
 996VAR_SHAPE = 0x4e
 997
 998#  type id (get: vehicles, polygons, pois)
 999VAR_TYPE = 0x4f
1000
1001#  road id (get: vehicles)
1002VAR_ROAD_ID = 0x50
1003
1004#  lane id (get: vehicles, inductionloop, lane area detector)
1005VAR_LANE_ID = 0x51
1006
1007#  lane index (get: vehicle, edge)
1008VAR_LANE_INDEX = 0x52
1009
1010#  segment id (get: vehicle)
1011VAR_SEGMENT_ID = 0xa1
1012
1013#  segment index (get: vehicle)
1014VAR_SEGMENT_INDEX = 0xa2
1015
1016#  route id (get & set: vehicles)
1017VAR_ROUTE_ID = 0x53
1018
1019#  edges (get: routes, vehicles)
1020VAR_EDGES = 0x54
1021
1022#  filled? (set: vehicles)
1023VAR_STOP_PARAMETER = 0x55
1024
1025#  lanes (get: variablespeedsign, multi-entry/multi-exit detector)
1026VAR_LANES = 0x30
1027
1028#  exit lanes (get: multi-entry/multi-exit detector)
1029VAR_EXIT_LANES = 0x31
1030
1031#  update bestLanes (set: vehicle)
1032VAR_UPDATE_BESTLANES = 0x6a
1033
1034#  filled? (get: polygons)
1035VAR_FILL = 0x55
1036
1037#  get/set image file (poi, poly, vehicle, person, simulation)
1038VAR_IMAGEFILE = 0x93
1039
1040#  position (1D along lane) (get: vehicle)
1041VAR_LANEPOSITION = 0x56
1042
1043#  route (set: vehicles)
1044VAR_ROUTE = 0x57
1045
1046#  travel time information (get&set: vehicle)
1047VAR_EDGE_TRAVELTIME = 0x58
1048
1049#  effort information (get&set: vehicle)
1050VAR_EDGE_EFFORT = 0x59
1051
1052#  last step travel time (get: edge, lane, e3)
1053VAR_CURRENT_TRAVELTIME = 0x5a
1054
1055#  signals state (get/set: vehicle)
1056VAR_SIGNALS = 0x5b
1057
1058#  vehicle: new lane/position along (set: vehicle)
1059VAR_MOVE_TO = 0x5c
1060
1061#  polygon: add dynamics (set: polygon)
1062VAR_ADD_DYNAMICS = 0x5c
1063
1064#  vehicle: highlight (set: vehicle, poi)
1065VAR_HIGHLIGHT = 0x6c
1066
1067#  driver imperfection (set: vehicle)
1068VAR_IMPERFECTION = 0x5d
1069
1070#  speed factor (set: vehicle)
1071VAR_SPEED_FACTOR = 0x5e
1072
1073#  speed deviation (set: vehicle)
1074VAR_SPEED_DEVIATION = 0x5f
1075
1076#  routing mode (get/set: vehicle)
1077VAR_ROUTING_MODE = 0x89
1078
1079#  speed without TraCI influence (get: vehicle)
1080VAR_SPEED_WITHOUT_TRACI = 0xb1
1081
1082#  best lanes (get: vehicle)
1083VAR_BEST_LANES = 0xb2
1084
1085#  how speed is set (set: vehicle)
1086VAR_SPEEDSETMODE = 0xb3
1087
1088#  move vehicle to explicit (remote controlled) position (set: vehicle)
1089MOVE_TO_XY = 0xb4
1090
1091#  is the vehicle stopped, and if so parked and/or triggered?
1092#  value = stopped + 2 * parking + 4 * triggered
1093VAR_STOPSTATE = 0xb5
1094
1095#  how lane changing is performed (get/set: vehicle)
1096VAR_LANECHANGE_MODE = 0xb6
1097
1098#  maximum speed regarding max speed on the current lane and speed factor (get: vehicle)
1099VAR_ALLOWED_SPEED = 0xb7
1100
1101#  position (1D lateral position relative to center of the current lane) (get: vehicle)
1102VAR_LANEPOSITION_LAT = 0xb8
1103
1104#  get/set prefered lateral alignment within the lane (vehicle)
1105VAR_LATALIGNMENT = 0xb9
1106
1107#  get/set maximum lateral speed (vehicle, vtypes)
1108VAR_MAXSPEED_LAT = 0xba
1109
1110#  get/set minimum lateral gap (vehicle, vtypes)
1111VAR_MINGAP_LAT = 0xbb
1112
1113#  get/set vehicle height (vehicle, vtypes, poi)
1114VAR_HEIGHT = 0xbc
1115
1116#  get/set mass (vehicle, vtype)
1117VAR_MASS = 0xc8
1118
1119#  get/set vehicle line
1120VAR_LINE = 0xbd
1121
1122#  get/set vehicle via
1123VAR_VIA = 0xbe
1124
1125#  get (lane change relevant) neighboring vehicles (vehicles)
1126VAR_NEIGHBORS = 0xbf
1127
1128#  current CO2 emission of a node (get: vehicle, lane, edge)
1129VAR_CO2EMISSION = 0x60
1130
1131#  current CO emission of a node (get: vehicle, lane, edge)
1132VAR_COEMISSION = 0x61
1133
1134#  current HC emission of a node (get: vehicle, lane, edge)
1135VAR_HCEMISSION = 0x62
1136
1137#  current PMx emission of a node (get: vehicle, lane, edge)
1138VAR_PMXEMISSION = 0x63
1139
1140#  current NOx emission of a node (get: vehicle, lane, edge)
1141VAR_NOXEMISSION = 0x64
1142
1143#  current fuel consumption of a node (get: vehicle, lane, edge)
1144VAR_FUELCONSUMPTION = 0x65
1145
1146#  current noise emission of a node (get: vehicle, lane, edge)
1147VAR_NOISEEMISSION = 0x66
1148
1149#  current person number (get: vehicle, trafficlight)
1150VAR_PERSON_NUMBER = 0x67
1151
1152#  person capacity (vehicle, vehicle type)
1153VAR_PERSON_CAPACITY = 0x38
1154
1155#  departure time (vehicle, person)
1156VAR_DEPARTURE = 0x3a
1157
1158#  departure delay (vehicle, person)
1159VAR_DEPART_DELAY = 0x3b
1160
1161#  boarding time (get: vehicle type, vehicle, person)
1162VAR_BOARDING_DURATION = 0x2f
1163
1164#  impatience (get,set: vehicle type, vehicle, person)
1165VAR_IMPATIENCE = 0x26
1166
1167VAR_BUS_STOP_ID_LIST = 0x9f
1168
1169#  number of persons waiting at a defined bus stop (get: simulation)
1170VAR_BUS_STOP_WAITING = 0x67
1171
1172#  ids of persons waiting at a defined bus stop (get: simulation)
1173VAR_BUS_STOP_WAITING_IDS = 0xef
1174
1175#  current leader together with gap (get: vehicle)
1176VAR_LEADER = 0x68
1177
1178#  current leader together with gap (get: vehicle)
1179VAR_FOLLOWER = 0x78
1180
1181#  edge index in current route (get: vehicle)
1182VAR_ROUTE_INDEX = 0x69
1183
1184#  current waiting time (get: vehicle, lane)
1185VAR_WAITING_TIME = 0x7a
1186
1187#  current waiting time (get: vehicle)
1188VAR_ACCUMULATED_WAITING_TIME = 0x87
1189
1190#  upcoming traffic lights (get: vehicle)
1191VAR_NEXT_TLS = 0x70
1192
1193#  upcoming stops (get: vehicle)
1194VAR_NEXT_STOPS = 0x73
1195
1196#  upcoming stops with selection (get: vehicle)
1197VAR_NEXT_STOPS2 = 0x74
1198
1199#  upcoming links(get: vehicle)
1200VAR_NEXT_LINKS = 0x33
1201
1202#  current acceleration (get,set: vehicle)
1203VAR_ACCELERATION = 0x72
1204
1205#  arrival position (get,set: vehicle)
1206VAR_ARRIVALPOS = 0x75
1207
1208#  arrival lane (get,set: vehicle)
1209VAR_ARRIVALLANE = 0x76
1210
1211#  arrival speed (get,set: vehicle)
1212VAR_ARRIVALSPEED = 0x77
1213
1214#  add log message (set: simulation)
1215CMD_MESSAGE = 0x65
1216
1217#  current time in seconds (get: simulation)
1218VAR_TIME = 0x66
1219
1220#  current time step (get: simulation)
1221VAR_TIME_STEP = 0x70
1222
1223#  current electricity consumption of a node (get: vehicle, lane, edge)
1224VAR_ELECTRICITYCONSUMPTION = 0x71
1225
1226#  number of loaded vehicles (get: simulation)
1227VAR_LOADED_VEHICLES_NUMBER = 0x71
1228
1229#  loaded vehicle ids (get: simulation)
1230VAR_LOADED_VEHICLES_IDS = 0x72
1231
1232#  number of departed vehicle (get: simulation)
1233VAR_DEPARTED_VEHICLES_NUMBER = 0x73
1234
1235#  departed vehicle ids (get: simulation)
1236VAR_DEPARTED_VEHICLES_IDS = 0x74
1237
1238#  number of vehicles starting to teleport (get: simulation)
1239VAR_TELEPORT_STARTING_VEHICLES_NUMBER = 0x75
1240
1241#  ids of vehicles starting to teleport (get: simulation)
1242VAR_TELEPORT_STARTING_VEHICLES_IDS = 0x76
1243
1244#  number of vehicles ending to teleport (get: simulation)
1245VAR_TELEPORT_ENDING_VEHICLES_NUMBER = 0x77
1246
1247#  ids of vehicles ending to teleport (get: simulation)
1248VAR_TELEPORT_ENDING_VEHICLES_IDS = 0x78
1249
1250#  number of arrived vehicles (get: simulation)
1251VAR_ARRIVED_VEHICLES_NUMBER = 0x79
1252
1253#  ids of arrived vehicles (get: simulation)
1254VAR_ARRIVED_VEHICLES_IDS = 0x7a
1255
1256#  delta t (get: simulation)
1257VAR_DELTA_T = 0x7b
1258
1259#  bounding box (get: simulation)
1260VAR_NET_BOUNDING_BOX = 0x7c
1261
1262#  minimum number of expected vehicles (get: simulation)
1263VAR_MIN_EXPECTED_VEHICLES = 0x7d
1264
1265#  number of departed persons (get: simulation)
1266VAR_DEPARTED_PERSONS_NUMBER = 0x24
1267
1268#  departed person ids (get: simulation)
1269VAR_DEPARTED_PERSONS_IDS = 0x25
1270
1271#  number of arrived persons (get: simulation)
1272VAR_ARRIVED_PERSONS_NUMBER = 0x26
1273
1274#  ids of arrived persons (get: simulation)
1275VAR_ARRIVED_PERSONS_IDS = 0x27
1276
1277#  number of vehicles starting to park (get: simulation)
1278VAR_STOP_STARTING_VEHICLES_NUMBER = 0x68
1279
1280#  ids of vehicles starting to park (get: simulation)
1281VAR_STOP_STARTING_VEHICLES_IDS = 0x69
1282
1283#  number of vehicles ending to park (get: simulation)
1284VAR_STOP_ENDING_VEHICLES_NUMBER = 0x6a
1285
1286#  ids of vehicles ending to park (get: simulation)
1287VAR_STOP_ENDING_VEHICLES_IDS = 0x6b
1288
1289#  number of vehicles starting to park (get: simulation)
1290VAR_PARKING_STARTING_VEHICLES_NUMBER = 0x6c
1291
1292#  ids of vehicles starting to park (get: simulation)
1293VAR_PARKING_STARTING_VEHICLES_IDS = 0x6d
1294
1295#  number of vehicles maneuvering (get: simulation)
1296VAR_PARKING_MANEUVERING_VEHICLES_NUMBER = 0x3a
1297
1298#  ids of vehicles maneuvering (get: simulation)
1299VAR_PARKING_MANEUVERING_VEHICLES_IDS = 0x3b
1300
1301#  number of vehicles ending to park (get: simulation)
1302VAR_PARKING_ENDING_VEHICLES_NUMBER = 0x6e
1303
1304#  ids of vehicles ending to park (get: simulation)
1305VAR_PARKING_ENDING_VEHICLES_IDS = 0x6f
1306
1307#  number of vehicles involved in a collision (get: simulation)
1308VAR_COLLIDING_VEHICLES_NUMBER = 0x80
1309
1310#  ids of vehicles involved in a collision (get: simulation)
1311VAR_COLLIDING_VEHICLES_IDS = 0x81
1312
1313#  number of vehicles involved in a collision (get: simulation)
1314VAR_EMERGENCYSTOPPING_VEHICLES_NUMBER = 0x89
1315
1316#  ids of vehicles involved in a collision (get: simulation)
1317VAR_EMERGENCYSTOPPING_VEHICLES_IDS = 0x8a
1318
1319#  scale traffic (set, get: simulation, vehicle)
1320VAR_SCALE = 0x8e
1321
1322#  clears the simulation of all not inserted vehicles (set: simulation)
1323CMD_CLEAR_PENDING_VEHICLES = 0x94
1324
1325#  retrieve number of not inserted  vehicles (get: simulation, edge, lane)
1326VAR_PENDING_VEHICLES = 0x94
1327
1328#  retrieve global option value (get: simulation)
1329VAR_OPTION = 0x32
1330
1331#  triggers saving simulation state (set: simulation)
1332CMD_SAVE_SIMSTATE = 0x95
1333
1334#  triggers saving simulation state (set: simulation)
1335CMD_LOAD_SIMSTATE = 0x96
1336
1337#  retrieve detail data for each collision
1338VAR_COLLISIONS = 0x23
1339
1340#  return loaded vehicles regardless of visibility (excluding arrived)
1341VAR_LOADED_LIST = 0x24
1342
1343#  return teleporting vehicles
1344VAR_TELEPORTING_LIST = 0x25
1345
1346#  sets/retrieves abstract parameter
1347VAR_PARAMETER = 0x7e
1348
1349#  retrieves abstract parameter and returns (key, value) tuple
1350VAR_PARAMETER_WITH_KEY = 0x3e
1351
1352#  add an instance (poi, polygon, vehicle, person, route, gui)
1353ADD = 0x80
1354
1355#  remove an instance (poi, polygon, vehicle, person, gui, route)
1356REMOVE = 0x81
1357
1358#  copy an instance (vehicle type, other TBD.)
1359COPY = 0x88
1360
1361#  convert coordinates
1362POSITION_CONVERSION = 0x82
1363
1364#  distance between points or vehicles
1365DISTANCE_REQUEST = 0x83
1366
1367#  the current driving distance
1368VAR_DISTANCE = 0x84
1369
1370#  add a fully specified instance (vehicle)
1371ADD_FULL = 0x85
1372
1373#  find a car based route
1374FIND_ROUTE = 0x86
1375
1376#  find an intermodal route
1377FIND_INTERMODAL_ROUTE = 0x87
1378
1379#  force rerouting based on travel time (vehicles)
1380CMD_REROUTE_TRAVELTIME = 0x90
1381
1382#  force rerouting based on effort (vehicles)
1383CMD_REROUTE_EFFORT = 0x91
1384
1385#  validates current route (vehicles)
1386VAR_ROUTE_VALID = 0x92
1387
1388#  retrieve distance along linear reference system (vehicle, edge)
1389VAR_REFERENCE_DISTANCE = 0x95
1390
1391#  retrieve information regarding the current person/container stage
1392VAR_STAGE = 0xc0
1393
1394#  retrieve information regarding the next edge including crossings and walkingAreas (pedestrians only)
1395VAR_NEXT_EDGE = 0xc1
1396
1397#  retrieve information regarding the number of remaining stages
1398VAR_STAGES_REMAINING = 0xc2
1399
1400#  retrieve the current vehicle id for the driving stage (person, container)
1401VAR_VEHICLE = 0xc3
1402
1403#  append a person stage (person)
1404APPEND_STAGE = 0xc4
1405
1406#  replace a person stage (person)
1407REPLACE_STAGE = 0xcd
1408
1409#  append a person stage (person)
1410REMOVE_STAGE = 0xc5
1411
1412#  retrieve taxi reservation (person)
1413VAR_TAXI_RESERVATIONS = 0xc6
1414
1415#  manipulate taxi reservation (person)
1416SPLIT_TAXI_RESERVATIONS = 0xc7
1417
1418#  sample last route (routeprobe)
1419VAR_SAMPLE_LAST = 0x20
1420
1421#  sample current route (routeprobe)
1422VAR_SAMPLE_CURRENT = 0x21
1423
1424#  zoom
1425VAR_VIEW_ZOOM = 0xa0
1426
1427#  view position
1428VAR_VIEW_OFFSET = 0xa1
1429
1430#  view schema
1431VAR_VIEW_SCHEMA = 0xa2
1432
1433#  view by boundary
1434VAR_VIEW_BOUNDARY = 0xa3
1435
1436#  select/deselect object (gui)
1437VAR_SELECT = 0xa4
1438
1439#  screenshot
1440VAR_SCREENSHOT = 0xa5
1441
1442#  track vehicle
1443VAR_TRACK_VEHICLE = 0xa6
1444
1445#  presence of view
1446VAR_HAS_VIEW = 0xa7
1447
1448#  charging station power
1449VAR_CS_POWER = 0x97
1450
1451#  charging station power
1452VAR_CS_EFFICIENCY = 0x98
1453
1454#  charging station power
1455VAR_CS_CHARGE_IN_TRANSIT = 0x99
1456
1457#  charging station power
1458VAR_CS_CHARGE_DELAY = 0x9a
1459
1460#  parking area access permissions
1461VAR_ACCESS_BADGE = 0x9b
1462
1463#  charging station total power
1464VAR_CS_TOTAL_POWER = 0x9c
1465
1466# @name currently wanted lane-change action
1467# @{
1468# @brief No action desired
1469LCA_NONE = 0
1470# @brief Needs to stay on the current lane
1471LCA_STAY = 1 << 0
1472# @brief Wants go to the left
1473LCA_LEFT = 1 << 1
1474# @brief Wants go to the right
1475LCA_RIGHT = 1 << 2
1476# @brief The action is needed to follow the route (navigational lc)
1477LCA_STRATEGIC = 1 << 3
1478# @brief The action is done to help someone else
1479LCA_COOPERATIVE = 1 << 4
1480# @brief The action is due to the wish to be faster (tactical lc)
1481LCA_SPEEDGAIN = 1 << 5
1482# @brief The action is due to the default of keeping right "Rechtsfahrgebot"
1483LCA_KEEPRIGHT = 1 << 6
1484# @brief The action is due to a TraCI request
1485LCA_TRACI = 1 << 7
1486# @brief The action is urgent (to be defined by lc-model)
1487LCA_URGENT = 1 << 8
1488# @brief The action has not been determined
1489LCA_UNKNOWN = 1 << 30
1490# @}
1491
1492# @name External state
1493# @{
1494# @brief The vehicle is blocked by left leader
1495LCA_BLOCKED_BY_LEFT_LEADER = 1 << 9
1496# @brief The vehicle is blocked by left follower
1497LCA_BLOCKED_BY_LEFT_FOLLOWER = 1 << 10
1498# @brief The vehicle is blocked by right leader
1499LCA_BLOCKED_BY_RIGHT_LEADER = 1 << 11
1500# @brief The vehicle is blocked by right follower
1501LCA_BLOCKED_BY_RIGHT_FOLLOWER = 1 << 12
1502# @brief The vehicle is blocked being overlapping
1503LCA_OVERLAPPING = 1 << 13
1504# @brief The vehicle does not have enough space to complete a continuous change before the next turn
1505LCA_INSUFFICIENT_SPACE = 1 << 14
1506# @brief used by the sublane model
1507LCA_SUBLANE = 1 << 15
1508# @brief Vehicle is too slow to complete a continuous lane change (in case that maxSpeedLatStanding==0)
1509LCA_INSUFFICIENT_SPEED = 1 << 28
1510# @brief lane can change
1511LCA_WANTS_LANECHANGE = LCA_LEFT | LCA_RIGHT
1512# @brief lane can change or stay
1513LCA_WANTS_LANECHANGE_OR_STAY = LCA_WANTS_LANECHANGE | LCA_STAY
1514# @brief blocked left
1515LCA_BLOCKED_LEFT = LCA_BLOCKED_BY_LEFT_LEADER | LCA_BLOCKED_BY_LEFT_FOLLOWER
1516# @brief blocked right
1517LCA_BLOCKED_RIGHT = LCA_BLOCKED_BY_RIGHT_LEADER | LCA_BLOCKED_BY_RIGHT_FOLLOWER
1518# @brief blocked by leader
1519LCA_BLOCKED_BY_LEADER = LCA_BLOCKED_BY_LEFT_LEADER | LCA_BLOCKED_BY_RIGHT_LEADER
1520# @brief blocker by follower
1521LCA_BLOCKED_BY_FOLLOWER = LCA_BLOCKED_BY_LEFT_FOLLOWER | LCA_BLOCKED_BY_RIGHT_FOLLOWER
1522# @brief blocked in all directions
1523LCA_BLOCKED = LCA_BLOCKED_LEFT | LCA_BLOCKED_RIGHT | LCA_INSUFFICIENT_SPACE | LCA_INSUFFICIENT_SPEED
1524# @brief reasons of lane change
1525LCA_CHANGE_REASONS = (LCA_STRATEGIC | LCA_COOPERATIVE | LCA_SPEEDGAIN | LCA_KEEPRIGHT | LCA_SUBLANE | LCA_TRACI)
1526#  LCA_BLOCKED_BY_CURRENT_LEADER = 1 << 28
1527#  LCA_BLOCKED_BY_CURRENT_FOLLOWER = 1 << 29
1528# @}
1529
1530# @name originally model specific states (migrated here since
1531#       they were duplicated in all current models)
1532# @{
1533LCA_AMBLOCKINGLEADER = 1 << 16
1534LCA_AMBLOCKINGFOLLOWER = 1 << 17
1535LCA_MRIGHT = 1 << 18
1536LCA_MLEFT = 1 << 19
1537#  !!! never set LCA_UNBLOCK = 1 << 20,
1538LCA_AMBLOCKINGFOLLOWER_DONTBRAKE = 1 << 21
1539#  !!! never used LCA_AMBLOCKINGSECONDFOLLOWER = 1 << 22,
1540LCA_CHANGE_TO_HELP = 1 << 23
1541#  !!! never read LCA_KEEP1 = 1 << 24,
1542#  !!! never used LCA_KEEP2 = 1 << 25,
1543LCA_AMBACKBLOCKER = 1 << 26
1544LCA_AMBACKBLOCKER_STANDING = 1 << 27
1545# @}
TRACI_VERSION = 22
CMD_GETVERSION = 0
CMD_LOAD = 1
CMD_EXECUTEMOVE = 125
CMD_SIMSTEP = 2
CMD_SETORDER = 3
CMD_STOP = 18
CMD_REROUTE_TO_PARKING = 194
CMD_RESUME = 25
CMD_CHANGELANE = 19
CMD_SLOWDOWN = 20
CMD_CHANGESUBLANE = 21
CMD_OPENGAP = 22
CMD_REPLACE_STOP = 23
CMD_INSERT_STOP = 24
VAR_TAXI_FLEET = 32
CMD_TAXI_DISPATCH = 33
CMD_CHANGETARGET = 49
CMD_CLOSE = 127
CMD_ADD_SUBSCRIPTION_FILTER = 126
CMD_SUBSCRIBE_INDUCTIONLOOP_CONTEXT = 128
RESPONSE_SUBSCRIBE_INDUCTIONLOOP_CONTEXT = 144
CMD_GET_INDUCTIONLOOP_VARIABLE = 160
RESPONSE_GET_INDUCTIONLOOP_VARIABLE = 176
CMD_SET_INDUCTIONLOOP_VARIABLE = 192
CMD_SUBSCRIBE_INDUCTIONLOOP_VARIABLE = 208
RESPONSE_SUBSCRIBE_INDUCTIONLOOP_VARIABLE = 224
CMD_SUBSCRIBE_MULTIENTRYEXIT_CONTEXT = 129
RESPONSE_SUBSCRIBE_MULTIENTRYEXIT_CONTEXT = 145
CMD_GET_MULTIENTRYEXIT_VARIABLE = 161
RESPONSE_GET_MULTIENTRYEXIT_VARIABLE = 177
CMD_SET_MULTIENTRYEXIT_VARIABLE = 193
CMD_SUBSCRIBE_MULTIENTRYEXIT_VARIABLE = 209
RESPONSE_SUBSCRIBE_MULTIENTRYEXIT_VARIABLE = 225
CMD_SUBSCRIBE_TL_CONTEXT = 130
RESPONSE_SUBSCRIBE_TL_CONTEXT = 146
CMD_GET_TL_VARIABLE = 162
RESPONSE_GET_TL_VARIABLE = 178
CMD_SET_TL_VARIABLE = 194
CMD_SUBSCRIBE_TL_VARIABLE = 210
RESPONSE_SUBSCRIBE_TL_VARIABLE = 226
CMD_SUBSCRIBE_LANE_CONTEXT = 131
RESPONSE_SUBSCRIBE_LANE_CONTEXT = 147
CMD_GET_LANE_VARIABLE = 163
RESPONSE_GET_LANE_VARIABLE = 179
CMD_SET_LANE_VARIABLE = 195
CMD_SUBSCRIBE_LANE_VARIABLE = 211
RESPONSE_SUBSCRIBE_LANE_VARIABLE = 227
CMD_SUBSCRIBE_VEHICLE_CONTEXT = 132
RESPONSE_SUBSCRIBE_VEHICLE_CONTEXT = 148
CMD_GET_VEHICLE_VARIABLE = 164
RESPONSE_GET_VEHICLE_VARIABLE = 180
CMD_SET_VEHICLE_VARIABLE = 196
CMD_SUBSCRIBE_VEHICLE_VARIABLE = 212
RESPONSE_SUBSCRIBE_VEHICLE_VARIABLE = 228
CMD_SUBSCRIBE_VEHICLETYPE_CONTEXT = 133
RESPONSE_SUBSCRIBE_VEHICLETYPE_CONTEXT = 149
CMD_GET_VEHICLETYPE_VARIABLE = 165
RESPONSE_GET_VEHICLETYPE_VARIABLE = 181
CMD_SET_VEHICLETYPE_VARIABLE = 197
CMD_SUBSCRIBE_VEHICLETYPE_VARIABLE = 213
RESPONSE_SUBSCRIBE_VEHICLETYPE_VARIABLE = 229
CMD_SUBSCRIBE_ROUTE_CONTEXT = 134
RESPONSE_SUBSCRIBE_ROUTE_CONTEXT = 150
CMD_GET_ROUTE_VARIABLE = 166
RESPONSE_GET_ROUTE_VARIABLE = 182
CMD_SET_ROUTE_VARIABLE = 198
CMD_SUBSCRIBE_ROUTE_VARIABLE = 214
RESPONSE_SUBSCRIBE_ROUTE_VARIABLE = 230
CMD_SUBSCRIBE_POI_CONTEXT = 135
RESPONSE_SUBSCRIBE_POI_CONTEXT = 151
CMD_GET_POI_VARIABLE = 167
RESPONSE_GET_POI_VARIABLE = 183
CMD_SET_POI_VARIABLE = 199
CMD_SUBSCRIBE_POI_VARIABLE = 215
RESPONSE_SUBSCRIBE_POI_VARIABLE = 231
CMD_SUBSCRIBE_POLYGON_CONTEXT = 136
RESPONSE_SUBSCRIBE_POLYGON_CONTEXT = 152
CMD_GET_POLYGON_VARIABLE = 168
RESPONSE_GET_POLYGON_VARIABLE = 184
CMD_SET_POLYGON_VARIABLE = 200
CMD_SUBSCRIBE_POLYGON_VARIABLE = 216
RESPONSE_SUBSCRIBE_POLYGON_VARIABLE = 232
CMD_SUBSCRIBE_JUNCTION_CONTEXT = 137
RESPONSE_SUBSCRIBE_JUNCTION_CONTEXT = 153
CMD_GET_JUNCTION_VARIABLE = 169
RESPONSE_GET_JUNCTION_VARIABLE = 185
CMD_SET_JUNCTION_VARIABLE = 201
CMD_SUBSCRIBE_JUNCTION_VARIABLE = 217
RESPONSE_SUBSCRIBE_JUNCTION_VARIABLE = 233
CMD_SUBSCRIBE_EDGE_CONTEXT = 138
RESPONSE_SUBSCRIBE_EDGE_CONTEXT = 154
CMD_GET_EDGE_VARIABLE = 170
RESPONSE_GET_EDGE_VARIABLE = 186
CMD_SET_EDGE_VARIABLE = 202
CMD_SUBSCRIBE_EDGE_VARIABLE = 218
RESPONSE_SUBSCRIBE_EDGE_VARIABLE = 234
CMD_SUBSCRIBE_SIM_CONTEXT = 139
RESPONSE_SUBSCRIBE_SIM_CONTEXT = 155
CMD_GET_SIM_VARIABLE = 171
RESPONSE_GET_SIM_VARIABLE = 187
CMD_SET_SIM_VARIABLE = 203
CMD_SUBSCRIBE_SIM_VARIABLE = 219
RESPONSE_SUBSCRIBE_SIM_VARIABLE = 235
CMD_SUBSCRIBE_GUI_CONTEXT = 140
RESPONSE_SUBSCRIBE_GUI_CONTEXT = 156
CMD_GET_GUI_VARIABLE = 172
RESPONSE_GET_GUI_VARIABLE = 188
CMD_SET_GUI_VARIABLE = 204
CMD_SUBSCRIBE_GUI_VARIABLE = 220
RESPONSE_SUBSCRIBE_GUI_VARIABLE = 236
CMD_SUBSCRIBE_LANEAREA_CONTEXT = 141
RESPONSE_SUBSCRIBE_LANEAREA_CONTEXT = 157
CMD_GET_LANEAREA_VARIABLE = 173
RESPONSE_GET_LANEAREA_VARIABLE = 189
CMD_SET_LANEAREA_VARIABLE = 205
CMD_SUBSCRIBE_LANEAREA_VARIABLE = 221
RESPONSE_SUBSCRIBE_LANEAREA_VARIABLE = 237
CMD_SUBSCRIBE_PERSON_CONTEXT = 142
RESPONSE_SUBSCRIBE_PERSON_CONTEXT = 158
CMD_GET_PERSON_VARIABLE = 174
RESPONSE_GET_PERSON_VARIABLE = 190
CMD_SET_PERSON_VARIABLE = 206
CMD_SUBSCRIBE_PERSON_VARIABLE = 222
RESPONSE_SUBSCRIBE_PERSON_VARIABLE = 238
CMD_SUBSCRIBE_BUSSTOP_CONTEXT = 143
RESPONSE_SUBSCRIBE_BUSSTOP_CONTEXT = 159
CMD_GET_BUSSTOP_VARIABLE = 175
RESPONSE_GET_BUSSTOP_VARIABLE = 191
CMD_SET_BUSSTOP_VARIABLE = 207
CMD_SUBSCRIBE_BUSSTOP_VARIABLE = 223
RESPONSE_SUBSCRIBE_BUSSTOP_VARIABLE = 239
CMD_SUBSCRIBE_PARKINGAREA_CONTEXT = 4
RESPONSE_SUBSCRIBE_PARKINGAREA_CONTEXT = 20
CMD_GET_PARKINGAREA_VARIABLE = 36
RESPONSE_GET_PARKINGAREA_VARIABLE = 52
CMD_SET_PARKINGAREA_VARIABLE = 68
CMD_SUBSCRIBE_PARKINGAREA_VARIABLE = 84
RESPONSE_SUBSCRIBE_PARKINGAREA_VARIABLE = 100
CMD_SUBSCRIBE_CHARGINGSTATION_CONTEXT = 5
RESPONSE_SUBSCRIBE_CHARGINGSTATION_CONTEXT = 21
CMD_GET_CHARGINGSTATION_VARIABLE = 37
RESPONSE_GET_CHARGINGSTATION_VARIABLE = 53
CMD_SET_CHARGINGSTATION_VARIABLE = 69
CMD_SUBSCRIBE_CHARGINGSTATION_VARIABLE = 85
RESPONSE_SUBSCRIBE_CHARGINGSTATION_VARIABLE = 101
CMD_SUBSCRIBE_ROUTEPROBE_CONTEXT = 6
RESPONSE_SUBSCRIBE_ROUTEPROBE_CONTEXT = 22
CMD_GET_ROUTEPROBE_VARIABLE = 38
RESPONSE_GET_ROUTEPROBE_VARIABLE = 54
CMD_SET_ROUTEPROBE_VARIABLE = 70
CMD_SUBSCRIBE_ROUTEPROBE_VARIABLE = 86
RESPONSE_SUBSCRIBE_ROUTEPROBE_VARIABLE = 102
CMD_SUBSCRIBE_CALIBRATOR_CONTEXT = 7
RESPONSE_SUBSCRIBE_CALIBRATOR_CONTEXT = 23
CMD_GET_CALIBRATOR_VARIABLE = 39
RESPONSE_GET_CALIBRATOR_VARIABLE = 55
CMD_SET_CALIBRATOR_VARIABLE = 71
CMD_SUBSCRIBE_CALIBRATOR_VARIABLE = 87
RESPONSE_SUBSCRIBE_CALIBRATOR_VARIABLE = 103
CMD_SUBSCRIBE_REROUTER_CONTEXT = 8
RESPONSE_SUBSCRIBE_REROUTER_CONTEXT = 24
CMD_GET_REROUTER_VARIABLE = 40
RESPONSE_GET_REROUTER_VARIABLE = 56
CMD_SET_REROUTER_VARIABLE = 72
CMD_SUBSCRIBE_REROUTER_VARIABLE = 88
RESPONSE_SUBSCRIBE_REROUTER_VARIABLE = 104
CMD_SUBSCRIBE_VARIABLESPEEDSIGN_CONTEXT = 9
RESPONSE_SUBSCRIBE_VARIABLESPEEDSIGN_CONTEXT = 25
CMD_GET_VARIABLESPEEDSIGN_VARIABLE = 41
RESPONSE_GET_VARIABLESPEEDSIGN_VARIABLE = 57
CMD_SET_VARIABLESPEEDSIGN_VARIABLE = 73
CMD_SUBSCRIBE_VARIABLESPEEDSIGN_VARIABLE = 89
RESPONSE_SUBSCRIBE_VARIABLESPEEDSIGN_VARIABLE = 105
CMD_SUBSCRIBE_MEANDATA_CONTEXT = 10
RESPONSE_SUBSCRIBE_MEANDATA_CONTEXT = 26
CMD_GET_MEANDATA_VARIABLE = 42
RESPONSE_GET_MEANDATA_VARIABLE = 58
CMD_SET_MEANDATA_VARIABLE = 74
CMD_SUBSCRIBE_MEANDATA_VARIABLE = 90
RESPONSE_SUBSCRIBE_MEANDATA_VARIABLE = 106
CMD_SUBSCRIBE_OVERHEADWIRE_CONTEXT = 11
RESPONSE_SUBSCRIBE_OVERHEADWIRE_CONTEXT = 27
CMD_GET_OVERHEADWIRE_VARIABLE = 43
RESPONSE_GET_OVERHEADWIRE_VARIABLE = 59
CMD_SET_OVERHEADWIRE_VARIABLE = 75
CMD_SUBSCRIBE_OVERHEADWIRE_VARIABLE = 91
RESPONSE_SUBSCRIBE_OVERHEADWIRE_VARIABLE = 107
POSITION_LON_LAT = 0
POSITION_2D = 1
POSITION_LON_LAT_ALT = 2
POSITION_3D = 3
POSITION_ROADMAP = 4
TYPE_POLYGON = 6
TYPE_UBYTE = 7
TYPE_BYTE = 8
TYPE_INTEGER = 9
TYPE_DOUBLE = 11
TYPE_STRING = 12
TYPE_STRINGLIST = 14
TYPE_COMPOUND = 15
TYPE_DOUBLELIST = 16
TYPE_COLOR = 17
RTYPE_OK = 0
RTYPE_NOTIMPLEMENTED = 1
RTYPE_ERR = 255
INVALID_DOUBLE_VALUE = -1073741824.0
INVALID_INT_VALUE = -1073741824
MAX_ORDER = 1073741824
DEFAULT_NUM_RETRIES = 60
REQUEST_AIRDIST = 0
REQUEST_DRIVINGDIST = 1
REMOVE_TELEPORT = 0
REMOVE_PARKING = 1
REMOVE_ARRIVED = 2
REMOVE_VAPORIZED = 3
REMOVE_TELEPORT_ARRIVED = 4
MOVE_AUTOMATIC = 0
MOVE_TELEPORT = 1
MOVE_NORMAL = 2
STAGE_WAITING_FOR_DEPART = 0
STAGE_WAITING = 1
STAGE_WALKING = 2
STAGE_DRIVING = 3
STAGE_ACCESS = 4
STAGE_TRIP = 5
STAGE_TRANSHIP = 6
STOP_DEFAULT = 0
STOP_PARKING = 1
STOP_TRIGGERED = 2
STOP_CONTAINER_TRIGGERED = 4
STOP_BUS_STOP = 8
STOP_CONTAINER_STOP = 16
STOP_CHARGING_STATION = 32
STOP_PARKING_AREA = 64
STOP_OVERHEAD_WIRE = 128
DEPARTFLAG_TRIGGERED = -1
DEPARTFLAG_CONTAINER_TRIGGERED = -2
DEPARTFLAG_NOW = -3
DEPARTFLAG_SPLIT = -4
DEPARTFLAG_BEGIN = -5
DEPARTFLAG_SPEED_RANDOM = -2
DEPARTFLAG_SPEED_MAX = -3
DEPARTFLAG_LANE_RANDOM = -2
DEPARTFLAG_LANE_FREE = -3
DEPARTFLAG_LANE_ALLOWED_FREE = -4
DEPARTFLAG_LANE_BEST_FREE = -5
DEPARTFLAG_LANE_FIRST_ALLOWED = -6
DEPARTFLAG_POS_RANDOM = -2
DEPARTFLAG_POS_FREE = -3
DEPARTFLAG_POS_BASE = -4
DEPARTFLAG_POS_LAST = -5
DEPARTFLAG_POS_RANDOM_FREE = -6
ARRIVALFLAG_LANE_CURRENT = -2
ARRIVALFLAG_SPEED_CURRENT = -2
ARRIVALFLAG_POS_RANDOM = -2
ARRIVALFLAG_POS_MAX = -3
ROUTING_MODE_DEFAULT = 0
ROUTING_MODE_AGGREGATED = 1
ROUTING_MODE_EFFORT = 2
ROUTING_MODE_COMBINED = 3
ROUTING_MODE_AGGREGATED_CUSTOM = 4
ROUTING_MODE_IGNORE_TRANSIENT_PERMISSIONS = 8
TRAFFICLIGHT_TYPE_STATIC = 0
TRAFFICLIGHT_TYPE_ACTUATED = 3
TRAFFICLIGHT_TYPE_NEMA = 4
TRAFFICLIGHT_TYPE_DELAYBASED = 5
LANECHANGE_LEFT = 1
LANECHANGE_RIGHT = -1
FILTER_TYPE_NONE = 0
FILTER_TYPE_LANES = 1
FILTER_TYPE_NOOPPOSITE = 2
FILTER_TYPE_DOWNSTREAM_DIST = 3
FILTER_TYPE_UPSTREAM_DIST = 4
FILTER_TYPE_LEAD_FOLLOW = 5
FILTER_TYPE_TURN = 7
FILTER_TYPE_VCLASS = 8
FILTER_TYPE_VTYPE = 9
FILTER_TYPE_FIELD_OF_VISION = 10
FILTER_TYPE_LATERAL_DIST = 11
TRACI_ID_LIST = 0
ID_COUNT = 1
AUTOMATIC_VARIABLES_SUBSCRIPTION = 2
AUTOMATIC_CONTEXT_SUBSCRIPTION = 3
GENERIC_ATTRIBUTE = 3
LAST_STEP_VEHICLE_NUMBER = 16
LAST_STEP_MEAN_SPEED = 17
LAST_STEP_VEHICLE_ID_LIST = 18
LAST_STEP_OCCUPANCY = 19
LAST_STEP_VEHICLE_HALTING_NUMBER = 20
FROM_JUNCTION = 123
TO_JUNCTION = 124
INCOMING_EDGES = 123
OUTGOING_EDGES = 124
VAR_BIDI = 127
LAST_STEP_LENGTH = 21
LAST_STEP_TIME_SINCE_DETECTION = 22
LAST_STEP_VEHICLE_DATA = 23
VAR_INTERVAL_OCCUPANCY = 35
VAR_INTERVAL_SPEED = 36
VAR_INTERVAL_NUMBER = 37
VAR_INTERVAL_IDS = 38
VAR_INTERVAL_TIMELOSS = 52
VAR_LAST_INTERVAL_OCCUPANCY = 39
VAR_LAST_INTERVAL_SPEED = 40
VAR_LAST_INTERVAL_NUMBER = 41
VAR_LAST_INTERVAL_IDS = 42
JAM_LENGTH_VEHICLE = 24
JAM_LENGTH_METERS = 25
VAR_INTERVAL_MAX_JAM_LENGTH_METERS = 50
VAR_LAST_INTERVAL_MAX_JAM_LENGTH_METERS = 51
VAR_LAST_INTERVAL_TRAVELTIME = 88
VAR_LAST_INTERVAL_MEAN_HALTING_NUMBER = 32
VAR_LAST_INTERVAL_VEHICLE_NUMBER = 33
VAR_LAST_INTERVAL_TIMELOSS = 53
VAR_VIRTUAL_DETECTION = 34
LAST_STEP_PERSON_ID_LIST = 26
VAR_NAME = 27
VAR_FOLLOW_SPEED = 28
VAR_STOP_SPEED = 29
VAR_SECURE_GAP = 30
VAR_STOP_DELAY = 31
VAR_STOP_ARRIVALDELAY = 34
VAR_TIMELOSS = 140
VAR_BEGIN = 28
VAR_END = 29
VAR_VTYPES = 30
VAR_VEHSPERHOUR = 19
VAR_PASSED = 20
VAR_INSERTED = 21
VAR_REMOVED = 22
VAR_ROUTE_PROBE = 23
CMD_SET_FLOW = 24
TL_RED_YELLOW_GREEN_STATE = 32
TL_PHASE_INDEX = 34
TL_PROGRAM = 35
TL_PHASE_DURATION = 36
TL_BLOCKING_VEHICLES = 37
TL_CONTROLLED_LANES = 38
TL_CURRENT_PHASE = 40
TL_CURRENT_PROGRAM = 41
TL_RIVAL_VEHICLES = 48
TL_PRIORITY_VEHICLES = 49
TL_CONTROLLED_JUNCTIONS = 42
TL_COMPLETE_DEFINITION_RYG = 43
TL_COMPLETE_PROGRAM_RYG = 44
TL_NEXT_SWITCH = 45
TL_CONSTRAINT = 47
TL_CONSTRAINT_SWAP = 50
TL_CONSTRAINT_BYFOE = 52
TL_CONSTRAINT_REMOVE = 53
TL_CONSTRAINT_UPDATE = 54
TL_CONSTRAINT_ADD = 55
TL_SPENT_DURATION = 56
LANE_EDGE_ID = 49
LANE_ALLOWED = 52
LANE_DISALLOWED = 53
LANE_CHANGES = 60
VAR_FOES = 55
VAR_SLOPE = 54
VAR_SPEED = 64
VAR_PREV_SPEED = 60
VAR_FRICTION = 61
VAR_SPEED_LAT = 50
VAR_MAXSPEED = 65
VAR_POSITION = 66
VAR_EXIT_POSITIONS = 67
VAR_POSITION3D = 57
VAR_ANGLE = 67
VAR_LENGTH = 68
VAR_COLOR = 69
VAR_ACCEL = 70
VAR_DECEL = 71
VAR_EMERGENCY_DECEL = 123
VAR_APPARENT_DECEL = 124
VAR_ACTIONSTEPLENGTH = 125
VAR_LASTACTIONTIME = 127
VAR_TAU = 72
VAR_VEHICLECLASS = 73
VAR_EMISSIONCLASS = 74
VAR_SHAPECLASS = 75
VAR_MINGAP = 76
VAR_WIDTH = 77
VAR_SHAPE = 78
VAR_TYPE = 79
VAR_ROAD_ID = 80
VAR_LANE_ID = 81
VAR_LANE_INDEX = 82
VAR_SEGMENT_ID = 161
VAR_SEGMENT_INDEX = 162
VAR_ROUTE_ID = 83
VAR_EDGES = 84
VAR_STOP_PARAMETER = 85
VAR_LANES = 48
VAR_EXIT_LANES = 49
VAR_UPDATE_BESTLANES = 106
VAR_FILL = 85
VAR_IMAGEFILE = 147
VAR_LANEPOSITION = 86
VAR_ROUTE = 87
VAR_EDGE_TRAVELTIME = 88
VAR_EDGE_EFFORT = 89
VAR_CURRENT_TRAVELTIME = 90
VAR_SIGNALS = 91
VAR_MOVE_TO = 92
VAR_ADD_DYNAMICS = 92
VAR_HIGHLIGHT = 108
VAR_IMPERFECTION = 93
VAR_SPEED_FACTOR = 94
VAR_SPEED_DEVIATION = 95
VAR_ROUTING_MODE = 137
VAR_SPEED_WITHOUT_TRACI = 177
VAR_BEST_LANES = 178
VAR_SPEEDSETMODE = 179
MOVE_TO_XY = 180
VAR_STOPSTATE = 181
VAR_LANECHANGE_MODE = 182
VAR_ALLOWED_SPEED = 183
VAR_LANEPOSITION_LAT = 184
VAR_LATALIGNMENT = 185
VAR_MAXSPEED_LAT = 186
VAR_MINGAP_LAT = 187
VAR_HEIGHT = 188
VAR_MASS = 200
VAR_LINE = 189
VAR_VIA = 190
VAR_NEIGHBORS = 191
VAR_CO2EMISSION = 96
VAR_COEMISSION = 97
VAR_HCEMISSION = 98
VAR_PMXEMISSION = 99
VAR_NOXEMISSION = 100
VAR_FUELCONSUMPTION = 101
VAR_NOISEEMISSION = 102
VAR_PERSON_NUMBER = 103
VAR_PERSON_CAPACITY = 56
VAR_DEPARTURE = 58
VAR_DEPART_DELAY = 59
VAR_BOARDING_DURATION = 47
VAR_IMPATIENCE = 38
VAR_BUS_STOP_ID_LIST = 159
VAR_BUS_STOP_WAITING = 103
VAR_BUS_STOP_WAITING_IDS = 239
VAR_LEADER = 104
VAR_FOLLOWER = 120
VAR_ROUTE_INDEX = 105
VAR_WAITING_TIME = 122
VAR_ACCUMULATED_WAITING_TIME = 135
VAR_NEXT_TLS = 112
VAR_NEXT_STOPS = 115
VAR_NEXT_STOPS2 = 116
VAR_ACCELERATION = 114
VAR_ARRIVALPOS = 117
VAR_ARRIVALLANE = 118
VAR_ARRIVALSPEED = 119
CMD_MESSAGE = 101
VAR_TIME = 102
VAR_TIME_STEP = 112
VAR_ELECTRICITYCONSUMPTION = 113
VAR_LOADED_VEHICLES_NUMBER = 113
VAR_LOADED_VEHICLES_IDS = 114
VAR_DEPARTED_VEHICLES_NUMBER = 115
VAR_DEPARTED_VEHICLES_IDS = 116
VAR_TELEPORT_STARTING_VEHICLES_NUMBER = 117
VAR_TELEPORT_STARTING_VEHICLES_IDS = 118
VAR_TELEPORT_ENDING_VEHICLES_NUMBER = 119
VAR_TELEPORT_ENDING_VEHICLES_IDS = 120
VAR_ARRIVED_VEHICLES_NUMBER = 121
VAR_ARRIVED_VEHICLES_IDS = 122
VAR_DELTA_T = 123
VAR_NET_BOUNDING_BOX = 124
VAR_MIN_EXPECTED_VEHICLES = 125
VAR_DEPARTED_PERSONS_NUMBER = 36
VAR_DEPARTED_PERSONS_IDS = 37
VAR_ARRIVED_PERSONS_NUMBER = 38
VAR_ARRIVED_PERSONS_IDS = 39
VAR_STOP_STARTING_VEHICLES_NUMBER = 104
VAR_STOP_STARTING_VEHICLES_IDS = 105
VAR_STOP_ENDING_VEHICLES_NUMBER = 106
VAR_STOP_ENDING_VEHICLES_IDS = 107
VAR_PARKING_STARTING_VEHICLES_NUMBER = 108
VAR_PARKING_STARTING_VEHICLES_IDS = 109
VAR_PARKING_MANEUVERING_VEHICLES_NUMBER = 58
VAR_PARKING_MANEUVERING_VEHICLES_IDS = 59
VAR_PARKING_ENDING_VEHICLES_NUMBER = 110
VAR_PARKING_ENDING_VEHICLES_IDS = 111
VAR_COLLIDING_VEHICLES_NUMBER = 128
VAR_COLLIDING_VEHICLES_IDS = 129
VAR_EMERGENCYSTOPPING_VEHICLES_NUMBER = 137
VAR_EMERGENCYSTOPPING_VEHICLES_IDS = 138
VAR_SCALE = 142
CMD_CLEAR_PENDING_VEHICLES = 148
VAR_PENDING_VEHICLES = 148
VAR_OPTION = 50
CMD_SAVE_SIMSTATE = 149
CMD_LOAD_SIMSTATE = 150
VAR_COLLISIONS = 35
VAR_LOADED_LIST = 36
VAR_TELEPORTING_LIST = 37
VAR_PARAMETER = 126
VAR_PARAMETER_WITH_KEY = 62
ADD = 128
REMOVE = 129
COPY = 136
POSITION_CONVERSION = 130
DISTANCE_REQUEST = 131
VAR_DISTANCE = 132
ADD_FULL = 133
FIND_ROUTE = 134
FIND_INTERMODAL_ROUTE = 135
CMD_REROUTE_TRAVELTIME = 144
CMD_REROUTE_EFFORT = 145
VAR_ROUTE_VALID = 146
VAR_REFERENCE_DISTANCE = 149
VAR_STAGE = 192
VAR_NEXT_EDGE = 193
VAR_STAGES_REMAINING = 194
VAR_VEHICLE = 195
APPEND_STAGE = 196
REPLACE_STAGE = 205
REMOVE_STAGE = 197
VAR_TAXI_RESERVATIONS = 198
SPLIT_TAXI_RESERVATIONS = 199
VAR_SAMPLE_LAST = 32
VAR_SAMPLE_CURRENT = 33
VAR_VIEW_ZOOM = 160
VAR_VIEW_OFFSET = 161
VAR_VIEW_SCHEMA = 162
VAR_VIEW_BOUNDARY = 163
VAR_SELECT = 164
VAR_SCREENSHOT = 165
VAR_TRACK_VEHICLE = 166
VAR_HAS_VIEW = 167
VAR_CS_POWER = 151
VAR_CS_EFFICIENCY = 152
VAR_CS_CHARGE_IN_TRANSIT = 153
VAR_CS_CHARGE_DELAY = 154
VAR_ACCESS_BADGE = 155
VAR_CS_TOTAL_POWER = 156
LCA_NONE = 0
LCA_STAY = 1
LCA_LEFT = 2
LCA_RIGHT = 4
LCA_STRATEGIC = 8
LCA_COOPERATIVE = 16
LCA_SPEEDGAIN = 32
LCA_KEEPRIGHT = 64
LCA_TRACI = 128
LCA_URGENT = 256
LCA_UNKNOWN = 1073741824
LCA_BLOCKED_BY_LEFT_LEADER = 512
LCA_BLOCKED_BY_LEFT_FOLLOWER = 1024
LCA_BLOCKED_BY_RIGHT_LEADER = 2048
LCA_BLOCKED_BY_RIGHT_FOLLOWER = 4096
LCA_OVERLAPPING = 8192
LCA_INSUFFICIENT_SPACE = 16384
LCA_SUBLANE = 32768
LCA_INSUFFICIENT_SPEED = 268435456
LCA_WANTS_LANECHANGE = 6
LCA_WANTS_LANECHANGE_OR_STAY = 7
LCA_BLOCKED_LEFT = 1536
LCA_BLOCKED_RIGHT = 6144
LCA_BLOCKED_BY_LEADER = 2560
LCA_BLOCKED_BY_FOLLOWER = 5120
LCA_BLOCKED = 268459520
LCA_CHANGE_REASONS = 33016
LCA_AMBLOCKINGLEADER = 65536
LCA_AMBLOCKINGFOLLOWER = 131072
LCA_MRIGHT = 262144
LCA_MLEFT = 524288
LCA_AMBLOCKINGFOLLOWER_DONTBRAKE = 2097152
LCA_CHANGE_TO_HELP = 8388608
LCA_AMBACKBLOCKER = 67108864
LCA_AMBACKBLOCKER_STANDING = 134217728