SUMO - Simulation of Urban MObility
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
TraCIConstants.h
Go to the documentation of this file.
1
/****************************************************************************/
18
/****************************************************************************/
19
// SUMO, Simulation of Urban MObility; see http://sumo-sim.org/
20
// Copyright (C) 2007-2014 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
// ****************************************
35
// VERSION
36
// ****************************************
37
#define TRACI_VERSION 8
38
39
40
// ****************************************
41
// COMMANDS
42
// ****************************************
43
// command: get version
44
#define CMD_GETVERSION 0x00
45
46
// command: simulation step
47
#define CMD_SIMSTEP2 0x02
48
49
// command: stop node
50
#define CMD_STOP 0x12
51
52
// command: Resume from parking
53
#define CMD_RESUME 0x19
54
55
// command: set lane
56
#define CMD_CHANGELANE 0x13
57
58
// command: slow down
59
#define CMD_SLOWDOWN 0x14
60
61
// command: change target
62
#define CMD_CHANGETARGET 0x31
63
64
// command: close sumo
65
#define CMD_CLOSE 0x7F
66
67
68
// command: subscribe induction loop (e1) context
69
#define CMD_SUBSCRIBE_INDUCTIONLOOP_CONTEXT 0x80
70
// response: subscribe induction loop (e1) context
71
#define RESPONSE_SUBSCRIBE_INDUCTIONLOOP_CONTEXT 0x90
72
// command: get induction loop (e1) variable
73
#define CMD_GET_INDUCTIONLOOP_VARIABLE 0xa0
74
// response: get induction loop (e1) variable
75
#define RESPONSE_GET_INDUCTIONLOOP_VARIABLE 0xb0
76
// command: subscribe induction loop (e1) variable
77
#define CMD_SUBSCRIBE_INDUCTIONLOOP_VARIABLE 0xd0
78
// response: subscribe induction loop (e1) variable
79
#define RESPONSE_SUBSCRIBE_INDUCTIONLOOP_VARIABLE 0xe0
80
81
82
// command: subscribe areal detector (e2) context
83
#define CMD_SUBSCRIBE_AREAL_DETECTOR_CONTEXT 0x8D
84
// response: subscribe areal detector (e2) context
85
#define RESPONSE_SUBSCRIBE_AREAL_DETECTOR_CONTEXT 0x9D
86
// command: get areal detector (e2) variable
87
#define CMD_GET_AREAL_DETECTOR_VARIABLE 0x8E
88
// response: get areal detector (e2) variable
89
#define RESPONSE_GET_AREAL_DETECTOR_VARIABLE 0x9E
90
// command: subscribe areal detector (e2) variable
91
#define CMD_SUBSCRIBE_AREAL_DETECTOR_VARIABLE 0x8F
92
// response: subscribe areal detector (e2) variable
93
#define RESPONSE_SUBSCRIBE_AREAL_DETECTOR_VARIABLE 0x9F
94
95
96
// command: subscribe multi-entry/multi-exit detector (e3) context
97
#define CMD_SUBSCRIBE_MULTI_ENTRY_EXIT_DETECTOR_CONTEXT 0x81
98
// response: subscribe multi-entry/multi-exit detector (e3) context
99
#define RESPONSE_SUBSCRIBE_MULTI_ENTRY_EXIT_DETECTOR_CONTEXT 0x91
100
// command: get multi-entry/multi-exit detector (e3) variable
101
#define CMD_GET_MULTI_ENTRY_EXIT_DETECTOR_VARIABLE 0xa1
102
// response: get multi-entry/multi-exit detector (e3) variable
103
#define RESPONSE_GET_MULTI_ENTRY_EXIT_DETECTOR_VARIABLE 0xb1
104
// command: subscribe multi-entry/multi-exit detector (e3) variable
105
#define CMD_SUBSCRIBE_MULTI_ENTRY_EXIT_DETECTOR_VARIABLE 0xd1
106
// response: subscribe multi-entry/multi-exit detector (e3) variable
107
#define RESPONSE_SUBSCRIBE_MULTI_ENTRY_EXIT_DETECTOR_VARIABLE 0xe1
108
109
110
// command: subscribe traffic lights context
111
#define CMD_SUBSCRIBE_TL_CONTEXT 0x82
112
// response: subscribe traffic lights context
113
#define RESPONSE_SUBSCRIBE_TL_CONTEXT 0x92
114
// command: get traffic lights variable
115
#define CMD_GET_TL_VARIABLE 0xa2
116
// response: get traffic lights variable
117
#define RESPONSE_GET_TL_VARIABLE 0xb2
118
// command: set traffic lights variable
119
#define CMD_SET_TL_VARIABLE 0xc2
120
// command: subscribe traffic lights variable
121
#define CMD_SUBSCRIBE_TL_VARIABLE 0xd2
122
// response: subscribe traffic lights variable
123
#define RESPONSE_SUBSCRIBE_TL_VARIABLE 0xe2
124
125
// command: subscribe lane context
126
#define CMD_SUBSCRIBE_LANE_CONTEXT 0x83
127
// response: subscribe lane context
128
#define RESPONSE_SUBSCRIBE_LANE_CONTEXT 0x93
129
// command: get lane variable
130
#define CMD_GET_LANE_VARIABLE 0xa3
131
// response: get lane variable
132
#define RESPONSE_GET_LANE_VARIABLE 0xb3
133
// command: set lane variable
134
#define CMD_SET_LANE_VARIABLE 0xc3
135
// command: subscribe lane variable
136
#define CMD_SUBSCRIBE_LANE_VARIABLE 0xd3
137
// response: subscribe lane variable
138
#define RESPONSE_SUBSCRIBE_LANE_VARIABLE 0xe3
139
140
// command: subscribe vehicle context
141
#define CMD_SUBSCRIBE_VEHICLE_CONTEXT 0x84
142
// response: subscribe vehicle context
143
#define RESPONSE_SUBSCRIBE_VEHICLE_CONTEXT 0x94
144
// command: get vehicle variable
145
#define CMD_GET_VEHICLE_VARIABLE 0xa4
146
// response: get vehicle variable
147
#define RESPONSE_GET_VEHICLE_VARIABLE 0xb4
148
// command: set vehicle variable
149
#define CMD_SET_VEHICLE_VARIABLE 0xc4
150
// command: subscribe vehicle variable
151
#define CMD_SUBSCRIBE_VEHICLE_VARIABLE 0xd4
152
// response: subscribe vehicle variable
153
#define RESPONSE_SUBSCRIBE_VEHICLE_VARIABLE 0xe4
154
155
// command: subscribe vehicle type context
156
#define CMD_SUBSCRIBE_VEHICLETYPE_CONTEXT 0x85
157
// response: subscribe vehicle type context
158
#define RESPONSE_SUBSCRIBE_VEHICLETYPE_CONTEXT 0x95
159
// command: get vehicle type variable
160
#define CMD_GET_VEHICLETYPE_VARIABLE 0xa5
161
// response: get vehicle type variable
162
#define RESPONSE_GET_VEHICLETYPE_VARIABLE 0xb5
163
// command: set vehicle type variable
164
#define CMD_SET_VEHICLETYPE_VARIABLE 0xc5
165
// command: subscribe vehicle type variable
166
#define CMD_SUBSCRIBE_VEHICLETYPE_VARIABLE 0xd5
167
// response: subscribe vehicle type variable
168
#define RESPONSE_SUBSCRIBE_VEHICLETYPE_VARIABLE 0xe5
169
170
// command: subscribe route context
171
#define CMD_SUBSCRIBE_ROUTE_CONTEXT 0x86
172
// response: subscribe route context
173
#define RESPONSE_SUBSCRIBE_ROUTE_CONTEXT 0x96
174
// command: get route variable
175
#define CMD_GET_ROUTE_VARIABLE 0xa6
176
// response: get route variable
177
#define RESPONSE_GET_ROUTE_VARIABLE 0xb6
178
// command: set route variable
179
#define CMD_SET_ROUTE_VARIABLE 0xc6
180
// command: subscribe route variable
181
#define CMD_SUBSCRIBE_ROUTE_VARIABLE 0xd6
182
// response: subscribe route variable
183
#define RESPONSE_SUBSCRIBE_ROUTE_VARIABLE 0xe6
184
185
// command: subscribe poi context
186
#define CMD_SUBSCRIBE_POI_CONTEXT 0x87
187
// response: subscribe poi context
188
#define RESPONSE_SUBSCRIBE_POI_CONTEXT 0x97
189
// command: get poi variable
190
#define CMD_GET_POI_VARIABLE 0xa7
191
// response: get poi variable
192
#define RESPONSE_GET_POI_VARIABLE 0xb7
193
// command: set poi variable
194
#define CMD_SET_POI_VARIABLE 0xc7
195
// command: subscribe poi variable
196
#define CMD_SUBSCRIBE_POI_VARIABLE 0xd7
197
// response: subscribe poi variable
198
#define RESPONSE_SUBSCRIBE_POI_VARIABLE 0xe7
199
200
// command: subscribe polygon context
201
#define CMD_SUBSCRIBE_POLYGON_CONTEXT 0x88
202
// response: subscribe polygon context
203
#define RESPONSE_SUBSCRIBE_POLYGON_CONTEXT 0x98
204
// command: get polygon variable
205
#define CMD_GET_POLYGON_VARIABLE 0xa8
206
// response: get polygon variable
207
#define RESPONSE_GET_POLYGON_VARIABLE 0xb8
208
// command: set polygon variable
209
#define CMD_SET_POLYGON_VARIABLE 0xc8
210
// command: subscribe polygon variable
211
#define CMD_SUBSCRIBE_POLYGON_VARIABLE 0xd8
212
// response: subscribe polygon variable
213
#define RESPONSE_SUBSCRIBE_POLYGON_VARIABLE 0xe8
214
215
// command: subscribe junction context
216
#define CMD_SUBSCRIBE_JUNCTION_CONTEXT 0x89
217
// response: subscribe junction context
218
#define RESPONSE_SUBSCRIBE_JUNCTION_CONTEXT 0x99
219
// command: get junction variable
220
#define CMD_GET_JUNCTION_VARIABLE 0xa9
221
// response: get junction variable
222
#define RESPONSE_GET_JUNCTION_VARIABLE 0xb9
223
// command: set junction variable
224
#define CMD_SET_JUNCTION_VARIABLE 0xc9
225
// command: subscribe junction variable
226
#define CMD_SUBSCRIBE_JUNCTION_VARIABLE 0xd9
227
// response: subscribe junction variable
228
#define RESPONSE_SUBSCRIBE_JUNCTION_VARIABLE 0xe9
229
230
// command: subscribe edge context
231
#define CMD_SUBSCRIBE_EDGE_CONTEXT 0x8a
232
// response: subscribe edge context
233
#define RESPONSE_SUBSCRIBE_EDGE_CONTEXT 0x9a
234
// command: get edge variable
235
#define CMD_GET_EDGE_VARIABLE 0xaa
236
// response: get edge variable
237
#define RESPONSE_GET_EDGE_VARIABLE 0xba
238
// command: set edge variable
239
#define CMD_SET_EDGE_VARIABLE 0xca
240
// command: subscribe edge variable
241
#define CMD_SUBSCRIBE_EDGE_VARIABLE 0xda
242
// response: subscribe edge variable
243
#define RESPONSE_SUBSCRIBE_EDGE_VARIABLE 0xea
244
245
// command: subscribe simulation context
246
#define CMD_SUBSCRIBE_SIM_CONTEXT 0x8b
247
// response: subscribe simulation context
248
#define RESPONSE_SUBSCRIBE_SIM_CONTEXT 0x9b
249
// command: get simulation variable
250
#define CMD_GET_SIM_VARIABLE 0xab
251
// response: get simulation variable
252
#define RESPONSE_GET_SIM_VARIABLE 0xbb
253
// command: set simulation variable
254
#define CMD_SET_SIM_VARIABLE 0xcb
255
// command: subscribe simulation variable
256
#define CMD_SUBSCRIBE_SIM_VARIABLE 0xdb
257
// response: subscribe simulation variable
258
#define RESPONSE_SUBSCRIBE_SIM_VARIABLE 0xeb
259
260
// command: subscribe GUI context
261
#define CMD_SUBSCRIBE_GUI_CONTEXT 0x8c
262
// response: subscribe GUI context
263
#define RESPONSE_SUBSCRIBE_GUI_CONTEXT 0x9c
264
// command: get GUI variable
265
#define CMD_GET_GUI_VARIABLE 0xac
266
// response: get GUI variable
267
#define RESPONSE_GET_GUI_VARIABLE 0xbc
268
// command: set GUI variable
269
#define CMD_SET_GUI_VARIABLE 0xcc
270
// command: subscribe GUI variable
271
#define CMD_SUBSCRIBE_GUI_VARIABLE 0xdc
272
// response: subscribe GUI variable
273
#define RESPONSE_SUBSCRIBE_GUI_VARIABLE 0xec
274
275
276
// ****************************************
277
// POSITION REPRESENTATIONS
278
// ****************************************
279
// Position in geo-coordinates
280
#define POSITION_LON_LAT 0x00
281
// 2D cartesian coordinates
282
#define POSITION_2D 0x01
283
// Position in geo-coordinates with altitude
284
#define POSITION_LON_LAT_ALT 0x02
285
// 3D cartesian coordinates
286
#define POSITION_3D 0x03
287
// Position on road map
288
#define POSITION_ROADMAP 0x04
289
290
291
// ****************************************
292
// DATA TYPES
293
// ****************************************
294
// Boundary Box (4 doubles)
295
#define TYPE_BOUNDINGBOX 0x05
296
// Polygon (2*n doubles)
297
#define TYPE_POLYGON 0x06
298
// unsigned byte
299
#define TYPE_UBYTE 0x07
300
// signed byte
301
#define TYPE_BYTE 0x08
302
// 32 bit signed integer
303
#define TYPE_INTEGER 0x09
304
// float
305
#define TYPE_FLOAT 0x0A
306
// double
307
#define TYPE_DOUBLE 0x0B
308
// 8 bit ASCII string
309
#define TYPE_STRING 0x0C
310
// list of traffic light phases
311
#define TYPE_TLPHASELIST 0x0D
312
// list of strings
313
#define TYPE_STRINGLIST 0x0E
314
// compound object
315
#define TYPE_COMPOUND 0x0F
316
// color (four ubytes)
317
#define TYPE_COLOR 0x11
318
319
320
// ****************************************
321
// RESULT TYPES
322
// ****************************************
323
// result type: Ok
324
#define RTYPE_OK 0x00
325
// result type: not implemented
326
#define RTYPE_NOTIMPLEMENTED 0x01
327
// result type: error
328
#define RTYPE_ERR 0xFF
329
330
// return value for invalid queries (especially vehicle is not on the road)
331
#define INVALID_DOUBLE_VALUE -1001.
332
// return value for invalid queries (especially vehicle is not on the road)
333
#define INVALID_INT_VALUE -1
334
335
336
// ****************************************
337
// TRAFFIC LIGHT PHASES
338
// ****************************************
339
// red phase
340
#define TLPHASE_RED 0x01
341
// yellow phase
342
#define TLPHASE_YELLOW 0x02
343
// green phase
344
#define TLPHASE_GREEN 0x03
345
// tl is blinking
346
#define TLPHASE_BLINKING 0x04
347
// tl is off and not blinking
348
#define TLPHASE_NOSIGNAL 0x05
349
350
351
// ****************************************
352
// DIFFERENT DISTANCE REQUESTS
353
// ****************************************
354
// air distance
355
#define REQUEST_AIRDIST 0x00
356
// driving distance
357
#define REQUEST_DRIVINGDIST 0x01
358
359
360
// ****************************************
361
// VEHICLE REMOVAL REASONS
362
// ****************************************
363
// vehicle started teleport
364
#define REMOVE_TELEPORT 0x00
365
// vehicle removed while parking
366
#define REMOVE_PARKING 0x01
367
// vehicle arrived
368
#define REMOVE_ARRIVED 0x02
369
// vehicle was vaporized
370
#define REMOVE_VAPORIZED 0x03
371
// vehicle finished route during teleport
372
#define REMOVE_TELEPORT_ARRIVED 0x04
373
374
375
// ****************************************
376
// VARIABLE TYPES (for CMD_GET_*_VARIABLE)
377
// ****************************************
378
// list of instances' ids (get: all)
379
#define ID_LIST 0x00
380
381
// count of instances (get: all)
382
#define ID_COUNT 0x01
383
384
// subscribe object variables (get: all)
385
#define OBJECT_VARIABLES_SUBSCRIPTION 0x02
386
387
// subscribe context variables (get: all)
388
#define SURROUNDING_VARIABLES_SUBSCRIPTION 0x03
389
390
// last step vehicle number (get: induction loops, multi-entry/multi-exit detector, lanes, edges)
391
#define LAST_STEP_VEHICLE_NUMBER 0x10
392
393
// last step vehicle number (get: induction loops, multi-entry/multi-exit detector, lanes, edges)
394
#define LAST_STEP_MEAN_SPEED 0x11
395
396
// last step vehicle number (get: induction loops, multi-entry/multi-exit detector, lanes, edges)
397
#define LAST_STEP_VEHICLE_ID_LIST 0x12
398
399
// last step occupancy (get: induction loops, lanes, edges)
400
#define LAST_STEP_OCCUPANCY 0x13
401
402
// last step vehicle halting number (get: multi-entry/multi-exit detector, lanes, edges)
403
#define LAST_STEP_VEHICLE_HALTING_NUMBER 0x14
404
405
// last step mean vehicle length (get: induction loops, lanes, edges)
406
#define LAST_STEP_LENGTH 0x15
407
408
// last step time since last detection (get: induction loops)
409
#define LAST_STEP_TIME_SINCE_DETECTION 0x16
410
411
// entry times
412
#define LAST_STEP_VEHICLE_DATA 0x17
413
414
// last step jam length in vehicles
415
#define JAM_LENGTH_VEHICLE 0x18
416
417
// last step jam length in meters
418
#define JAM_LENGTH_METERS 0x19
419
420
421
// traffic light states, encoded as rRgGyYoO tuple (get: traffic lights)
422
#define TL_RED_YELLOW_GREEN_STATE 0x20
423
424
// index of the phase (set: traffic lights)
425
#define TL_PHASE_INDEX 0x22
426
427
// traffic light program (set: traffic lights)
428
#define TL_PROGRAM 0x23
429
430
// phase duration (set: traffic lights)
431
#define TL_PHASE_DURATION 0x24
432
433
// controlled lanes (get: traffic lights)
434
#define TL_CONTROLLED_LANES 0x26
435
436
// controlled links (get: traffic lights)
437
#define TL_CONTROLLED_LINKS 0x27
438
439
// index of the current phase (get: traffic lights)
440
#define TL_CURRENT_PHASE 0x28
441
442
// name of the current program (get: traffic lights)
443
#define TL_CURRENT_PROGRAM 0x29
444
445
// controlled junctions (get: traffic lights)
446
#define TL_CONTROLLED_JUNCTIONS 0x2a
447
448
// complete definition (get: traffic lights)
449
#define TL_COMPLETE_DEFINITION_RYG 0x2b
450
451
// complete program (set: traffic lights)
452
#define TL_COMPLETE_PROGRAM_RYG 0x2c
453
454
// assumed time to next switch (get: traffic lights)
455
#define TL_NEXT_SWITCH 0x2d
456
457
458
459
// outgoing link number (get: lanes)
460
#define LANE_LINK_NUMBER 0x30
461
462
// id of parent edge (get: lanes)
463
#define LANE_EDGE_ID 0x31
464
465
// outgoing link definitions (get: lanes)
466
#define LANE_LINKS 0x33
467
468
// list of allowed vehicle classes (get&set: lanes)
469
#define LANE_ALLOWED 0x34
470
471
// list of not allowed vehicle classes (get&set: lanes)
472
#define LANE_DISALLOWED 0x35
473
474
475
// speed (get: vehicle)
476
#define VAR_SPEED 0x40
477
478
// maximum allowed/possible speed (get: vehicle types, lanes, set: edges, lanes)
479
#define VAR_MAXSPEED 0x41
480
481
// position (2D) (get: vehicle, poi, set: poi)
482
#define VAR_POSITION 0x42
483
484
// position (3D) (get: vehicle, poi, set: poi)
485
#define VAR_POSITION3D 0x39
486
487
// angle (get: vehicle)
488
#define VAR_ANGLE 0x43
489
490
// angle (get: vehicle types, lanes, set: lanes)
491
#define VAR_LENGTH 0x44
492
493
// color (get: vehicles, vehicle types, polygons, pois)
494
#define VAR_COLOR 0x45
495
496
// max. acceleration (get: vehicle types)
497
#define VAR_ACCEL 0x46
498
499
// max. deceleration (get: vehicle types)
500
#define VAR_DECEL 0x47
501
502
// driver reaction time (get: vehicle types)
503
#define VAR_TAU 0x48
504
505
// vehicle class (get: vehicle types)
506
#define VAR_VEHICLECLASS 0x49
507
508
// emission class (get: vehicle types)
509
#define VAR_EMISSIONCLASS 0x4a
510
511
// shape class (get: vehicle types)
512
#define VAR_SHAPECLASS 0x4b
513
514
// minimum gap (get: vehicle types)
515
#define VAR_MINGAP 0x4c
516
517
// width (get: vehicle types, lanes)
518
#define VAR_WIDTH 0x4d
519
520
// shape (get: polygons)
521
#define VAR_SHAPE 0x4e
522
523
// type id (get: vehicles, polygons, pois)
524
#define VAR_TYPE 0x4f
525
526
// road id (get: vehicles)
527
#define VAR_ROAD_ID 0x50
528
529
// lane id (get: vehicles)
530
#define VAR_LANE_ID 0x51
531
532
// lane index (get: vehicles)
533
#define VAR_LANE_INDEX 0x52
534
535
// route id (get & set: vehicles)
536
#define VAR_ROUTE_ID 0x53
537
538
// edges (get: routes)
539
#define VAR_EDGES 0x54
540
541
// filled? (get: polygons)
542
#define VAR_FILL 0x55
543
544
// position (1D along lane) (get: vehicle)
545
#define VAR_LANEPOSITION 0x56
546
547
// route (set: vehicles)
548
#define VAR_ROUTE 0x57
549
550
// travel time information (get&set: vehicle)
551
#define VAR_EDGE_TRAVELTIME 0x58
552
553
// effort information (get&set: vehicle)
554
#define VAR_EDGE_EFFORT 0x59
555
556
// last step travel time (get: edge, lane)
557
#define VAR_CURRENT_TRAVELTIME 0x5a
558
559
// signals state (get/set: vehicle)
560
#define VAR_SIGNALS 0x5b
561
562
// new lane/position along (set: vehicle)
563
#define VAR_MOVE_TO 0x5c
564
565
// driver imperfection (set: vehicle)
566
#define VAR_IMPERFECTION 0x5d
567
568
// speed factor (set: vehicle)
569
#define VAR_SPEED_FACTOR 0x5e
570
571
// speed deviation (set: vehicle)
572
#define VAR_SPEED_DEVIATION 0x5f
573
574
575
576
// speed without TraCI influence (get: vehicle)
577
#define VAR_SPEED_WITHOUT_TRACI 0xb1
578
579
// best lanes (get: vehicle)
580
#define VAR_BEST_LANES 0xb2
581
582
// how speed is set (set: vehicle)
583
#define VAR_SPEEDSETMODE 0xb3
584
585
// move vehicle, VTD version (set: vehicle)
586
#define VAR_MOVE_TO_VTD 0xb4
587
588
// is the vehicle stopped, and if so parked and/or triggered?
589
// value = stopped + 2 * parking + 4 * triggered
590
#define VAR_STOPSTATE 0xb5
591
592
// how lane changing is performed (set: vehicle)
593
#define VAR_LANECHANGE_MODE 0xb6
594
595
// maximum speed regarding max speed on the current lane and speed factor (get: vehicle)
596
#define VAR_ALLOWED_SPEED 0xb7
597
598
599
// current CO2 emission of a node (get: vehicle, lane, edge)
600
#define VAR_CO2EMISSION 0x60
601
602
// current CO emission of a node (get: vehicle, lane, edge)
603
#define VAR_COEMISSION 0x61
604
605
// current HC emission of a node (get: vehicle, lane, edge)
606
#define VAR_HCEMISSION 0x62
607
608
// current PMx emission of a node (get: vehicle, lane, edge)
609
#define VAR_PMXEMISSION 0x63
610
611
// current NOx emission of a node (get: vehicle, lane, edge)
612
#define VAR_NOXEMISSION 0x64
613
614
// current fuel consumption of a node (get: vehicle, lane, edge)
615
#define VAR_FUELCONSUMPTION 0x65
616
617
// current noise emission of a node (get: vehicle, lane, edge)
618
#define VAR_NOISEEMISSION 0x66
619
620
// current person number (get: vehicle)
621
#define VAR_PERSON_NUMBER 0x67
622
623
// number of persons waiting at a defined bus stop (get: simulation)
624
#define VAR_BUS_STOP_WAITING 0x67
625
626
// current leader together with gap (get: vehicle)
627
#define VAR_LEADER 0x68
628
629
//current waiting time (get: vehicle, lane)
630
#define VAR_WAITING_TIME 0x7a
631
632
// current time step (get: simulation)
633
#define VAR_TIME_STEP 0x70
634
635
// number of loaded vehicles (get: simulation)
636
#define VAR_LOADED_VEHICLES_NUMBER 0x71
637
638
// loaded vehicle ids (get: simulation)
639
#define VAR_LOADED_VEHICLES_IDS 0x72
640
641
// number of departed vehicle (get: simulation)
642
#define VAR_DEPARTED_VEHICLES_NUMBER 0x73
643
644
// departed vehicle ids (get: simulation)
645
#define VAR_DEPARTED_VEHICLES_IDS 0x74
646
647
// number of vehicles starting to teleport (get: simulation)
648
#define VAR_TELEPORT_STARTING_VEHICLES_NUMBER 0x75
649
650
// ids of vehicles starting to teleport (get: simulation)
651
#define VAR_TELEPORT_STARTING_VEHICLES_IDS 0x76
652
653
// number of vehicles ending to teleport (get: simulation)
654
#define VAR_TELEPORT_ENDING_VEHICLES_NUMBER 0x77
655
656
// ids of vehicles ending to teleport (get: simulation)
657
#define VAR_TELEPORT_ENDING_VEHICLES_IDS 0x78
658
659
// number of arrived vehicles (get: simulation)
660
#define VAR_ARRIVED_VEHICLES_NUMBER 0x79
661
662
// ids of arrived vehicles (get: simulation)
663
#define VAR_ARRIVED_VEHICLES_IDS 0x7a
664
665
// delta t (get: simulation)
666
#define VAR_DELTA_T 0x7b
667
668
// bounding box (get: simulation)
669
#define VAR_NET_BOUNDING_BOX 0x7c
670
671
// minimum number of expected vehicles (get: simulation)
672
#define VAR_MIN_EXPECTED_VEHICLES 0x7d
673
674
// number of vehicles starting to park (get: simulation)
675
#define VAR_STOP_STARTING_VEHICLES_NUMBER 0x68
676
677
// ids of vehicles starting to park (get: simulation)
678
#define VAR_STOP_STARTING_VEHICLES_IDS 0x69
679
680
// number of vehicles ending to park (get: simulation)
681
#define VAR_STOP_ENDING_VEHICLES_NUMBER 0x6a
682
683
// ids of vehicles ending to park (get: simulation)
684
#define VAR_STOP_ENDING_VEHICLES_IDS 0x6b
685
686
// number of vehicles starting to park (get: simulation)
687
#define VAR_PARKING_STARTING_VEHICLES_NUMBER 0x6c
688
689
// ids of vehicles starting to park (get: simulation)
690
#define VAR_PARKING_STARTING_VEHICLES_IDS 0x6d
691
692
// number of vehicles ending to park (get: simulation)
693
#define VAR_PARKING_ENDING_VEHICLES_NUMBER 0x6e
694
695
// ids of vehicles ending to park (get: simulation)
696
#define VAR_PARKING_ENDING_VEHICLES_IDS 0x6f
697
698
// clears the simulation of all not inserted vehicles (set: simulation)
699
#define CMD_CLEAR_PENDING_VEHICLES 0x94
700
701
702
703
704
// add an instance (poi, polygon, vehicle, route)
705
#define ADD 0x80
706
707
// remove an instance (poi, polygon, vehicle)
708
#define REMOVE 0x81
709
710
// convert coordinates
711
#define POSITION_CONVERSION 0x82
712
713
// distance between points or vehicles
714
#define DISTANCE_REQUEST 0x83
715
716
//the current driving distance
717
#define VAR_DISTANCE 0x84
718
719
// add a fully specified instance (vehicle)
720
#define ADD_FULL 0x85
721
722
// force rerouting based on travel time (vehicles)
723
#define CMD_REROUTE_TRAVELTIME 0x90
724
725
// force rerouting based on effort (vehicles)
726
#define CMD_REROUTE_EFFORT 0x91
727
728
// validates current route (vehicles)
729
#define VAR_ROUTE_VALID 0x92
730
731
732
// zoom
733
#define VAR_VIEW_ZOOM 0xa0
734
735
// view position
736
#define VAR_VIEW_OFFSET 0xa1
737
738
// view schema
739
#define VAR_VIEW_SCHEMA 0xa2
740
741
// view by boundary
742
#define VAR_VIEW_BOUNDARY 0xa3
743
744
// screenshot
745
#define VAR_SCREENSHOT 0xa5
746
747
// track vehicle
748
#define VAR_TRACK_VEHICLE 0xa6
749
750
751
#endif
build
buildd
sumo-0.21.0+dfsg
src
traci-server
TraCIConstants.h
Generated on Wed Mar 18 2015 22:57:49 for SUMO - Simulation of Urban MObility by
1.8.9.1