SUMO - Simulation of Urban MObility
TraCIConstants.h
Go to the documentation of this file.
1 /****************************************************************************/
17 // holds codes used for TraCI
18 /****************************************************************************/
19 // SUMO, Simulation of Urban MObility; see http://sumo.dlr.de/
20 // Copyright (C) 2007-2017 DLR (http://www.dlr.de/) and contributors
21 /****************************************************************************/
22 //
23 // This file is part of SUMO.
24 // SUMO is free software: you can redistribute it and/or modify
25 // it under the terms of the GNU General Public License as published by
26 // the Free Software Foundation, either version 3 of the License, or
27 // (at your option) any later version.
28 //
29 /****************************************************************************/
30 #ifndef TRACICONSTANTS_H
31 #define TRACICONSTANTS_H
32 
33 // ****************************************
34 // VERSION
35 // ****************************************
36 #define TRACI_VERSION 16
37 
38 // ****************************************
39 // COMMANDS
40 // ****************************************
41 // command: get version
42 #define CMD_GETVERSION 0x00
43 
44 // command: load
45 #define CMD_LOAD 0x01
46 
47 // command: simulation step
48 #define CMD_SIMSTEP 0x02
49 
50 // command: set connection priority (execution order)
51 #define CMD_SETORDER 0x03
52 
53 // command: stop node
54 #define CMD_STOP 0x12
55 
56 // command: Resume from parking
57 #define CMD_RESUME 0x19
58 
59 // command: set lane
60 #define CMD_CHANGELANE 0x13
61 
62 // command: slow down
63 #define CMD_SLOWDOWN 0x14
64 
65 // command: set sublane (vehicle)
66 #define CMD_CHANGESUBLANE 0x15
67 
68 // command: change target
69 #define CMD_CHANGETARGET 0x31
70 
71 // command: close sumo
72 #define CMD_CLOSE 0x7F
73 
74 
75 // command: subscribe induction loop (e1) context
76 #define CMD_SUBSCRIBE_INDUCTIONLOOP_CONTEXT 0x80
77 // response: subscribe induction loop (e1) context
78 #define RESPONSE_SUBSCRIBE_INDUCTIONLOOP_CONTEXT 0x90
79 // command: get induction loop (e1) variable
80 #define CMD_GET_INDUCTIONLOOP_VARIABLE 0xa0
81 // response: get induction loop (e1) variable
82 #define RESPONSE_GET_INDUCTIONLOOP_VARIABLE 0xb0
83 // command: subscribe induction loop (e1) variable
84 #define CMD_SUBSCRIBE_INDUCTIONLOOP_VARIABLE 0xd0
85 // response: subscribe induction loop (e1) variable
86 #define RESPONSE_SUBSCRIBE_INDUCTIONLOOP_VARIABLE 0xe0
87 
88 // command: subscribe multi-entry/multi-exit detector (e3) context
89 #define CMD_SUBSCRIBE_MULTIENTRYEXIT_CONTEXT 0x81
90 // response: subscribe multi-entry/multi-exit detector (e3) context
91 #define RESPONSE_SUBSCRIBE_MULTIENTRYEXIT_CONTEXT 0x91
92 // command: get multi-entry/multi-exit detector (e3) variable
93 #define CMD_GET_MULTIENTRYEXIT_VARIABLE 0xa1
94 // response: get multi-entry/multi-exit detector (e3) variable
95 #define RESPONSE_GET_MULTIENTRYEXIT_VARIABLE 0xb1
96 // command: subscribe multi-entry/multi-exit detector (e3) variable
97 #define CMD_SUBSCRIBE_MULTIENTRYEXIT_VARIABLE 0xd1
98 // response: subscribe multi-entry/multi-exit detector (e3) variable
99 #define RESPONSE_SUBSCRIBE_MULTIENTRYEXIT_VARIABLE 0xe1
100 
101 // command: subscribe traffic lights context
102 #define CMD_SUBSCRIBE_TL_CONTEXT 0x82
103 // response: subscribe traffic lights context
104 #define RESPONSE_SUBSCRIBE_TL_CONTEXT 0x92
105 // command: get traffic lights variable
106 #define CMD_GET_TL_VARIABLE 0xa2
107 // response: get traffic lights variable
108 #define RESPONSE_GET_TL_VARIABLE 0xb2
109 // command: set traffic lights variable
110 #define CMD_SET_TL_VARIABLE 0xc2
111 // command: subscribe traffic lights variable
112 #define CMD_SUBSCRIBE_TL_VARIABLE 0xd2
113 // response: subscribe traffic lights variable
114 #define RESPONSE_SUBSCRIBE_TL_VARIABLE 0xe2
115 
116 // command: subscribe lane context
117 #define CMD_SUBSCRIBE_LANE_CONTEXT 0x83
118 // response: subscribe lane context
119 #define RESPONSE_SUBSCRIBE_LANE_CONTEXT 0x93
120 // command: get lane variable
121 #define CMD_GET_LANE_VARIABLE 0xa3
122 // response: get lane variable
123 #define RESPONSE_GET_LANE_VARIABLE 0xb3
124 // command: set lane variable
125 #define CMD_SET_LANE_VARIABLE 0xc3
126 // command: subscribe lane variable
127 #define CMD_SUBSCRIBE_LANE_VARIABLE 0xd3
128 // response: subscribe lane variable
129 #define RESPONSE_SUBSCRIBE_LANE_VARIABLE 0xe3
130 
131 // command: subscribe vehicle context
132 #define CMD_SUBSCRIBE_VEHICLE_CONTEXT 0x84
133 // response: subscribe vehicle context
134 #define RESPONSE_SUBSCRIBE_VEHICLE_CONTEXT 0x94
135 // command: get vehicle variable
136 #define CMD_GET_VEHICLE_VARIABLE 0xa4
137 // response: get vehicle variable
138 #define RESPONSE_GET_VEHICLE_VARIABLE 0xb4
139 // command: set vehicle variable
140 #define CMD_SET_VEHICLE_VARIABLE 0xc4
141 // command: subscribe vehicle variable
142 #define CMD_SUBSCRIBE_VEHICLE_VARIABLE 0xd4
143 // response: subscribe vehicle variable
144 #define RESPONSE_SUBSCRIBE_VEHICLE_VARIABLE 0xe4
145 
146 // command: subscribe vehicle type context
147 #define CMD_SUBSCRIBE_VEHICLETYPE_CONTEXT 0x85
148 // response: subscribe vehicle type context
149 #define RESPONSE_SUBSCRIBE_VEHICLETYPE_CONTEXT 0x95
150 // command: get vehicle type variable
151 #define CMD_GET_VEHICLETYPE_VARIABLE 0xa5
152 // response: get vehicle type variable
153 #define RESPONSE_GET_VEHICLETYPE_VARIABLE 0xb5
154 // command: set vehicle type variable
155 #define CMD_SET_VEHICLETYPE_VARIABLE 0xc5
156 // command: subscribe vehicle type variable
157 #define CMD_SUBSCRIBE_VEHICLETYPE_VARIABLE 0xd5
158 // response: subscribe vehicle type variable
159 #define RESPONSE_SUBSCRIBE_VEHICLETYPE_VARIABLE 0xe5
160 
161 // command: subscribe route context
162 #define CMD_SUBSCRIBE_ROUTE_CONTEXT 0x86
163 // response: subscribe route context
164 #define RESPONSE_SUBSCRIBE_ROUTE_CONTEXT 0x96
165 // command: get route variable
166 #define CMD_GET_ROUTE_VARIABLE 0xa6
167 // response: get route variable
168 #define RESPONSE_GET_ROUTE_VARIABLE 0xb6
169 // command: set route variable
170 #define CMD_SET_ROUTE_VARIABLE 0xc6
171 // command: subscribe route variable
172 #define CMD_SUBSCRIBE_ROUTE_VARIABLE 0xd6
173 // response: subscribe route variable
174 #define RESPONSE_SUBSCRIBE_ROUTE_VARIABLE 0xe6
175 
176 // command: subscribe poi context
177 #define CMD_SUBSCRIBE_POI_CONTEXT 0x87
178 // response: subscribe poi context
179 #define RESPONSE_SUBSCRIBE_POI_CONTEXT 0x97
180 // command: get poi variable
181 #define CMD_GET_POI_VARIABLE 0xa7
182 // response: get poi variable
183 #define RESPONSE_GET_POI_VARIABLE 0xb7
184 // command: set poi variable
185 #define CMD_SET_POI_VARIABLE 0xc7
186 // command: subscribe poi variable
187 #define CMD_SUBSCRIBE_POI_VARIABLE 0xd7
188 // response: subscribe poi variable
189 #define RESPONSE_SUBSCRIBE_POI_VARIABLE 0xe7
190 
191 // command: subscribe polygon context
192 #define CMD_SUBSCRIBE_POLYGON_CONTEXT 0x88
193 // response: subscribe polygon context
194 #define RESPONSE_SUBSCRIBE_POLYGON_CONTEXT 0x98
195 // command: get polygon variable
196 #define CMD_GET_POLYGON_VARIABLE 0xa8
197 // response: get polygon variable
198 #define RESPONSE_GET_POLYGON_VARIABLE 0xb8
199 // command: set polygon variable
200 #define CMD_SET_POLYGON_VARIABLE 0xc8
201 // command: subscribe polygon variable
202 #define CMD_SUBSCRIBE_POLYGON_VARIABLE 0xd8
203 // response: subscribe polygon variable
204 #define RESPONSE_SUBSCRIBE_POLYGON_VARIABLE 0xe8
205 
206 // command: subscribe junction context
207 #define CMD_SUBSCRIBE_JUNCTION_CONTEXT 0x89
208 // response: subscribe junction context
209 #define RESPONSE_SUBSCRIBE_JUNCTION_CONTEXT 0x99
210 // command: get junction variable
211 #define CMD_GET_JUNCTION_VARIABLE 0xa9
212 // response: get junction variable
213 #define RESPONSE_GET_JUNCTION_VARIABLE 0xb9
214 // command: set junction variable
215 #define CMD_SET_JUNCTION_VARIABLE 0xc9
216 // command: subscribe junction variable
217 #define CMD_SUBSCRIBE_JUNCTION_VARIABLE 0xd9
218 // response: subscribe junction variable
219 #define RESPONSE_SUBSCRIBE_JUNCTION_VARIABLE 0xe9
220 
221 // command: subscribe edge context
222 #define CMD_SUBSCRIBE_EDGE_CONTEXT 0x8a
223 // response: subscribe edge context
224 #define RESPONSE_SUBSCRIBE_EDGE_CONTEXT 0x9a
225 // command: get edge variable
226 #define CMD_GET_EDGE_VARIABLE 0xaa
227 // response: get edge variable
228 #define RESPONSE_GET_EDGE_VARIABLE 0xba
229 // command: set edge variable
230 #define CMD_SET_EDGE_VARIABLE 0xca
231 // command: subscribe edge variable
232 #define CMD_SUBSCRIBE_EDGE_VARIABLE 0xda
233 // response: subscribe edge variable
234 #define RESPONSE_SUBSCRIBE_EDGE_VARIABLE 0xea
235 
236 // command: subscribe simulation context
237 #define CMD_SUBSCRIBE_SIM_CONTEXT 0x8b
238 // response: subscribe simulation context
239 #define RESPONSE_SUBSCRIBE_SIM_CONTEXT 0x9b
240 // command: get simulation variable
241 #define CMD_GET_SIM_VARIABLE 0xab
242 // response: get simulation variable
243 #define RESPONSE_GET_SIM_VARIABLE 0xbb
244 // command: set simulation variable
245 #define CMD_SET_SIM_VARIABLE 0xcb
246 // command: subscribe simulation variable
247 #define CMD_SUBSCRIBE_SIM_VARIABLE 0xdb
248 // response: subscribe simulation variable
249 #define RESPONSE_SUBSCRIBE_SIM_VARIABLE 0xeb
250 
251 // command: subscribe GUI context
252 #define CMD_SUBSCRIBE_GUI_CONTEXT 0x8c
253 // response: subscribe GUI context
254 #define RESPONSE_SUBSCRIBE_GUI_CONTEXT 0x9c
255 // command: get GUI variable
256 #define CMD_GET_GUI_VARIABLE 0xac
257 // response: get GUI variable
258 #define RESPONSE_GET_GUI_VARIABLE 0xbc
259 // command: set GUI variable
260 #define CMD_SET_GUI_VARIABLE 0xcc
261 // command: subscribe GUI variable
262 #define CMD_SUBSCRIBE_GUI_VARIABLE 0xdc
263 // response: subscribe GUI variable
264 #define RESPONSE_SUBSCRIBE_GUI_VARIABLE 0xec
265 
266 // command: subscribe areal detector (e2) context
267 #define CMD_SUBSCRIBE_LANEAREA_CONTEXT 0x8d
268 // response: subscribe areal detector (e2) context
269 #define RESPONSE_SUBSCRIBE_LANEAREA_CONTEXT 0x9d
270 // command: get areal detector (e2) variable
271 #define CMD_GET_LANEAREA_VARIABLE 0xad
272 // response: get areal detector (e2) variable
273 #define RESPONSE_GET_LANEAREA_VARIABLE 0xbd
274 // command: subscribe areal detector (e2) variable
275 #define CMD_SUBSCRIBE_LANEAREA_VARIABLE 0xdd
276 // response: subscribe areal detector (e2) variable
277 #define RESPONSE_SUBSCRIBE_LANEAREA_VARIABLE 0xed
278 
279 // command: subscribe person context
280 #define CMD_SUBSCRIBE_PERSON_CONTEXT 0x8e
281 // response: subscribe person context
282 #define RESPONSE_SUBSCRIBE_PERSON_CONTEXT 0x9e
283 // command: get person variable
284 #define CMD_GET_PERSON_VARIABLE 0xae
285 // response: get person variable
286 #define RESPONSE_GET_PERSON_VARIABLE 0xbe
287 // command: set person variable
288 #define CMD_SET_PERSON_VARIABLE 0xce
289 // command: subscribe person variable
290 #define CMD_SUBSCRIBE_PERSON_VARIABLE 0xde
291 // response: subscribe person variable
292 #define RESPONSE_SUBSCRIBE_PERSON_VARIABLE 0xee
293 
294 
295 // ****************************************
296 // POSITION REPRESENTATIONS
297 // ****************************************
298 // Position in geo-coordinates
299 #define POSITION_LON_LAT 0x00
300 // 2D cartesian coordinates
301 #define POSITION_2D 0x01
302 // Position in geo-coordinates with altitude
303 #define POSITION_LON_LAT_ALT 0x02
304 // 3D cartesian coordinates
305 #define POSITION_3D 0x03
306 // Position on road map
307 #define POSITION_ROADMAP 0x04
308 
309 
310 // ****************************************
311 // DATA TYPES
312 // ****************************************
313 // Boundary Box (4 doubles)
314 #define TYPE_BOUNDINGBOX 0x05
315 // Polygon (2*n doubles)
316 #define TYPE_POLYGON 0x06
317 // unsigned byte
318 #define TYPE_UBYTE 0x07
319 // signed byte
320 #define TYPE_BYTE 0x08
321 // 32 bit signed integer
322 #define TYPE_INTEGER 0x09
323 // float
324 #define TYPE_FLOAT 0x0A
325 // double
326 #define TYPE_DOUBLE 0x0B
327 // 8 bit ASCII string
328 #define TYPE_STRING 0x0C
329 // list of traffic light phases
330 #define TYPE_TLPHASELIST 0x0D
331 // list of strings
332 #define TYPE_STRINGLIST 0x0E
333 // compound object
334 #define TYPE_COMPOUND 0x0F
335 // color (four ubytes)
336 #define TYPE_COLOR 0x11
337 
338 
339 // ****************************************
340 // RESULT TYPES
341 // ****************************************
342 // result type: Ok
343 #define RTYPE_OK 0x00
344 // result type: not implemented
345 #define RTYPE_NOTIMPLEMENTED 0x01
346 // result type: error
347 #define RTYPE_ERR 0xFF
348 
349 // return value for invalid queries (especially vehicle is not on the road)
350 #define INVALID_DOUBLE_VALUE -1001.
351 // return value for invalid queries (especially vehicle is not on the road)
352 #define INVALID_INT_VALUE -1
353 // maximum value for client ordering (2 ^ 30 - 1)
354 #define MAX_ORDER 1073741823
355 
356 // ****************************************
357 // TRAFFIC LIGHT PHASES
358 // ****************************************
359 // red phase
360 #define TLPHASE_RED 0x01
361 // yellow phase
362 #define TLPHASE_YELLOW 0x02
363 // green phase
364 #define TLPHASE_GREEN 0x03
365 // tl is blinking
366 #define TLPHASE_BLINKING 0x04
367 // tl is off and not blinking
368 #define TLPHASE_NOSIGNAL 0x05
369 
370 
371 // ****************************************
372 // DIFFERENT DISTANCE REQUESTS
373 // ****************************************
374 // air distance
375 #define REQUEST_AIRDIST 0x00
376 // driving distance
377 #define REQUEST_DRIVINGDIST 0x01
378 
379 
380 // ****************************************
381 // VEHICLE REMOVAL REASONS
382 // ****************************************
383 // vehicle started teleport
384 #define REMOVE_TELEPORT 0x00
385 // vehicle removed while parking
386 #define REMOVE_PARKING 0x01
387 // vehicle arrived
388 #define REMOVE_ARRIVED 0x02
389 // vehicle was vaporized
390 #define REMOVE_VAPORIZED 0x03
391 // vehicle finished route during teleport
392 #define REMOVE_TELEPORT_ARRIVED 0x04
393 
394 // ****************************************
395 // PERSON/CONTAINER STAGES
396 // ****************************************
397 // person / container stopping
398 #define STAGE_WAITING_FOR_DEPART 0x00
399 // person / container stopping
400 #define STAGE_WAITING 0x01
401 // person walking / container transhiping
402 #define STAGE_WALKING 0x02
403 // person riding / container being transported
404 #define STAGE_DRIVING 0x03
405 
406 // ****************************************
407 // Stop Flags
408 // ****************************************
409 #define STOP_DEFAULT 0x00
410 #define STOP_PARKING 0x01
411 #define STOP_TRIGGERED 0x02
412 #define STOP_CONTAINER_TRIGGERED 0x04
413 #define STOP_BUS_STOP 0x08
414 #define STOP_CONTAINER_STOP 0x10
415 #define STOP_CHARGING_STATION 0x20
416 #define STOP_PARKING_AREA 0x40
417 
418 // ****************************************
419 // Departure Flags
420 // ****************************************
421 #define DEPARTFLAG_TRIGGERED -0x01
422 #define DEPARTFLAG_CONTAINER_TRIGGERED -0x02
423 #define DEPARTFLAG_NOW -0x03
424 
425 #define DEPARTFLAG_SPEED_RANDOM -0x02
426 #define DEPARTFLAG_SPEED_MAX -0x03
427 
428 #define DEPARTFLAG_LANE_RANDOM -0x02
429 #define DEPARTFLAG_LANE_FREE -0x03
430 #define DEPARTFLAG_LANE_ALLOWED_FREE -0x04
431 #define DEPARTFLAG_LANE_BEST_FREE -0x05
432 #define DEPARTFLAG_LANE_FIRST_ALLOWED -0x06
433 
434 // ****************************************
435 // Routing modes
436 // ****************************************
437 // use custom weights if available, fall back to loaded weights and then to free-flow speed
438 #define ROUTING_MODE_DEFAULT 0x00
439 // use aggregated travel times from device.rerouting
440 #define ROUTING_MODE_AGGREGATED 0x01
441 
442 // ****************************************
443 // VARIABLE TYPES (for CMD_GET_*_VARIABLE)
444 // ****************************************
445 // list of instances' ids (get: all)
446 #define ID_LIST 0x00
447 
448 // count of instances (get: all)
449 #define ID_COUNT 0x01
450 
451 // subscribe object variables (get: all)
452 #define AUTOMATIC_VARIABLES_SUBSCRIPTION 0x02
453 
454 // subscribe context variables (get: all)
455 #define AUTOMATIC_CONTEXT_SUBSCRIPTION 0x03
456 
457 // generic attributes (get/set: all)
458 #define GENERIC_ATTRIBUTE 0x03
459 
460 // last step vehicle number (get: induction loops, multi-entry/multi-exit detector, lanes, edges)
461 #define LAST_STEP_VEHICLE_NUMBER 0x10
462 
463 // last step vehicle number (get: induction loops, multi-entry/multi-exit detector, lanes, edges)
464 #define LAST_STEP_MEAN_SPEED 0x11
465 
466 // last step vehicle list (get: induction loops, multi-entry/multi-exit detector, lanes, edges)
467 #define LAST_STEP_VEHICLE_ID_LIST 0x12
468 
469 // last step occupancy (get: induction loops, lanes, edges)
470 #define LAST_STEP_OCCUPANCY 0x13
471 
472 // last step vehicle halting number (get: multi-entry/multi-exit detector, lanes, edges)
473 #define LAST_STEP_VEHICLE_HALTING_NUMBER 0x14
474 
475 // last step mean vehicle length (get: induction loops, lanes, edges)
476 #define LAST_STEP_LENGTH 0x15
477 
478 // last step time since last detection (get: induction loops)
479 #define LAST_STEP_TIME_SINCE_DETECTION 0x16
480 
481 // entry times
482 #define LAST_STEP_VEHICLE_DATA 0x17
483 
484 // last step jam length in vehicles
485 #define JAM_LENGTH_VEHICLE 0x18
486 
487 // last step jam length in meters
488 #define JAM_LENGTH_METERS 0x19
489 
490 // last step person list (get: edges)
491 #define LAST_STEP_PERSON_ID_LIST 0x1a
492 
493 
494 // traffic light states, encoded as rRgGyYoO tuple (get: traffic lights)
495 #define TL_RED_YELLOW_GREEN_STATE 0x20
496 
497 // index of the phase (set: traffic lights)
498 #define TL_PHASE_INDEX 0x22
499 
500 // traffic light program (set: traffic lights)
501 #define TL_PROGRAM 0x23
502 
503 // phase duration (set: traffic lights)
504 #define TL_PHASE_DURATION 0x24
505 
506 // controlled lanes (get: traffic lights)
507 #define TL_CONTROLLED_LANES 0x26
508 
509 // controlled links (get: traffic lights)
510 #define TL_CONTROLLED_LINKS 0x27
511 
512 // index of the current phase (get: traffic lights)
513 #define TL_CURRENT_PHASE 0x28
514 
515 // name of the current program (get: traffic lights)
516 #define TL_CURRENT_PROGRAM 0x29
517 
518 // controlled junctions (get: traffic lights)
519 #define TL_CONTROLLED_JUNCTIONS 0x2a
520 
521 // complete definition (get: traffic lights)
522 #define TL_COMPLETE_DEFINITION_RYG 0x2b
523 
524 // complete program (set: traffic lights)
525 #define TL_COMPLETE_PROGRAM_RYG 0x2c
526 
527 // assumed time to next switch (get: traffic lights)
528 #define TL_NEXT_SWITCH 0x2d
529 
530 // current state, using external signal names (get: traffic lights)
531 #define TL_EXTERNAL_STATE 0x2e
532 
533 // outgoing link number (get: lanes)
534 #define LANE_LINK_NUMBER 0x30
535 
536 // id of parent edge (get: lanes)
537 #define LANE_EDGE_ID 0x31
538 
539 // outgoing link definitions (get: lanes)
540 #define LANE_LINKS 0x33
541 
542 // list of allowed vehicle classes (get&set: lanes)
543 #define LANE_ALLOWED 0x34
544 
545 // list of not allowed vehicle classes (get&set: lanes)
546 #define LANE_DISALLOWED 0x35
547 
548 // slope (get: edge, lane, vehicle, person)
549 #define VAR_SLOPE 0x36
550 
551 // speed (get: vehicle)
552 #define VAR_SPEED 0x40
553 
554 // maximum allowed/possible speed (get: vehicle types, lanes, set: edges, lanes)
555 #define VAR_MAXSPEED 0x41
556 
557 // position (2D) (get: vehicle, poi, inductionloop, areadetector; set: poi)
558 #define VAR_POSITION 0x42
559 
560 // position (3D) (get: vehicle, poi, set: poi)
561 #define VAR_POSITION3D 0x39
562 
563 // angle (get: vehicle)
564 #define VAR_ANGLE 0x43
565 
566 // angle (get: vehicle types, lanes, arealdetector, set: lanes)
567 #define VAR_LENGTH 0x44
568 
569 // color (get: vehicles, vehicle types, polygons, pois)
570 #define VAR_COLOR 0x45
571 
572 // max. acceleration (get: vehicles, vehicle types)
573 #define VAR_ACCEL 0x46
574 
575 // max. comfortable deceleration (get: vehicles, vehicle types)
576 #define VAR_DECEL 0x47
577 
578 // max. (physically possible) deceleration (get: vehicles, vehicle types)
579 #define VAR_EMERGENCY_DECEL 0x7b
580 
581 // apparent deceleration (get: vehicles, vehicle types)
582 #define VAR_APPARENT_DECEL 0x7c
583 
584 // driver's desired headway (get: vehicle types)
585 #define VAR_TAU 0x48
586 
587 // vehicle class (get: vehicle types)
588 #define VAR_VEHICLECLASS 0x49
589 
590 // emission class (get: vehicle types)
591 #define VAR_EMISSIONCLASS 0x4a
592 
593 // shape class (get: vehicle types)
594 #define VAR_SHAPECLASS 0x4b
595 
596 // minimum gap (get: vehicle types)
597 #define VAR_MINGAP 0x4c
598 
599 // width (get: vehicle types, lanes)
600 #define VAR_WIDTH 0x4d
601 
602 // shape (get: polygons)
603 #define VAR_SHAPE 0x4e
604 
605 // type id (get: vehicles, polygons, pois)
606 #define VAR_TYPE 0x4f
607 
608 // road id (get: vehicles)
609 #define VAR_ROAD_ID 0x50
610 
611 // lane id (get: vehicles, inductionloop, arealdetector)
612 #define VAR_LANE_ID 0x51
613 
614 // lane index (get: vehicles)
615 #define VAR_LANE_INDEX 0x52
616 
617 // route id (get & set: vehicles)
618 #define VAR_ROUTE_ID 0x53
619 
620 // edges (get: routes, vehicles)
621 #define VAR_EDGES 0x54
622 
623 // filled? (get: polygons)
624 #define VAR_FILL 0x55
625 
626 // position (1D along lane) (get: vehicle)
627 #define VAR_LANEPOSITION 0x56
628 
629 // route (set: vehicles)
630 #define VAR_ROUTE 0x57
631 
632 // travel time information (get&set: vehicle)
633 #define VAR_EDGE_TRAVELTIME 0x58
634 
635 // effort information (get&set: vehicle)
636 #define VAR_EDGE_EFFORT 0x59
637 
638 // last step travel time (get: edge, lane)
639 #define VAR_CURRENT_TRAVELTIME 0x5a
640 
641 // signals state (get/set: vehicle)
642 #define VAR_SIGNALS 0x5b
643 
644 // new lane/position along (set: vehicle)
645 #define VAR_MOVE_TO 0x5c
646 
647 // driver imperfection (set: vehicle)
648 #define VAR_IMPERFECTION 0x5d
649 
650 // speed factor (set: vehicle)
651 #define VAR_SPEED_FACTOR 0x5e
652 
653 // speed deviation (set: vehicle)
654 #define VAR_SPEED_DEVIATION 0x5f
655 
656 // routing mode (get/set: vehicle)
657 #define VAR_ROUTING_MODE 0x89
658 
659 // speed without TraCI influence (get: vehicle)
660 #define VAR_SPEED_WITHOUT_TRACI 0xb1
661 
662 // best lanes (get: vehicle)
663 #define VAR_BEST_LANES 0xb2
664 
665 // how speed is set (set: vehicle)
666 #define VAR_SPEEDSETMODE 0xb3
667 
668 // move vehicle, VTD version (set: vehicle)
669 #define MOVE_TO_XY 0xb4
670 
671 // is the vehicle stopped, and if so parked and/or triggered?
672 // value = stopped + 2 * parking + 4 * triggered
673 #define VAR_STOPSTATE 0xb5
674 
675 // how lane changing is performed (get/set: vehicle)
676 #define VAR_LANECHANGE_MODE 0xb6
677 
678 // maximum speed regarding max speed on the current lane and speed factor (get: vehicle)
679 #define VAR_ALLOWED_SPEED 0xb7
680 
681 // position (1D lateral position relative to center of the current lane) (get: vehicle)
682 #define VAR_LANEPOSITION_LAT 0xb8
683 
684 // get/set prefered lateral alignment within the lane (vehicle)
685 #define VAR_LATALIGNMENT 0xb9
686 
687 // get/set maximum lateral speed (vehicle, vtypes)
688 #define VAR_MAXSPEED_LAT 0xba
689 
690 // get/set minimum lateral gap (vehicle, vtypes)
691 #define VAR_MINGAP_LAT 0xbb
692 
693 // get/set vehicle height (vehicle, vtypes)
694 #define VAR_HEIGHT 0xbc
695 
696 // get/set vehicle line
697 #define VAR_LINE 0xbd
698 
699 // get/set vehicle via
700 #define VAR_VIA 0xbe
701 
702 // current CO2 emission of a node (get: vehicle, lane, edge)
703 #define VAR_CO2EMISSION 0x60
704 
705 // current CO emission of a node (get: vehicle, lane, edge)
706 #define VAR_COEMISSION 0x61
707 
708 // current HC emission of a node (get: vehicle, lane, edge)
709 #define VAR_HCEMISSION 0x62
710 
711 // current PMx emission of a node (get: vehicle, lane, edge)
712 #define VAR_PMXEMISSION 0x63
713 
714 // current NOx emission of a node (get: vehicle, lane, edge)
715 #define VAR_NOXEMISSION 0x64
716 
717 // current fuel consumption of a node (get: vehicle, lane, edge)
718 #define VAR_FUELCONSUMPTION 0x65
719 
720 // current noise emission of a node (get: vehicle, lane, edge)
721 #define VAR_NOISEEMISSION 0x66
722 
723 // current person number (get: vehicle)
724 #define VAR_PERSON_NUMBER 0x67
725 
726 // number of persons waiting at a defined bus stop (get: simulation)
727 #define VAR_BUS_STOP_WAITING 0x67
728 
729 // current leader together with gap (get: vehicle)
730 #define VAR_LEADER 0x68
731 
732 // edge index in current route (get: vehicle)
733 #define VAR_ROUTE_INDEX 0x69
734 
735 // current waiting time (get: vehicle, lane)
736 #define VAR_WAITING_TIME 0x7a
737 
738 // current waiting time (get: vehicle)
739 #define VAR_ACCUMULATED_WAITING_TIME 0x87
740 
741 // upcoming traffic lights (get: vehicle)
742 #define VAR_NEXT_TLS 0x70
743 
744 // current time step (get: simulation)
745 #define VAR_TIME_STEP 0x70
746 
747 // current electricity consumption of a node (get: vehicle, lane, edge)
748 #define VAR_ELECTRICITYCONSUMPTION 0x71
749 
750 // number of loaded vehicles (get: simulation)
751 #define VAR_LOADED_VEHICLES_NUMBER 0x71
752 
753 // loaded vehicle ids (get: simulation)
754 #define VAR_LOADED_VEHICLES_IDS 0x72
755 
756 // number of departed vehicle (get: simulation)
757 #define VAR_DEPARTED_VEHICLES_NUMBER 0x73
758 
759 // departed vehicle ids (get: simulation)
760 #define VAR_DEPARTED_VEHICLES_IDS 0x74
761 
762 // number of vehicles starting to teleport (get: simulation)
763 #define VAR_TELEPORT_STARTING_VEHICLES_NUMBER 0x75
764 
765 // ids of vehicles starting to teleport (get: simulation)
766 #define VAR_TELEPORT_STARTING_VEHICLES_IDS 0x76
767 
768 // number of vehicles ending to teleport (get: simulation)
769 #define VAR_TELEPORT_ENDING_VEHICLES_NUMBER 0x77
770 
771 // ids of vehicles ending to teleport (get: simulation)
772 #define VAR_TELEPORT_ENDING_VEHICLES_IDS 0x78
773 
774 // number of arrived vehicles (get: simulation)
775 #define VAR_ARRIVED_VEHICLES_NUMBER 0x79
776 
777 // ids of arrived vehicles (get: simulation)
778 #define VAR_ARRIVED_VEHICLES_IDS 0x7a
779 
780 // delta t (get: simulation)
781 #define VAR_DELTA_T 0x7b
782 
783 // bounding box (get: simulation)
784 #define VAR_NET_BOUNDING_BOX 0x7c
785 
786 // minimum number of expected vehicles (get: simulation)
787 #define VAR_MIN_EXPECTED_VEHICLES 0x7d
788 
789 // number of vehicles starting to park (get: simulation)
790 #define VAR_STOP_STARTING_VEHICLES_NUMBER 0x68
791 
792 // ids of vehicles starting to park (get: simulation)
793 #define VAR_STOP_STARTING_VEHICLES_IDS 0x69
794 
795 // number of vehicles ending to park (get: simulation)
796 #define VAR_STOP_ENDING_VEHICLES_NUMBER 0x6a
797 
798 // ids of vehicles ending to park (get: simulation)
799 #define VAR_STOP_ENDING_VEHICLES_IDS 0x6b
800 
801 // number of vehicles starting to park (get: simulation)
802 #define VAR_PARKING_STARTING_VEHICLES_NUMBER 0x6c
803 
804 // ids of vehicles starting to park (get: simulation)
805 #define VAR_PARKING_STARTING_VEHICLES_IDS 0x6d
806 
807 // number of vehicles ending to park (get: simulation)
808 #define VAR_PARKING_ENDING_VEHICLES_NUMBER 0x6e
809 
810 // ids of vehicles ending to park (get: simulation)
811 #define VAR_PARKING_ENDING_VEHICLES_IDS 0x6f
812 
813 // clears the simulation of all not inserted vehicles (set: simulation)
814 #define CMD_CLEAR_PENDING_VEHICLES 0x94
815 
816 // triggers saving simulation state (set: simulation)
817 #define CMD_SAVE_SIMSTATE 0x95
818 
819 // sets/retrieves abstract parameter
820 #define VAR_PARAMETER 0x7e
821 
822 
823 // add an instance (poi, polygon, vehicle, person, route)
824 #define ADD 0x80
825 
826 // remove an instance (poi, polygon, vehicle, person)
827 #define REMOVE 0x81
828 
829 // copy an instance (vehicle type, other TBD.)
830 #define COPY 0x88
831 
832 // convert coordinates
833 #define POSITION_CONVERSION 0x82
834 
835 // distance between points or vehicles
836 #define DISTANCE_REQUEST 0x83
837 
838 // the current driving distance
839 #define VAR_DISTANCE 0x84
840 
841 // add a fully specified instance (vehicle)
842 #define ADD_FULL 0x85
843 
844 // force rerouting based on travel time (vehicles)
845 #define CMD_REROUTE_TRAVELTIME 0x90
846 
847 // force rerouting based on effort (vehicles)
848 #define CMD_REROUTE_EFFORT 0x91
849 
850 // validates current route (vehicles)
851 #define VAR_ROUTE_VALID 0x92
852 
853 // retrieve information regarding the current person/container stage
854 #define VAR_STAGE 0xc0
855 
856 // retrieve information regarding the next edge including crossings and walkingAreas (pedestrians only)
857 #define VAR_NEXT_EDGE 0xc1
858 
859 // retrieve information regarding the number of remaining stages
860 #define VAR_STAGES_REMAINING 0xc2
861 
862 // retrieve the current vehicle id for the driving stage (person, container)
863 #define VAR_VEHICLE 0xc3
864 
865 // append a person stage (person)
866 #define APPEND_STAGE 0xc4
867 
868 // append a person stage (person)
869 #define REMOVE_STAGE 0xc5
870 
871 // zoom
872 #define VAR_VIEW_ZOOM 0xa0
873 
874 // view position
875 #define VAR_VIEW_OFFSET 0xa1
876 
877 // view schema
878 #define VAR_VIEW_SCHEMA 0xa2
879 
880 // view by boundary
881 #define VAR_VIEW_BOUNDARY 0xa3
882 
883 // screenshot
884 #define VAR_SCREENSHOT 0xa5
885 
886 // track vehicle
887 #define VAR_TRACK_VEHICLE 0xa6
888 
889 
890 #endif