perception_interfaces 1.1.2
Loading...
Searching...
No Matches
state_index.h
Go to the documentation of this file.
1// Copyright Institute for Automotive Engineering (ika), RWTH Aachen University
2// SPDX-License-Identifier: MIT
3
9#pragma once
10
11
12namespace perception_msgs {
13
14namespace object_access {
15
16 const std::string kExceptionUnknownStateEntry = "Model with the following ID does not support requested entry: ";
17
24 inline int indexX(const unsigned char& model_id) {
25 switch(model_id) {
26 case EGO::MODEL_ID:
27 return EGO::X;
28 case EGORWS::MODEL_ID:
29 return EGORWS::X;
30 case ISCACTR::MODEL_ID:
31 return ISCACTR::X;
32 case HEXAMOTION::MODEL_ID:
33 return HEXAMOTION::X;
34 case TRAFFICLIGHT::MODEL_ID:
35 return TRAFFICLIGHT::X;
36 default:
37 throw std::invalid_argument(kExceptionUnknownStateEntry + std::to_string(model_id) + ", " + "x");
38 }
39 }
40
47 inline int indexY(const unsigned char& model_id) {
48 switch(model_id) {
49 case EGO::MODEL_ID:
50 return EGO::Y;
51 case EGORWS::MODEL_ID:
52 return EGORWS::Y;
53 case ISCACTR::MODEL_ID:
54 return ISCACTR::Y;
55 case HEXAMOTION::MODEL_ID:
56 return HEXAMOTION::Y;
57 case TRAFFICLIGHT::MODEL_ID:
58 return TRAFFICLIGHT::Y;
59 default:
60 throw std::invalid_argument(kExceptionUnknownStateEntry + std::to_string(model_id) + ", " + "y");
61 }
62 }
63
70 inline int indexZ(const unsigned char& model_id) {
71 switch(model_id) {
72 case EGO::MODEL_ID:
73 return EGO::Z;
74 case EGORWS::MODEL_ID:
75 return EGORWS::Z;
76 case ISCACTR::MODEL_ID:
77 return ISCACTR::Z;
78 case HEXAMOTION::MODEL_ID:
79 return HEXAMOTION::Z;
80 case TRAFFICLIGHT::MODEL_ID:
81 return TRAFFICLIGHT::Z;
82 default:
83 throw std::invalid_argument(kExceptionUnknownStateEntry + std::to_string(model_id) + ", " + "z");
84 }
85 }
86
93 inline int indexVelLon(const unsigned char& model_id) {
94 switch(model_id) {
95 case EGO::MODEL_ID:
96 return EGO::VEL_LON;
97 case EGORWS::MODEL_ID:
98 return EGORWS::VEL_LON;
99 case ISCACTR::MODEL_ID:
100 return ISCACTR::VEL_LON;
101 case HEXAMOTION::MODEL_ID:
102 return HEXAMOTION::VEL_LON;
103 default:
104 throw std::invalid_argument(kExceptionUnknownStateEntry + std::to_string(model_id) + ", " + "vel_lon");
105 }
106 }
107
114 inline int indexVelLat(const unsigned char& model_id) {
115 switch(model_id) {
116 case EGO::MODEL_ID:
117 return EGO::VEL_LAT;
118 case EGORWS::MODEL_ID:
119 return EGORWS::VEL_LAT;
120 case ISCACTR::MODEL_ID:
121 return ISCACTR::VEL_LAT;
122 case HEXAMOTION::MODEL_ID:
123 return HEXAMOTION::VEL_LAT;
124 default:
125 throw std::invalid_argument(kExceptionUnknownStateEntry + std::to_string(model_id) + ", " + "vel_lat");
126 }
127 }
128
135 inline int indexAccLon(const unsigned char& model_id) {
136 switch(model_id) {
137 case EGO::MODEL_ID:
138 return EGO::ACC_LON;
139 case EGORWS::MODEL_ID:
140 return EGORWS::ACC_LON;
141 case ISCACTR::MODEL_ID:
142 return ISCACTR::ACC_LON;
143 case HEXAMOTION::MODEL_ID:
144 return HEXAMOTION::ACC_LON;
145 default:
146 throw std::invalid_argument(kExceptionUnknownStateEntry + std::to_string(model_id) + ", " + "acc_lon");
147 }
148 }
149
156 inline int indexAccLat(const unsigned char& model_id) {
157 switch(model_id) {
158 case EGO::MODEL_ID:
159 return EGO::ACC_LAT;
160 case EGORWS::MODEL_ID:
161 return EGORWS::ACC_LAT;
162 case ISCACTR::MODEL_ID:
163 return ISCACTR::ACC_LAT;
164 case HEXAMOTION::MODEL_ID:
165 return HEXAMOTION::ACC_LAT;
166 default:
167 throw std::invalid_argument(kExceptionUnknownStateEntry + std::to_string(model_id) + ", " + "acc_lat");
168 }
169 }
170
177 inline int indexRoll(const unsigned char& model_id) {
178 switch(model_id) {
179 case EGO::MODEL_ID:
180 return EGO::ROLL;
181 case EGORWS::MODEL_ID:
182 return EGORWS::ROLL;
183 case HEXAMOTION::MODEL_ID:
184 return HEXAMOTION::ROLL;
185 default:
186 throw std::invalid_argument(kExceptionUnknownStateEntry + std::to_string(model_id) + ", " + "roll");
187 }
188 }
189
196 inline int indexRollRate(const unsigned char& model_id) {
197 switch(model_id) {
198 case HEXAMOTION::MODEL_ID:
199 return HEXAMOTION::ROLL_RATE;
200 default:
201 throw std::invalid_argument(kExceptionUnknownStateEntry + std::to_string(model_id) + ", " + "roll_rate");
202 }
203 }
204
211 inline int indexPitch(const unsigned char& model_id) {
212 switch(model_id) {
213 case EGO::MODEL_ID:
214 return EGO::PITCH;
215 case EGORWS::MODEL_ID:
216 return EGORWS::PITCH;
217 case HEXAMOTION::MODEL_ID:
218 return HEXAMOTION::PITCH;
219 default:
220 throw std::invalid_argument(kExceptionUnknownStateEntry + std::to_string(model_id) + ", " + "pitch");
221 }
222 }
223
230 inline int indexPitchRate(const unsigned char& model_id) {
231 switch(model_id) {
232 case HEXAMOTION::MODEL_ID:
233 return HEXAMOTION::PITCH_RATE;
234 default:
235 throw std::invalid_argument(kExceptionUnknownStateEntry + std::to_string(model_id) + ", " + "pitch_rate");
236 }
237 }
238
245 inline int indexYaw(const unsigned char& model_id) {
246 switch(model_id) {
247 case EGO::MODEL_ID:
248 return EGO::YAW;
249 case EGORWS::MODEL_ID:
250 return EGORWS::YAW;
251 case ISCACTR::MODEL_ID:
252 return ISCACTR::YAW;
253 case HEXAMOTION::MODEL_ID:
254 return HEXAMOTION::YAW;
255 default:
256 throw std::invalid_argument(kExceptionUnknownStateEntry + std::to_string(model_id) + ", " + "yaw");
257 }
258 }
259
266 inline int indexYawRate(const unsigned char& model_id) {
267 switch(model_id) {
268 case EGO::MODEL_ID:
269 return EGO::YAW_RATE;
270 case EGORWS::MODEL_ID:
271 return EGORWS::YAW_RATE;
272 case ISCACTR::MODEL_ID:
273 return ISCACTR::YAW_RATE;
274 case HEXAMOTION::MODEL_ID:
275 return HEXAMOTION::YAW_RATE;
276 default:
277 throw std::invalid_argument(kExceptionUnknownStateEntry + std::to_string(model_id) + ", " + "yaw_rate");
278 }
279 }
280
287 inline int indexSteeringAngleAck(const unsigned char& model_id) {
288 switch(model_id) {
289 case EGO::MODEL_ID:
290 return EGO::STEERING_ANGLE_ACK;
291 default:
292 throw std::invalid_argument(kExceptionUnknownStateEntry + std::to_string(model_id) + ", " + "steering_angle_ack");
293 }
294 }
295
302 inline int indexSteeringAngleRateAck(const unsigned char& model_id) {
303 switch(model_id) {
304 case EGO::MODEL_ID:
305 return EGO::STEERING_ANGLE_RATE_ACK;
306 default:
307 throw std::invalid_argument(kExceptionUnknownStateEntry + std::to_string(model_id) + ", " + "steering_angle_rate_ack");
308 }
309 }
310
317 inline int indexSteeringAngleFront(const unsigned char& model_id) {
318 switch(model_id) {
319 case EGORWS::MODEL_ID:
320 return EGORWS::STEERING_ANGLE_FRONT;
321 default:
322 throw std::invalid_argument(kExceptionUnknownStateEntry + std::to_string(model_id) + ", " + "steering_angle_front");
323 }
324 }
325
332 inline int indexSteeringAngleRear(const unsigned char& model_id) {
333 switch(model_id) {
334 case EGORWS::MODEL_ID:
335 return EGORWS::STEERING_ANGLE_REAR;
336 default:
337 throw std::invalid_argument(kExceptionUnknownStateEntry + std::to_string(model_id) + ", " + "steering_angle_rear");
338 }
339 }
340
347 inline int indexWidth(const unsigned char& model_id) {
348 switch(model_id) {
349 case ISCACTR::MODEL_ID:
350 return ISCACTR::WIDTH;
351 case HEXAMOTION::MODEL_ID:
352 return HEXAMOTION::WIDTH;
353 default:
354 throw std::invalid_argument(kExceptionUnknownStateEntry + std::to_string(model_id) + ", " + "width");
355 }
356 }
357
364 inline int indexLength(const unsigned char& model_id) {
365 switch(model_id) {
366 case ISCACTR::MODEL_ID:
367 return ISCACTR::LENGTH;
368 case HEXAMOTION::MODEL_ID:
369 return HEXAMOTION::LENGTH;
370 default:
371 throw std::invalid_argument(kExceptionUnknownStateEntry + std::to_string(model_id) + ", " + "length");
372 }
373 }
374
381 inline int indexHeight(const unsigned char& model_id) {
382 switch(model_id) {
383 case ISCACTR::MODEL_ID:
384 return ISCACTR::HEIGHT;
385 case HEXAMOTION::MODEL_ID:
386 return HEXAMOTION::HEIGHT;
387 default:
388 throw std::invalid_argument(kExceptionUnknownStateEntry + std::to_string(model_id) + ", " + "height");
389 }
390 }
391
398 inline int indexStandstill(const unsigned char& model_id) {
399 switch(model_id) {
400 case EGO::MODEL_ID:
401 return EGO::STANDSTILL;
402 case EGORWS::MODEL_ID:
403 return EGORWS::STANDSTILL;
404 default:
405 throw std::invalid_argument(kExceptionUnknownStateEntry + std::to_string(model_id) + ", " + "standstill");
406 }
407 }
408
415 inline int indexTurnIndicator(const unsigned char& model_id) {
416 switch(model_id) {
417 case EGO::MODEL_ID:
418 return EGO::TURN_INDICATOR;
419 case EGORWS::MODEL_ID:
420 return EGORWS::TURN_INDICATOR;
421 case ISCACTR::MODEL_ID:
422 return ISCACTR::TURN_INDICATOR;
423 case HEXAMOTION::MODEL_ID:
424 return HEXAMOTION::TURN_INDICATOR;
425 default:
426 throw std::invalid_argument(kExceptionUnknownStateEntry + std::to_string(model_id) + ", " + "turn_indicator");
427 }
428 }
429
436 inline int indexBrakeLight(const unsigned char& model_id) {
437 switch(model_id) {
438 case EGO::MODEL_ID:
439 return EGO::BRAKE_LIGHT;
440 case EGORWS::MODEL_ID:
441 return EGORWS::BRAKE_LIGHT;
442 case ISCACTR::MODEL_ID:
443 return ISCACTR::BRAKE_LIGHT;
444 case HEXAMOTION::MODEL_ID:
445 return HEXAMOTION::BRAKE_LIGHT;
446 default:
447 throw std::invalid_argument(kExceptionUnknownStateEntry + std::to_string(model_id) + ", " + "brake_light");
448 }
449 }
450
457 inline int indexReverseLight(const unsigned char& model_id) {
458 switch(model_id) {
459 case EGO::MODEL_ID:
460 return EGO::REVERSE_LIGHT;
461 case EGORWS::MODEL_ID:
462 return EGORWS::REVERSE_LIGHT;
463 case ISCACTR::MODEL_ID:
464 return ISCACTR::REVERSE_LIGHT;
465 case HEXAMOTION::MODEL_ID:
466 return HEXAMOTION::REVERSE_LIGHT;
467 default:
468 throw std::invalid_argument(kExceptionUnknownStateEntry + std::to_string(model_id) + ", " + "reverse_light");
469 }
470 }
471
479 inline int indexTrafficLightState(const unsigned char& model_id) {
480 switch(model_id) {
481 case TRAFFICLIGHT::MODEL_ID:
482 return TRAFFICLIGHT::STATE;
483 default:
484 throw std::invalid_argument(kExceptionUnknownStateEntry + std::to_string(model_id) + ", " + "traffic_light_state");
485 }
486 }
487
495 inline int indexTrafficLightType(const unsigned char& model_id) {
496 switch(model_id) {
497 case TRAFFICLIGHT::MODEL_ID:
498 return TRAFFICLIGHT::TYPE;
499 default:
500 throw std::invalid_argument(kExceptionUnknownStateEntry + std::to_string(model_id) + ", " + "traffic_light_type");
501 }
502 }
503
511 inline bool hasX(const unsigned char& model_id) {
512 switch(model_id) {
513 case EGO::MODEL_ID:
514 return true;
515 case EGORWS::MODEL_ID:
516 return true;
517 case ISCACTR::MODEL_ID:
518 return true;
519 case HEXAMOTION::MODEL_ID:
520 return true;
521 case TRAFFICLIGHT::MODEL_ID:
522 return true;
523 default:
524 return false;
525 }
526 }
527
535 inline bool hasY(const unsigned char& model_id) {
536 switch(model_id) {
537 case EGO::MODEL_ID:
538 return true;
539 case EGORWS::MODEL_ID:
540 return true;
541 case ISCACTR::MODEL_ID:
542 return true;
543 case HEXAMOTION::MODEL_ID:
544 return true;
545 case TRAFFICLIGHT::MODEL_ID:
546 return true;
547 default:
548 return false;
549 }
550 }
551
559 inline bool hasZ(const unsigned char& model_id) {
560 switch(model_id) {
561 case EGO::MODEL_ID:
562 return true;
563 case EGORWS::MODEL_ID:
564 return true;
565 case ISCACTR::MODEL_ID:
566 return true;
567 case HEXAMOTION::MODEL_ID:
568 return true;
569 case TRAFFICLIGHT::MODEL_ID:
570 return true;
571 default:
572 return false;
573 }
574 }
575
583 inline bool hasVelLon(const unsigned char& model_id) {
584 switch(model_id) {
585 case EGO::MODEL_ID:
586 return true;
587 case EGORWS::MODEL_ID:
588 return true;
589 case ISCACTR::MODEL_ID:
590 return true;
591 case HEXAMOTION::MODEL_ID:
592 return true;
593 default:
594 return false;
595 }
596 }
597
605 inline bool hasVelLat(const unsigned char& model_id) {
606 switch(model_id) {
607 case EGO::MODEL_ID:
608 return true;
609 case EGORWS::MODEL_ID:
610 return true;
611 case ISCACTR::MODEL_ID:
612 return true;
613 case HEXAMOTION::MODEL_ID:
614 return true;
615 default:
616 return false;
617 }
618 }
619
627 inline bool hasAccLon(const unsigned char& model_id) {
628 switch(model_id) {
629 case EGO::MODEL_ID:
630 return true;
631 case EGORWS::MODEL_ID:
632 return true;
633 case ISCACTR::MODEL_ID:
634 return true;
635 case HEXAMOTION::MODEL_ID:
636 return true;
637 default:
638 return false;
639 }
640 }
641
649 inline bool hasAccLat(const unsigned char& model_id) {
650 switch(model_id) {
651 case EGO::MODEL_ID:
652 return true;
653 case EGORWS::MODEL_ID:
654 return true;
655 case ISCACTR::MODEL_ID:
656 return true;
657 case HEXAMOTION::MODEL_ID:
658 return true;
659 default:
660 return false;
661 }
662 }
663
671 inline bool hasRoll(const unsigned char& model_id) {
672 switch(model_id) {
673 case EGO::MODEL_ID:
674 return true;
675 case EGORWS::MODEL_ID:
676 return true;
677 case ISCACTR::MODEL_ID:
678 return false;
679 case HEXAMOTION::MODEL_ID:
680 return true;
681 default:
682 return false;
683 }
684 }
685
693 inline bool hasRollRate(const unsigned char& model_id) {
694 switch(model_id) {
695 case EGO::MODEL_ID:
696 return false;
697 case EGORWS::MODEL_ID:
698 return false;
699 case ISCACTR::MODEL_ID:
700 return false;
701 case HEXAMOTION::MODEL_ID:
702 return true;
703 default:
704 return false;
705 }
706 }
707
715 inline bool hasPitch(const unsigned char& model_id) {
716 switch(model_id) {
717 case EGO::MODEL_ID:
718 return true;
719 case EGORWS::MODEL_ID:
720 return true;
721 case ISCACTR::MODEL_ID:
722 return false;
723 case HEXAMOTION::MODEL_ID:
724 return true;
725 default:
726 return false;
727 }
728 }
729
737 inline bool hasPitchRate(const unsigned char& model_id) {
738 switch(model_id) {
739 case EGO::MODEL_ID:
740 return false;
741 case EGORWS::MODEL_ID:
742 return false;
743 case ISCACTR::MODEL_ID:
744 return false;
745 case HEXAMOTION::MODEL_ID:
746 return true;
747 default:
748 return false;
749 }
750 }
751
759 inline bool hasYaw(const unsigned char& model_id) {
760 switch(model_id) {
761 case EGO::MODEL_ID:
762 return true;
763 case EGORWS::MODEL_ID:
764 return true;
765 case ISCACTR::MODEL_ID:
766 return true;
767 case HEXAMOTION::MODEL_ID:
768 return true;
769 default:
770 return false;
771 }
772 }
773
781 inline bool hasYawRate(const unsigned char& model_id) {
782 switch(model_id) {
783 case EGO::MODEL_ID:
784 return true;
785 case EGORWS::MODEL_ID:
786 return true;
787 case ISCACTR::MODEL_ID:
788 return true;
789 case HEXAMOTION::MODEL_ID:
790 return true;
791 default:
792 return false;
793 }
794 }
795
803 inline bool hasSteeringAngleAck(const unsigned char& model_id) {
804 switch(model_id) {
805 case EGO::MODEL_ID:
806 return true;
807 case EGORWS::MODEL_ID:
808 return false;
809 case ISCACTR::MODEL_ID:
810 return false;
811 case HEXAMOTION::MODEL_ID:
812 return false;
813 default:
814 return false;
815 }
816 }
817
825 inline bool hasSteeringAngleRateAck(const unsigned char& model_id) {
826 switch(model_id) {
827 case EGO::MODEL_ID:
828 return true;
829 case EGORWS::MODEL_ID:
830 return false;
831 case ISCACTR::MODEL_ID:
832 return false;
833 case HEXAMOTION::MODEL_ID:
834 return false;
835 default:
836 return false;
837 }
838 }
839
847 inline bool hasSteeringAngleFront(const unsigned char& model_id) {
848 switch(model_id) {
849 case EGORWS::MODEL_ID:
850 return true;
851 default:
852 return false;
853 }
854 }
855
863 inline bool hasSteeringAngleRear(const unsigned char& model_id) {
864 switch(model_id) {
865 case EGORWS::MODEL_ID:
866 return true;
867 default:
868 return false;
869 }
870 }
871
879 inline bool hasWidth(const unsigned char& model_id) {
880 switch(model_id) {
881 case EGO::MODEL_ID:
882 return false;
883 case EGORWS::MODEL_ID:
884 return false;
885 case ISCACTR::MODEL_ID:
886 return true;
887 case HEXAMOTION::MODEL_ID:
888 return true;
889 default:
890 return false;
891 }
892 }
893
901 inline bool hasLength(const unsigned char& model_id) {
902 switch(model_id) {
903 case EGO::MODEL_ID:
904 return false;
905 case EGORWS::MODEL_ID:
906 return false;
907 case ISCACTR::MODEL_ID:
908 return true;
909 case HEXAMOTION::MODEL_ID:
910 return true;
911 default:
912 return false;
913 }
914 }
915
923 inline bool hasHeight(const unsigned char& model_id) {
924 switch(model_id) {
925 case EGO::MODEL_ID:
926 return false;
927 case EGORWS::MODEL_ID:
928 return false;
929 case ISCACTR::MODEL_ID:
930 return true;
931 case HEXAMOTION::MODEL_ID:
932 return true;
933 default:
934 return false;
935 }
936 }
937
945 inline bool hasStandstill(const unsigned char& model_id) {
946 switch(model_id) {
947 case EGO::MODEL_ID:
948 return true;
949 case EGORWS::MODEL_ID:
950 return true;
951 case ISCACTR::MODEL_ID:
952 return false;
953 case HEXAMOTION::MODEL_ID:
954 return false;
955 default:
956 return false;
957 }
958 }
959
967 inline bool hasTurnIndicator(const unsigned char& model_id) {
968 switch(model_id) {
969 case EGO::MODEL_ID:
970 return true;
971 case EGORWS::MODEL_ID:
972 return true;
973 case ISCACTR::MODEL_ID:
974 return true;
975 case HEXAMOTION::MODEL_ID:
976 return true;
977 default:
978 return false;
979 }
980 }
981
989 inline bool hasBrakeLight(const unsigned char& model_id) {
990 switch(model_id) {
991 case EGO::MODEL_ID:
992 return true;
993 case EGORWS::MODEL_ID:
994 return true;
995 case ISCACTR::MODEL_ID:
996 return true;
997 case HEXAMOTION::MODEL_ID:
998 return true;
999 default:
1000 return false;
1001 }
1002 }
1003
1011 inline bool hasReverseLight(const unsigned char& model_id) {
1012 switch(model_id) {
1013 case EGO::MODEL_ID:
1014 return true;
1015 case EGORWS::MODEL_ID:
1016 return true;
1017 case ISCACTR::MODEL_ID:
1018 return true;
1019 case HEXAMOTION::MODEL_ID:
1020 return true;
1021 default:
1022 return false;
1023 }
1024 }
1025
1034 inline bool hasTrafficLightState(const unsigned char& model_id) {
1035 switch(model_id) {
1036 case TRAFFICLIGHT::MODEL_ID:
1037 return true;
1038 default:
1039 return false;
1040 }
1041 }
1042
1051 inline bool hasTrafficLightType(const unsigned char& model_id) {
1052 switch(model_id) {
1053 case TRAFFICLIGHT::MODEL_ID:
1054 return true;
1055 default:
1056 return false;
1057 }
1058 }
1059
1060} // namespace object_access
1061
1062} // namespace perception_msgs
bool hasYaw(const unsigned char &model_id)
Indicates if given model contains a yaw.
int indexBrakeLight(const unsigned char &model_id)
Get the vector-index that stores the brake light state for a given model-id.
int indexRollRate(const unsigned char &model_id)
Get the vector-index that stores the roll rate for a given model-id.
bool hasSteeringAngleFront(const unsigned char &model_id)
Indicates if given model contains a front wheel angle.
int indexVelLon(const unsigned char &model_id)
Get the vector-index that stores the longitudinal velocity for a given model-id.
Definition state_index.h:93
int indexWidth(const unsigned char &model_id)
Get the vector-index that stores the width for a given model-id.
int indexRoll(const unsigned char &model_id)
Get the vector-index that stores the roll for a given model-id.
bool hasTrafficLightType(const unsigned char &model_id)
Indicates if given model contains a traffic light type.
bool hasYawRate(const unsigned char &model_id)
Indicates if given model contains a yaw-rate.
int indexLength(const unsigned char &model_id)
Get the vector-index that stores the length for a given model-id.
int indexPitchRate(const unsigned char &model_id)
Get the vector-index that stores the pitch rate for a given model-id.
bool hasHeight(const unsigned char &model_id)
Indicates if given model contains a height.
bool hasZ(const unsigned char &model_id)
Indicates if given model contains a z-position.
int indexYawRate(const unsigned char &model_id)
Get the vector-index that stores the yaw-rate for a given model-id.
bool hasRollRate(const unsigned char &model_id)
Indicates if given model contains a roll-rate.
bool hasReverseLight(const unsigned char &model_id)
Indicates if given model contains a reverse light state.
bool hasSteeringAngleAck(const unsigned char &model_id)
Indicates if given model contains an ackermann steering angle.
bool hasAccLat(const unsigned char &model_id)
Indicates if given model contains a lateral acceleration.
bool hasVelLat(const unsigned char &model_id)
Indicates if given model contains a lateral velocity.
int indexHeight(const unsigned char &model_id)
Get the vector-index that stores the height for a given model-id.
int indexVelLat(const unsigned char &model_id)
Get the vector-index that stores the lateral velocity for a given model-id.
bool hasSteeringAngleRateAck(const unsigned char &model_id)
Indicates if given model contains an ackermann steering angle rate.
bool hasY(const unsigned char &model_id)
Indicates if given model contains a y-position.
bool hasBrakeLight(const unsigned char &model_id)
Indicates if given model contains a brake light state.
bool hasLength(const unsigned char &model_id)
Indicates if given model contains a length.
bool hasTrafficLightState(const unsigned char &model_id)
Indicates if given model contains a traffic light state.
bool hasSteeringAngleRear(const unsigned char &model_id)
Indicates if given model contains a rear wheel angle.
bool hasRoll(const unsigned char &model_id)
Indicates if given model contains a roll.
int indexTurnIndicator(const unsigned char &model_id)
Get the vector-index that stores the turn indicator state for a given model-id.
int indexY(const unsigned char &model_id)
Get the vector-index that stores the y-position for a given model-id.
Definition state_index.h:47
int indexSteeringAngleFront(const unsigned char &model_id)
Get the vector-index that stores the front wheel angle for a given model-id.
bool hasX(const unsigned char &model_id)
Indicates if given model contains an x-position.
int indexSteeringAngleRear(const unsigned char &model_id)
Get the vector-index that stores the rear wheel angle for a given model-id.
bool hasVelLon(const unsigned char &model_id)
Indicates if given model contains a longitudinal velocity.
int indexReverseLight(const unsigned char &model_id)
Get the vector-index that stores the reverse light state for a given model-id.
int indexZ(const unsigned char &model_id)
Get the vector-index that stores the z-position for a given model-id.
Definition state_index.h:70
bool hasStandstill(const unsigned char &model_id)
Indicates if given model contains a standstill indication.
int indexAccLon(const unsigned char &model_id)
Get the vector-index that stores the longitudinal acceleration for a given model-id.
int indexStandstill(const unsigned char &model_id)
Get the vector-index that stores the standstill indication for a given model-id.
bool hasPitchRate(const unsigned char &model_id)
Indicates if given model contains a pitch-rate.
int indexTrafficLightType(const unsigned char &model_id)
Get the vector-index that stores the traffic light type for a given model-id.
int indexSteeringAngleRateAck(const unsigned char &model_id)
Get the vector-index that stores the steering angle rate for a given model-id.
bool hasPitch(const unsigned char &model_id)
Indicates if given model contains a pitch.
int indexPitch(const unsigned char &model_id)
Get the vector-index that stores the pitch for a given model-id.
bool hasTurnIndicator(const unsigned char &model_id)
Indicates if given model contains a turn indicator state.
int indexAccLat(const unsigned char &model_id)
Get the vector-index that stores the lateral acceleration for a given model-id.
int indexSteeringAngleAck(const unsigned char &model_id)
Get the vector-index that stores the ackermann steering angle for a given model-id.
int indexX(const unsigned char &model_id)
Get the vector-index that stores the x-position for a given model-id.
Definition state_index.h:24
bool hasAccLon(const unsigned char &model_id)
Indicates if given model contains a longitudinal acceleration.
int indexTrafficLightState(const unsigned char &model_id)
Get the vector-index that stores the traffic light state for a given model-id.
int indexYaw(const unsigned char &model_id)
Get the vector-index that stores the yaw for a given model-id.
bool hasWidth(const unsigned char &model_id)
Indicates if given model contains a width.