perception_interfaces 1.0.0
Loading...
Searching...
No Matches
state_index.h
Go to the documentation of this file.
1
30#pragma once
31
32
33namespace perception_msgs {
34
35namespace object_access {
36
37 const std::string kExceptionUnknownStateEntry = "Model with the following ID does not support requested entry: ";
38
45 inline int indexX(const unsigned char& model_id) {
46 switch(model_id) {
47 case EGO::MODEL_ID:
48 return EGO::X;
49 case EGORWS::MODEL_ID:
50 return EGORWS::X;
51 case ISCACTR::MODEL_ID:
52 return ISCACTR::X;
53 case HEXAMOTION::MODEL_ID:
54 return HEXAMOTION::X;
55 case TRAFFICLIGHT::MODEL_ID:
56 return TRAFFICLIGHT::X;
57 default:
58 throw std::invalid_argument(kExceptionUnknownStateEntry + std::to_string(model_id) + ", " + "x");
59 }
60 }
61
68 inline int indexY(const unsigned char& model_id) {
69 switch(model_id) {
70 case EGO::MODEL_ID:
71 return EGO::Y;
72 case EGORWS::MODEL_ID:
73 return EGORWS::Y;
74 case ISCACTR::MODEL_ID:
75 return ISCACTR::Y;
76 case HEXAMOTION::MODEL_ID:
77 return HEXAMOTION::Y;
78 case TRAFFICLIGHT::MODEL_ID:
79 return TRAFFICLIGHT::Y;
80 default:
81 throw std::invalid_argument(kExceptionUnknownStateEntry + std::to_string(model_id) + ", " + "y");
82 }
83 }
84
91 inline int indexZ(const unsigned char& model_id) {
92 switch(model_id) {
93 case EGO::MODEL_ID:
94 return EGO::Z;
95 case EGORWS::MODEL_ID:
96 return EGORWS::Z;
97 case ISCACTR::MODEL_ID:
98 return ISCACTR::Z;
99 case HEXAMOTION::MODEL_ID:
100 return HEXAMOTION::Z;
101 case TRAFFICLIGHT::MODEL_ID:
102 return TRAFFICLIGHT::Z;
103 default:
104 throw std::invalid_argument(kExceptionUnknownStateEntry + std::to_string(model_id) + ", " + "z");
105 }
106 }
107
114 inline int indexVelLon(const unsigned char& model_id) {
115 switch(model_id) {
116 case EGO::MODEL_ID:
117 return EGO::VEL_LON;
118 case EGORWS::MODEL_ID:
119 return EGORWS::VEL_LON;
120 case ISCACTR::MODEL_ID:
121 return ISCACTR::VEL_LON;
122 case HEXAMOTION::MODEL_ID:
123 return HEXAMOTION::VEL_LON;
124 default:
125 throw std::invalid_argument(kExceptionUnknownStateEntry + std::to_string(model_id) + ", " + "vel_lon");
126 }
127 }
128
135 inline int indexVelLat(const unsigned char& model_id) {
136 switch(model_id) {
137 case EGO::MODEL_ID:
138 return EGO::VEL_LAT;
139 case EGORWS::MODEL_ID:
140 return EGORWS::VEL_LAT;
141 case ISCACTR::MODEL_ID:
142 return ISCACTR::VEL_LAT;
143 case HEXAMOTION::MODEL_ID:
144 return HEXAMOTION::VEL_LAT;
145 default:
146 throw std::invalid_argument(kExceptionUnknownStateEntry + std::to_string(model_id) + ", " + "vel_lat");
147 }
148 }
149
156 inline int indexAccLon(const unsigned char& model_id) {
157 switch(model_id) {
158 case EGO::MODEL_ID:
159 return EGO::ACC_LON;
160 case EGORWS::MODEL_ID:
161 return EGORWS::ACC_LON;
162 case ISCACTR::MODEL_ID:
163 return ISCACTR::ACC_LON;
164 case HEXAMOTION::MODEL_ID:
165 return HEXAMOTION::ACC_LON;
166 default:
167 throw std::invalid_argument(kExceptionUnknownStateEntry + std::to_string(model_id) + ", " + "acc_lon");
168 }
169 }
170
177 inline int indexAccLat(const unsigned char& model_id) {
178 switch(model_id) {
179 case EGO::MODEL_ID:
180 return EGO::ACC_LAT;
181 case EGORWS::MODEL_ID:
182 return EGORWS::ACC_LAT;
183 case ISCACTR::MODEL_ID:
184 return ISCACTR::ACC_LAT;
185 case HEXAMOTION::MODEL_ID:
186 return HEXAMOTION::ACC_LAT;
187 default:
188 throw std::invalid_argument(kExceptionUnknownStateEntry + std::to_string(model_id) + ", " + "acc_lat");
189 }
190 }
191
198 inline int indexRoll(const unsigned char& model_id) {
199 switch(model_id) {
200 case EGO::MODEL_ID:
201 return EGO::ROLL;
202 case EGORWS::MODEL_ID:
203 return EGORWS::ROLL;
204 case HEXAMOTION::MODEL_ID:
205 return HEXAMOTION::ROLL;
206 default:
207 throw std::invalid_argument(kExceptionUnknownStateEntry + std::to_string(model_id) + ", " + "roll");
208 }
209 }
210
217 inline int indexRollRate(const unsigned char& model_id) {
218 switch(model_id) {
219 case HEXAMOTION::MODEL_ID:
220 return HEXAMOTION::ROLL_RATE;
221 default:
222 throw std::invalid_argument(kExceptionUnknownStateEntry + std::to_string(model_id) + ", " + "roll_rate");
223 }
224 }
225
232 inline int indexPitch(const unsigned char& model_id) {
233 switch(model_id) {
234 case EGO::MODEL_ID:
235 return EGO::PITCH;
236 case EGORWS::MODEL_ID:
237 return EGORWS::PITCH;
238 case HEXAMOTION::MODEL_ID:
239 return HEXAMOTION::PITCH;
240 default:
241 throw std::invalid_argument(kExceptionUnknownStateEntry + std::to_string(model_id) + ", " + "pitch");
242 }
243 }
244
251 inline int indexPitchRate(const unsigned char& model_id) {
252 switch(model_id) {
253 case HEXAMOTION::MODEL_ID:
254 return HEXAMOTION::PITCH_RATE;
255 default:
256 throw std::invalid_argument(kExceptionUnknownStateEntry + std::to_string(model_id) + ", " + "pitch_rate");
257 }
258 }
259
266 inline int indexYaw(const unsigned char& model_id) {
267 switch(model_id) {
268 case EGO::MODEL_ID:
269 return EGO::YAW;
270 case EGORWS::MODEL_ID:
271 return EGORWS::YAW;
272 case ISCACTR::MODEL_ID:
273 return ISCACTR::YAW;
274 case HEXAMOTION::MODEL_ID:
275 return HEXAMOTION::YAW;
276 default:
277 throw std::invalid_argument(kExceptionUnknownStateEntry + std::to_string(model_id) + ", " + "yaw");
278 }
279 }
280
287 inline int indexYawRate(const unsigned char& model_id) {
288 switch(model_id) {
289 case EGO::MODEL_ID:
290 return EGO::YAW_RATE;
291 case EGORWS::MODEL_ID:
292 return EGORWS::YAW_RATE;
293 case ISCACTR::MODEL_ID:
294 return ISCACTR::YAW_RATE;
295 case HEXAMOTION::MODEL_ID:
296 return HEXAMOTION::YAW_RATE;
297 default:
298 throw std::invalid_argument(kExceptionUnknownStateEntry + std::to_string(model_id) + ", " + "yaw_rate");
299 }
300 }
301
308 inline int indexSteeringAngleAck(const unsigned char& model_id) {
309 switch(model_id) {
310 case EGO::MODEL_ID:
311 return EGO::STEERING_ANGLE_ACK;
312 default:
313 throw std::invalid_argument(kExceptionUnknownStateEntry + std::to_string(model_id) + ", " + "steering_angle_ack");
314 }
315 }
316
323 inline int indexSteeringAngleRateAck(const unsigned char& model_id) {
324 switch(model_id) {
325 case EGO::MODEL_ID:
326 return EGO::STEERING_ANGLE_RATE_ACK;
327 default:
328 throw std::invalid_argument(kExceptionUnknownStateEntry + std::to_string(model_id) + ", " + "steering_angle_rate_ack");
329 }
330 }
331
338 inline int indexSteeringAngleFront(const unsigned char& model_id) {
339 switch(model_id) {
340 case EGORWS::MODEL_ID:
341 return EGORWS::STEERING_ANGLE_FRONT;
342 default:
343 throw std::invalid_argument(kExceptionUnknownStateEntry + std::to_string(model_id) + ", " + "steering_angle_front");
344 }
345 }
346
353 inline int indexSteeringAngleRear(const unsigned char& model_id) {
354 switch(model_id) {
355 case EGORWS::MODEL_ID:
356 return EGORWS::STEERING_ANGLE_REAR;
357 default:
358 throw std::invalid_argument(kExceptionUnknownStateEntry + std::to_string(model_id) + ", " + "steering_angle_rear");
359 }
360 }
361
368 inline int indexWidth(const unsigned char& model_id) {
369 switch(model_id) {
370 case ISCACTR::MODEL_ID:
371 return ISCACTR::WIDTH;
372 case HEXAMOTION::MODEL_ID:
373 return HEXAMOTION::WIDTH;
374 default:
375 throw std::invalid_argument(kExceptionUnknownStateEntry + std::to_string(model_id) + ", " + "width");
376 }
377 }
378
385 inline int indexLength(const unsigned char& model_id) {
386 switch(model_id) {
387 case ISCACTR::MODEL_ID:
388 return ISCACTR::LENGTH;
389 case HEXAMOTION::MODEL_ID:
390 return HEXAMOTION::LENGTH;
391 default:
392 throw std::invalid_argument(kExceptionUnknownStateEntry + std::to_string(model_id) + ", " + "length");
393 }
394 }
395
402 inline int indexHeight(const unsigned char& model_id) {
403 switch(model_id) {
404 case ISCACTR::MODEL_ID:
405 return ISCACTR::HEIGHT;
406 case HEXAMOTION::MODEL_ID:
407 return HEXAMOTION::HEIGHT;
408 default:
409 throw std::invalid_argument(kExceptionUnknownStateEntry + std::to_string(model_id) + ", " + "height");
410 }
411 }
412
419 inline int indexStandstill(const unsigned char& model_id) {
420 switch(model_id) {
421 case EGO::MODEL_ID:
422 return EGO::STANDSTILL;
423 case EGORWS::MODEL_ID:
424 return EGORWS::STANDSTILL;
425 default:
426 throw std::invalid_argument(kExceptionUnknownStateEntry + std::to_string(model_id) + ", " + "standstill");
427 }
428 }
429
436 inline int indexTurnIndicator(const unsigned char& model_id) {
437 switch(model_id) {
438 case EGO::MODEL_ID:
439 return EGO::TURN_INDICATOR;
440 case EGORWS::MODEL_ID:
441 return EGORWS::TURN_INDICATOR;
442 case ISCACTR::MODEL_ID:
443 return ISCACTR::TURN_INDICATOR;
444 case HEXAMOTION::MODEL_ID:
445 return HEXAMOTION::TURN_INDICATOR;
446 default:
447 throw std::invalid_argument(kExceptionUnknownStateEntry + std::to_string(model_id) + ", " + "turn_indicator");
448 }
449 }
450
457 inline int indexBrakeLight(const unsigned char& model_id) {
458 switch(model_id) {
459 case EGO::MODEL_ID:
460 return EGO::BRAKE_LIGHT;
461 case EGORWS::MODEL_ID:
462 return EGORWS::BRAKE_LIGHT;
463 case ISCACTR::MODEL_ID:
464 return ISCACTR::BRAKE_LIGHT;
465 case HEXAMOTION::MODEL_ID:
466 return HEXAMOTION::BRAKE_LIGHT;
467 default:
468 throw std::invalid_argument(kExceptionUnknownStateEntry + std::to_string(model_id) + ", " + "brake_light");
469 }
470 }
471
478 inline int indexReverseLight(const unsigned char& model_id) {
479 switch(model_id) {
480 case EGO::MODEL_ID:
481 return EGO::REVERSE_LIGHT;
482 case EGORWS::MODEL_ID:
483 return EGORWS::REVERSE_LIGHT;
484 case ISCACTR::MODEL_ID:
485 return ISCACTR::REVERSE_LIGHT;
486 case HEXAMOTION::MODEL_ID:
487 return HEXAMOTION::REVERSE_LIGHT;
488 default:
489 throw std::invalid_argument(kExceptionUnknownStateEntry + std::to_string(model_id) + ", " + "reverse_light");
490 }
491 }
492
500 inline int indexTrafficLightState(const unsigned char& model_id) {
501 switch(model_id) {
502 case TRAFFICLIGHT::MODEL_ID:
503 return TRAFFICLIGHT::STATE;
504 default:
505 throw std::invalid_argument(kExceptionUnknownStateEntry + std::to_string(model_id) + ", " + "traffic_light_state");
506 }
507 }
508
516 inline int indexTrafficLightType(const unsigned char& model_id) {
517 switch(model_id) {
518 case TRAFFICLIGHT::MODEL_ID:
519 return TRAFFICLIGHT::TYPE;
520 default:
521 throw std::invalid_argument(kExceptionUnknownStateEntry + std::to_string(model_id) + ", " + "traffic_light_type");
522 }
523 }
524
532 inline bool hasX(const unsigned char& model_id) {
533 switch(model_id) {
534 case EGO::MODEL_ID:
535 return true;
536 case EGORWS::MODEL_ID:
537 return true;
538 case ISCACTR::MODEL_ID:
539 return true;
540 case HEXAMOTION::MODEL_ID:
541 return true;
542 case TRAFFICLIGHT::MODEL_ID:
543 return true;
544 default:
545 return false;
546 }
547 }
548
556 inline bool hasY(const unsigned char& model_id) {
557 switch(model_id) {
558 case EGO::MODEL_ID:
559 return true;
560 case EGORWS::MODEL_ID:
561 return true;
562 case ISCACTR::MODEL_ID:
563 return true;
564 case HEXAMOTION::MODEL_ID:
565 return true;
566 case TRAFFICLIGHT::MODEL_ID:
567 return true;
568 default:
569 return false;
570 }
571 }
572
580 inline bool hasZ(const unsigned char& model_id) {
581 switch(model_id) {
582 case EGO::MODEL_ID:
583 return true;
584 case EGORWS::MODEL_ID:
585 return true;
586 case ISCACTR::MODEL_ID:
587 return true;
588 case HEXAMOTION::MODEL_ID:
589 return true;
590 case TRAFFICLIGHT::MODEL_ID:
591 return true;
592 default:
593 return false;
594 }
595 }
596
604 inline bool hasVelLon(const unsigned char& model_id) {
605 switch(model_id) {
606 case EGO::MODEL_ID:
607 return true;
608 case EGORWS::MODEL_ID:
609 return true;
610 case ISCACTR::MODEL_ID:
611 return true;
612 case HEXAMOTION::MODEL_ID:
613 return true;
614 default:
615 return false;
616 }
617 }
618
626 inline bool hasVelLat(const unsigned char& model_id) {
627 switch(model_id) {
628 case EGO::MODEL_ID:
629 return true;
630 case EGORWS::MODEL_ID:
631 return true;
632 case ISCACTR::MODEL_ID:
633 return true;
634 case HEXAMOTION::MODEL_ID:
635 return true;
636 default:
637 return false;
638 }
639 }
640
648 inline bool hasAccLon(const unsigned char& model_id) {
649 switch(model_id) {
650 case EGO::MODEL_ID:
651 return true;
652 case EGORWS::MODEL_ID:
653 return true;
654 case ISCACTR::MODEL_ID:
655 return true;
656 case HEXAMOTION::MODEL_ID:
657 return true;
658 default:
659 return false;
660 }
661 }
662
670 inline bool hasAccLat(const unsigned char& model_id) {
671 switch(model_id) {
672 case EGO::MODEL_ID:
673 return true;
674 case EGORWS::MODEL_ID:
675 return true;
676 case ISCACTR::MODEL_ID:
677 return true;
678 case HEXAMOTION::MODEL_ID:
679 return true;
680 default:
681 return false;
682 }
683 }
684
692 inline bool hasRoll(const unsigned char& model_id) {
693 switch(model_id) {
694 case EGO::MODEL_ID:
695 return true;
696 case EGORWS::MODEL_ID:
697 return true;
698 case ISCACTR::MODEL_ID:
699 return false;
700 case HEXAMOTION::MODEL_ID:
701 return true;
702 default:
703 return false;
704 }
705 }
706
714 inline bool hasRollRate(const unsigned char& model_id) {
715 switch(model_id) {
716 case EGO::MODEL_ID:
717 return false;
718 case EGORWS::MODEL_ID:
719 return false;
720 case ISCACTR::MODEL_ID:
721 return false;
722 case HEXAMOTION::MODEL_ID:
723 return true;
724 default:
725 return false;
726 }
727 }
728
736 inline bool hasPitch(const unsigned char& model_id) {
737 switch(model_id) {
738 case EGO::MODEL_ID:
739 return true;
740 case EGORWS::MODEL_ID:
741 return true;
742 case ISCACTR::MODEL_ID:
743 return false;
744 case HEXAMOTION::MODEL_ID:
745 return true;
746 default:
747 return false;
748 }
749 }
750
758 inline bool hasPitchRate(const unsigned char& model_id) {
759 switch(model_id) {
760 case EGO::MODEL_ID:
761 return false;
762 case EGORWS::MODEL_ID:
763 return false;
764 case ISCACTR::MODEL_ID:
765 return false;
766 case HEXAMOTION::MODEL_ID:
767 return true;
768 default:
769 return false;
770 }
771 }
772
780 inline bool hasYaw(const unsigned char& model_id) {
781 switch(model_id) {
782 case EGO::MODEL_ID:
783 return true;
784 case EGORWS::MODEL_ID:
785 return true;
786 case ISCACTR::MODEL_ID:
787 return true;
788 case HEXAMOTION::MODEL_ID:
789 return true;
790 default:
791 return false;
792 }
793 }
794
802 inline bool hasYawRate(const unsigned char& model_id) {
803 switch(model_id) {
804 case EGO::MODEL_ID:
805 return true;
806 case EGORWS::MODEL_ID:
807 return true;
808 case ISCACTR::MODEL_ID:
809 return true;
810 case HEXAMOTION::MODEL_ID:
811 return true;
812 default:
813 return false;
814 }
815 }
816
824 inline bool hasSteeringAngleAck(const unsigned char& model_id) {
825 switch(model_id) {
826 case EGO::MODEL_ID:
827 return true;
828 case EGORWS::MODEL_ID:
829 return false;
830 case ISCACTR::MODEL_ID:
831 return false;
832 case HEXAMOTION::MODEL_ID:
833 return false;
834 default:
835 return false;
836 }
837 }
838
846 inline bool hasSteeringAngleRateAck(const unsigned char& model_id) {
847 switch(model_id) {
848 case EGO::MODEL_ID:
849 return true;
850 case EGORWS::MODEL_ID:
851 return false;
852 case ISCACTR::MODEL_ID:
853 return false;
854 case HEXAMOTION::MODEL_ID:
855 return false;
856 default:
857 return false;
858 }
859 }
860
868 inline bool hasSteeringAngleFront(const unsigned char& model_id) {
869 switch(model_id) {
870 case EGORWS::MODEL_ID:
871 return true;
872 default:
873 return false;
874 }
875 }
876
884 inline bool hasSteeringAngleRear(const unsigned char& model_id) {
885 switch(model_id) {
886 case EGORWS::MODEL_ID:
887 return true;
888 default:
889 return false;
890 }
891 }
892
900 inline bool hasWidth(const unsigned char& model_id) {
901 switch(model_id) {
902 case EGO::MODEL_ID:
903 return false;
904 case EGORWS::MODEL_ID:
905 return false;
906 case ISCACTR::MODEL_ID:
907 return true;
908 case HEXAMOTION::MODEL_ID:
909 return true;
910 default:
911 return false;
912 }
913 }
914
922 inline bool hasLength(const unsigned char& model_id) {
923 switch(model_id) {
924 case EGO::MODEL_ID:
925 return false;
926 case EGORWS::MODEL_ID:
927 return false;
928 case ISCACTR::MODEL_ID:
929 return true;
930 case HEXAMOTION::MODEL_ID:
931 return true;
932 default:
933 return false;
934 }
935 }
936
944 inline bool hasHeight(const unsigned char& model_id) {
945 switch(model_id) {
946 case EGO::MODEL_ID:
947 return false;
948 case EGORWS::MODEL_ID:
949 return false;
950 case ISCACTR::MODEL_ID:
951 return true;
952 case HEXAMOTION::MODEL_ID:
953 return true;
954 default:
955 return false;
956 }
957 }
958
966 inline bool hasStandstill(const unsigned char& model_id) {
967 switch(model_id) {
968 case EGO::MODEL_ID:
969 return true;
970 case EGORWS::MODEL_ID:
971 return true;
972 case ISCACTR::MODEL_ID:
973 return false;
974 case HEXAMOTION::MODEL_ID:
975 return false;
976 default:
977 return false;
978 }
979 }
980
988 inline bool hasTurnIndicator(const unsigned char& model_id) {
989 switch(model_id) {
990 case EGO::MODEL_ID:
991 return true;
992 case EGORWS::MODEL_ID:
993 return true;
994 case ISCACTR::MODEL_ID:
995 return true;
996 case HEXAMOTION::MODEL_ID:
997 return true;
998 default:
999 return false;
1000 }
1001 }
1002
1010 inline bool hasBrakeLight(const unsigned char& model_id) {
1011 switch(model_id) {
1012 case EGO::MODEL_ID:
1013 return true;
1014 case EGORWS::MODEL_ID:
1015 return true;
1016 case ISCACTR::MODEL_ID:
1017 return true;
1018 case HEXAMOTION::MODEL_ID:
1019 return true;
1020 default:
1021 return false;
1022 }
1023 }
1024
1032 inline bool hasReverseLight(const unsigned char& model_id) {
1033 switch(model_id) {
1034 case EGO::MODEL_ID:
1035 return true;
1036 case EGORWS::MODEL_ID:
1037 return true;
1038 case ISCACTR::MODEL_ID:
1039 return true;
1040 case HEXAMOTION::MODEL_ID:
1041 return true;
1042 default:
1043 return false;
1044 }
1045 }
1046
1055 inline bool hasTrafficLightState(const unsigned char& model_id) {
1056 switch(model_id) {
1057 case TRAFFICLIGHT::MODEL_ID:
1058 return true;
1059 default:
1060 return false;
1061 }
1062 }
1063
1072 inline bool hasTrafficLightType(const unsigned char& model_id) {
1073 switch(model_id) {
1074 case TRAFFICLIGHT::MODEL_ID:
1075 return true;
1076 default:
1077 return false;
1078 }
1079 }
1080
1081} // namespace object_access
1082
1083} // 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.
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:68
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:91
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:45
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.