traci.constants
index
/home/delphi/gcc/sumo/tools/traci/constants.py

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

 
Data
        ADD = 128
ADD_FULL = 133
APPEND_STAGE = 196
ARRIVALFLAG_LANE_CURRENT = -2
ARRIVALFLAG_POS_MAX = -3
ARRIVALFLAG_POS_RANDOM = -2
ARRIVALFLAG_SPEED_CURRENT = -2
AUTOMATIC_CONTEXT_SUBSCRIPTION = 3
AUTOMATIC_VARIABLES_SUBSCRIPTION = 2
CMD_ADD_SUBSCRIPTION_FILTER = 126
CMD_CHANGELANE = 19
CMD_CHANGESUBLANE = 21
CMD_CHANGETARGET = 49
CMD_CLEAR_PENDING_VEHICLES = 148
CMD_CLOSE = 127
CMD_GETVERSION = 0
CMD_GET_EDGE_VARIABLE = 170
CMD_GET_GUI_VARIABLE = 172
CMD_GET_INDUCTIONLOOP_VARIABLE = 160
CMD_GET_JUNCTION_VARIABLE = 169
CMD_GET_LANEAREA_VARIABLE = 173
CMD_GET_LANE_VARIABLE = 163
CMD_GET_MULTIENTRYEXIT_VARIABLE = 161
CMD_GET_PERSON_VARIABLE = 174
CMD_GET_POI_VARIABLE = 167
CMD_GET_POLYGON_VARIABLE = 168
CMD_GET_ROUTE_VARIABLE = 166
CMD_GET_SIM_VARIABLE = 171
CMD_GET_TL_VARIABLE = 162
CMD_GET_VEHICLETYPE_VARIABLE = 165
CMD_GET_VEHICLE_VARIABLE = 164
CMD_LOAD = 1
CMD_OPENGAP = 22
CMD_REROUTE_EFFORT = 145
CMD_REROUTE_TO_PARKING = 194
CMD_REROUTE_TRAVELTIME = 144
CMD_RESUME = 25
CMD_SAVE_SIMSTATE = 149
CMD_SETORDER = 3
CMD_SET_EDGE_VARIABLE = 202
CMD_SET_GUI_VARIABLE = 204
CMD_SET_JUNCTION_VARIABLE = 201
CMD_SET_LANE_VARIABLE = 195
CMD_SET_PERSON_VARIABLE = 206
CMD_SET_POI_VARIABLE = 199
CMD_SET_POLYGON_VARIABLE = 200
CMD_SET_ROUTE_VARIABLE = 198
CMD_SET_SIM_VARIABLE = 203
CMD_SET_TL_VARIABLE = 194
CMD_SET_VEHICLETYPE_VARIABLE = 197
CMD_SET_VEHICLE_VARIABLE = 196
CMD_SIMSTEP = 2
CMD_SLOWDOWN = 20
CMD_STOP = 18
CMD_SUBSCRIBE_EDGE_CONTEXT = 138
CMD_SUBSCRIBE_EDGE_VARIABLE = 218
CMD_SUBSCRIBE_GUI_CONTEXT = 140
CMD_SUBSCRIBE_GUI_VARIABLE = 220
CMD_SUBSCRIBE_INDUCTIONLOOP_CONTEXT = 128
CMD_SUBSCRIBE_INDUCTIONLOOP_VARIABLE = 208
CMD_SUBSCRIBE_JUNCTION_CONTEXT = 137
CMD_SUBSCRIBE_JUNCTION_VARIABLE = 217
CMD_SUBSCRIBE_LANEAREA_CONTEXT = 141
CMD_SUBSCRIBE_LANEAREA_VARIABLE = 221
CMD_SUBSCRIBE_LANE_CONTEXT = 131
CMD_SUBSCRIBE_LANE_VARIABLE = 211
CMD_SUBSCRIBE_MULTIENTRYEXIT_CONTEXT = 129
CMD_SUBSCRIBE_MULTIENTRYEXIT_VARIABLE = 209
CMD_SUBSCRIBE_PERSON_CONTEXT = 142
CMD_SUBSCRIBE_PERSON_VARIABLE = 222
CMD_SUBSCRIBE_POI_CONTEXT = 135
CMD_SUBSCRIBE_POI_VARIABLE = 215
CMD_SUBSCRIBE_POLYGON_CONTEXT = 136
CMD_SUBSCRIBE_POLYGON_VARIABLE = 216
CMD_SUBSCRIBE_ROUTE_CONTEXT = 134
CMD_SUBSCRIBE_ROUTE_VARIABLE = 214
CMD_SUBSCRIBE_SIM_CONTEXT = 139
CMD_SUBSCRIBE_SIM_VARIABLE = 219
CMD_SUBSCRIBE_TL_CONTEXT = 130
CMD_SUBSCRIBE_TL_VARIABLE = 210
CMD_SUBSCRIBE_VEHICLETYPE_CONTEXT = 133
CMD_SUBSCRIBE_VEHICLETYPE_VARIABLE = 213
CMD_SUBSCRIBE_VEHICLE_CONTEXT = 132
CMD_SUBSCRIBE_VEHICLE_VARIABLE = 212
COPY = 136
DEPARTFLAG_CONTAINER_TRIGGERED = -2
DEPARTFLAG_LANE_ALLOWED_FREE = -4
DEPARTFLAG_LANE_BEST_FREE = -5
DEPARTFLAG_LANE_FIRST_ALLOWED = -6
DEPARTFLAG_LANE_FREE = -3
DEPARTFLAG_LANE_RANDOM = -2
DEPARTFLAG_NOW = -3
DEPARTFLAG_POS_BASE = -4
DEPARTFLAG_POS_FREE = -3
DEPARTFLAG_POS_LAST = -5
DEPARTFLAG_POS_RANDOM = -2
DEPARTFLAG_POS_RANDOM_FREE = -6
DEPARTFLAG_SPEED_MAX = -3
DEPARTFLAG_SPEED_RANDOM = -2
DEPARTFLAG_TRIGGERED = -1
DISTANCE_REQUEST = 131
FILTER_TYPE_DOWNSTREAM_DIST = 3
FILTER_TYPE_LANES = 1
FILTER_TYPE_LEAD_FOLLOW = 5
FILTER_TYPE_NONE = 0
FILTER_TYPE_NOOPPOSITE = 2
FILTER_TYPE_TURN = 7
FILTER_TYPE_UPSTREAM_DIST = 4
FILTER_TYPE_VCLASS = 8
FILTER_TYPE_VTYPE = 9
FIND_INTERMODAL_ROUTE = 135
FIND_ROUTE = 134
GENERIC_ATTRIBUTE = 3
ID_COUNT = 1
INVALID_DOUBLE_VALUE = -1073741824.0
INVALID_INT_VALUE = -1073741824
JAM_LENGTH_METERS = 25
JAM_LENGTH_VEHICLE = 24
LANE_ALLOWED = 52
LANE_DISALLOWED = 53
LANE_EDGE_ID = 49
LANE_LINKS = 51
LANE_LINK_NUMBER = 48
LAST_STEP_LENGTH = 21
LAST_STEP_MEAN_SPEED = 17
LAST_STEP_OCCUPANCY = 19
LAST_STEP_PERSON_ID_LIST = 26
LAST_STEP_TIME_SINCE_DETECTION = 22
LAST_STEP_VEHICLE_DATA = 23
LAST_STEP_VEHICLE_HALTING_NUMBER = 20
LAST_STEP_VEHICLE_ID_LIST = 18
LAST_STEP_VEHICLE_NUMBER = 16
LCA_AMBACKBLOCKER = 67108864
LCA_AMBACKBLOCKER_STANDING = 134217728
LCA_AMBLOCKINGFOLLOWER = 131072
LCA_AMBLOCKINGFOLLOWER_DONTBRAKE = 2097152
LCA_AMBLOCKINGLEADER = 65536
LCA_BLOCKED = 268459520
LCA_BLOCKED_BY_FOLLOWER = 5120
LCA_BLOCKED_BY_LEADER = 2560
LCA_BLOCKED_BY_LEFT_FOLLOWER = 1024
LCA_BLOCKED_BY_LEFT_LEADER = 512
LCA_BLOCKED_BY_RIGHT_FOLLOWER = 4096
LCA_BLOCKED_BY_RIGHT_LEADER = 2048
LCA_BLOCKED_LEFT = 1536
LCA_BLOCKED_RIGHT = 6144
LCA_CHANGE_REASONS = 33016
LCA_CHANGE_TO_HELP = 8388608
LCA_COOPERATIVE = 16
LCA_INSUFFICIENT_SPACE = 16384
LCA_INSUFFICIENT_SPEED = 268435456
LCA_KEEPRIGHT = 64
LCA_LEFT = 2
LCA_MLEFT = 524288
LCA_MRIGHT = 262144
LCA_NONE = 0
LCA_OVERLAPPING = 8192
LCA_RIGHT = 4
LCA_SPEEDGAIN = 32
LCA_STAY = 1
LCA_STRATEGIC = 8
LCA_SUBLANE = 32768
LCA_TRACI = 128
LCA_UNKNOWN = 1073741824
LCA_URGENT = 256
LCA_WANTS_LANECHANGE = 6
LCA_WANTS_LANECHANGE_OR_STAY = 7
MAX_ORDER = 1073741824
MOVE_TO_XY = 180
POSITION_2D = 1
POSITION_3D = 3
POSITION_CONVERSION = 130
POSITION_LON_LAT = 0
POSITION_LON_LAT_ALT = 2
POSITION_ROADMAP = 4
REMOVE = 129
REMOVE_ARRIVED = 2
REMOVE_PARKING = 1
REMOVE_STAGE = 197
REMOVE_TELEPORT = 0
REMOVE_TELEPORT_ARRIVED = 4
REMOVE_VAPORIZED = 3
REQUEST_AIRDIST = 0
REQUEST_DRIVINGDIST = 1
RESPONSE_GET_EDGE_VARIABLE = 186
RESPONSE_GET_GUI_VARIABLE = 188
RESPONSE_GET_INDUCTIONLOOP_VARIABLE = 176
RESPONSE_GET_JUNCTION_VARIABLE = 185
RESPONSE_GET_LANEAREA_VARIABLE = 189
RESPONSE_GET_LANE_VARIABLE = 179
RESPONSE_GET_MULTIENTRYEXIT_VARIABLE = 177
RESPONSE_GET_PERSON_VARIABLE = 190
RESPONSE_GET_POI_VARIABLE = 183
RESPONSE_GET_POLYGON_VARIABLE = 184
RESPONSE_GET_ROUTE_VARIABLE = 182
RESPONSE_GET_SIM_VARIABLE = 187
RESPONSE_GET_TL_VARIABLE = 178
RESPONSE_GET_VEHICLETYPE_VARIABLE = 181
RESPONSE_GET_VEHICLE_VARIABLE = 180
RESPONSE_SUBSCRIBE_EDGE_CONTEXT = 154
RESPONSE_SUBSCRIBE_EDGE_VARIABLE = 234
RESPONSE_SUBSCRIBE_GUI_CONTEXT = 156
RESPONSE_SUBSCRIBE_GUI_VARIABLE = 236
RESPONSE_SUBSCRIBE_INDUCTIONLOOP_CONTEXT = 144
RESPONSE_SUBSCRIBE_INDUCTIONLOOP_VARIABLE = 224
RESPONSE_SUBSCRIBE_JUNCTION_CONTEXT = 153
RESPONSE_SUBSCRIBE_JUNCTION_VARIABLE = 233
RESPONSE_SUBSCRIBE_LANEAREA_CONTEXT = 157
RESPONSE_SUBSCRIBE_LANEAREA_VARIABLE = 237
RESPONSE_SUBSCRIBE_LANE_CONTEXT = 147
RESPONSE_SUBSCRIBE_LANE_VARIABLE = 227
RESPONSE_SUBSCRIBE_MULTIENTRYEXIT_CONTEXT = 145
RESPONSE_SUBSCRIBE_MULTIENTRYEXIT_VARIABLE = 225
RESPONSE_SUBSCRIBE_PERSON_CONTEXT = 158
RESPONSE_SUBSCRIBE_PERSON_VARIABLE = 238
RESPONSE_SUBSCRIBE_POI_CONTEXT = 151
RESPONSE_SUBSCRIBE_POI_VARIABLE = 231
RESPONSE_SUBSCRIBE_POLYGON_CONTEXT = 152
RESPONSE_SUBSCRIBE_POLYGON_VARIABLE = 232
RESPONSE_SUBSCRIBE_ROUTE_CONTEXT = 150
RESPONSE_SUBSCRIBE_ROUTE_VARIABLE = 230
RESPONSE_SUBSCRIBE_SIM_CONTEXT = 155
RESPONSE_SUBSCRIBE_SIM_VARIABLE = 235
RESPONSE_SUBSCRIBE_TL_CONTEXT = 146
RESPONSE_SUBSCRIBE_TL_VARIABLE = 226
RESPONSE_SUBSCRIBE_VEHICLETYPE_CONTEXT = 149
RESPONSE_SUBSCRIBE_VEHICLETYPE_VARIABLE = 229
RESPONSE_SUBSCRIBE_VEHICLE_CONTEXT = 148
RESPONSE_SUBSCRIBE_VEHICLE_VARIABLE = 228
ROUTING_MODE_AGGREGATED = 1
ROUTING_MODE_COMBINED = 3
ROUTING_MODE_DEFAULT = 0
ROUTING_MODE_EFFORT = 2
RTYPE_ERR = 255
RTYPE_NOTIMPLEMENTED = 1
RTYPE_OK = 0
STAGE_DRIVING = 3
STAGE_WAITING = 1
STAGE_WAITING_FOR_DEPART = 0
STAGE_WALKING = 2
STOP_BUS_STOP = 8
STOP_CHARGING_STATION = 32
STOP_CONTAINER_STOP = 16
STOP_CONTAINER_TRIGGERED = 4
STOP_DEFAULT = 0
STOP_PARKING = 1
STOP_PARKING_AREA = 64
STOP_TRIGGERED = 2
TL_COMPLETE_DEFINITION_RYG = 43
TL_COMPLETE_PROGRAM_RYG = 44
TL_CONTROLLED_JUNCTIONS = 42
TL_CONTROLLED_LANES = 38
TL_CONTROLLED_LINKS = 39
TL_CURRENT_PHASE = 40
TL_CURRENT_PROGRAM = 41
TL_EXTERNAL_STATE = 46
TL_NEXT_SWITCH = 45
TL_PHASE_DURATION = 36
TL_PHASE_INDEX = 34
TL_PROGRAM = 35
TL_RED_YELLOW_GREEN_STATE = 32
TRACI_ID_LIST = 0
TRACI_VERSION = 20
TYPE_BYTE = 8
TYPE_COLOR = 17
TYPE_COMPOUND = 15
TYPE_DOUBLE = 11
TYPE_DOUBLELIST = 16
TYPE_INTEGER = 9
TYPE_POLYGON = 6
TYPE_STRING = 12
TYPE_STRINGLIST = 14
TYPE_UBYTE = 7
VAR_ACCEL = 70
VAR_ACCELERATION = 114
VAR_ACCUMULATED_WAITING_TIME = 135
VAR_ACTIONSTEPLENGTH = 125
VAR_ADD_DYNAMICS = 92
VAR_ALLOWED_SPEED = 183
VAR_ANGLE = 67
VAR_APPARENT_DECEL = 124
VAR_ARRIVED_VEHICLES_IDS = 122
VAR_ARRIVED_VEHICLES_NUMBER = 121
VAR_BEST_LANES = 178
VAR_BUS_STOP_WAITING = 103
VAR_BUS_STOP_WAITING_IDS = 239
VAR_CO2EMISSION = 96
VAR_COEMISSION = 97
VAR_COLLIDING_VEHICLES_IDS = 129
VAR_COLLIDING_VEHICLES_NUMBER = 128
VAR_COLOR = 69
VAR_CURRENT_TRAVELTIME = 90
VAR_DECEL = 71
VAR_DELTA_T = 123
VAR_DEPARTED_VEHICLES_IDS = 116
VAR_DEPARTED_VEHICLES_NUMBER = 115
VAR_DISTANCE = 132
VAR_EDGES = 84
VAR_EDGE_EFFORT = 89
VAR_EDGE_TRAVELTIME = 88
VAR_ELECTRICITYCONSUMPTION = 113
VAR_EMERGENCYSTOPPING_VEHICLES_IDS = 138
VAR_EMERGENCYSTOPPING_VEHICLES_NUMBER = 137
VAR_EMERGENCY_DECEL = 123
VAR_EMISSIONCLASS = 74
VAR_FILL = 85
VAR_FOES = 55
VAR_FUELCONSUMPTION = 101
VAR_HAS_VIEW = 167
VAR_HCEMISSION = 98
VAR_HEIGHT = 188
VAR_HIGHLIGHT = 108
VAR_IMAGEFILE = 147
VAR_IMPERFECTION = 93
VAR_LANECHANGE_MODE = 182
VAR_LANEPOSITION = 86
VAR_LANEPOSITION_LAT = 184
VAR_LANE_ID = 81
VAR_LANE_INDEX = 82
VAR_LASTACTIONTIME = 127
VAR_LATALIGNMENT = 185
VAR_LEADER = 104
VAR_LENGTH = 68
VAR_LINE = 189
VAR_LOADED_VEHICLES_IDS = 114
VAR_LOADED_VEHICLES_NUMBER = 113
VAR_MAXSPEED = 65
VAR_MAXSPEED_LAT = 186
VAR_MINGAP = 76
VAR_MINGAP_LAT = 187
VAR_MIN_EXPECTED_VEHICLES = 125
VAR_MOVE_TO = 92
VAR_NAME = 27
VAR_NEIGHBORS = 191
VAR_NET_BOUNDING_BOX = 124
VAR_NEXT_EDGE = 193
VAR_NEXT_STOPS = 115
VAR_NEXT_TLS = 112
VAR_NOISEEMISSION = 102
VAR_NOXEMISSION = 100
VAR_PARAMETER = 126
VAR_PARKING_ENDING_VEHICLES_IDS = 111
VAR_PARKING_ENDING_VEHICLES_NUMBER = 110
VAR_PARKING_STARTING_VEHICLES_IDS = 109
VAR_PARKING_STARTING_VEHICLES_NUMBER = 108
VAR_PERSON_CAPACITY = 56
VAR_PERSON_NUMBER = 103
VAR_PMXEMISSION = 99
VAR_POSITION = 66
VAR_POSITION3D = 57
VAR_ROAD_ID = 80
VAR_ROUTE = 87
VAR_ROUTE_ID = 83
VAR_ROUTE_INDEX = 105
VAR_ROUTE_VALID = 146
VAR_ROUTING_MODE = 137
VAR_SCREENSHOT = 165
VAR_SHAPE = 78
VAR_SHAPECLASS = 75
VAR_SIGNALS = 91
VAR_SLOPE = 54
VAR_SPEED = 64
VAR_SPEEDSETMODE = 179
VAR_SPEED_DEVIATION = 95
VAR_SPEED_FACTOR = 94
VAR_SPEED_WITHOUT_TRACI = 177
VAR_STAGE = 192
VAR_STAGES_REMAINING = 194
VAR_STOPSTATE = 181
VAR_STOP_ENDING_VEHICLES_IDS = 107
VAR_STOP_ENDING_VEHICLES_NUMBER = 106
VAR_STOP_STARTING_VEHICLES_IDS = 105
VAR_STOP_STARTING_VEHICLES_NUMBER = 104
VAR_TAU = 72
VAR_TELEPORT_ENDING_VEHICLES_IDS = 120
VAR_TELEPORT_ENDING_VEHICLES_NUMBER = 119
VAR_TELEPORT_STARTING_VEHICLES_IDS = 118
VAR_TELEPORT_STARTING_VEHICLES_NUMBER = 117
VAR_TIME = 102
VAR_TIME_STEP = 112
VAR_TRACK_VEHICLE = 166
VAR_TYPE = 79
VAR_UPDATE_BESTLANES = 106
VAR_VEHICLE = 195
VAR_VEHICLECLASS = 73
VAR_VIA = 190
VAR_VIEW_BOUNDARY = 163
VAR_VIEW_OFFSET = 161
VAR_VIEW_SCHEMA = 162
VAR_VIEW_ZOOM = 160
VAR_WAITING_TIME = 122
VAR_WIDTH = 77