perception_interfaces 1.0.0
Loading...
Searching...
No Matches
Functions | Variables
state_index.h File Reference

Object state vector indices based on state model. More...

Go to the source code of this file.

Functions

int perception_msgs::object_access::indexX (const unsigned char &model_id)
 Get the vector-index that stores the x-position for a given model-id.
 
int perception_msgs::object_access::indexY (const unsigned char &model_id)
 Get the vector-index that stores the y-position for a given model-id.
 
int perception_msgs::object_access::indexZ (const unsigned char &model_id)
 Get the vector-index that stores the z-position for a given model-id.
 
int perception_msgs::object_access::indexVelLon (const unsigned char &model_id)
 Get the vector-index that stores the longitudinal velocity for a given model-id.
 
int perception_msgs::object_access::indexVelLat (const unsigned char &model_id)
 Get the vector-index that stores the lateral velocity for a given model-id.
 
int perception_msgs::object_access::indexAccLon (const unsigned char &model_id)
 Get the vector-index that stores the longitudinal acceleration for a given model-id.
 
int perception_msgs::object_access::indexAccLat (const unsigned char &model_id)
 Get the vector-index that stores the lateral acceleration for a given model-id.
 
int perception_msgs::object_access::indexRoll (const unsigned char &model_id)
 Get the vector-index that stores the roll for a given model-id.
 
int perception_msgs::object_access::indexRollRate (const unsigned char &model_id)
 Get the vector-index that stores the roll rate for a given model-id.
 
int perception_msgs::object_access::indexPitch (const unsigned char &model_id)
 Get the vector-index that stores the pitch for a given model-id.
 
int perception_msgs::object_access::indexPitchRate (const unsigned char &model_id)
 Get the vector-index that stores the pitch rate for a given model-id.
 
int perception_msgs::object_access::indexYaw (const unsigned char &model_id)
 Get the vector-index that stores the yaw for a given model-id.
 
int perception_msgs::object_access::indexYawRate (const unsigned char &model_id)
 Get the vector-index that stores the yaw-rate for a given model-id.
 
int perception_msgs::object_access::indexSteeringAngleAck (const unsigned char &model_id)
 Get the vector-index that stores the ackermann steering angle for a given model-id.
 
int perception_msgs::object_access::indexSteeringAngleRateAck (const unsigned char &model_id)
 Get the vector-index that stores the steering angle rate for a given model-id.
 
int perception_msgs::object_access::indexSteeringAngleFront (const unsigned char &model_id)
 Get the vector-index that stores the front wheel angle for a given model-id.
 
int perception_msgs::object_access::indexSteeringAngleRear (const unsigned char &model_id)
 Get the vector-index that stores the rear wheel angle for a given model-id.
 
int perception_msgs::object_access::indexWidth (const unsigned char &model_id)
 Get the vector-index that stores the width for a given model-id.
 
int perception_msgs::object_access::indexLength (const unsigned char &model_id)
 Get the vector-index that stores the length for a given model-id.
 
int perception_msgs::object_access::indexHeight (const unsigned char &model_id)
 Get the vector-index that stores the height for a given model-id.
 
int perception_msgs::object_access::indexStandstill (const unsigned char &model_id)
 Get the vector-index that stores the standstill indication for a given model-id.
 
int perception_msgs::object_access::indexTurnIndicator (const unsigned char &model_id)
 Get the vector-index that stores the turn indicator state for a given model-id.
 
int perception_msgs::object_access::indexBrakeLight (const unsigned char &model_id)
 Get the vector-index that stores the brake light state for a given model-id.
 
int perception_msgs::object_access::indexReverseLight (const unsigned char &model_id)
 Get the vector-index that stores the reverse light state for a given model-id.
 
int perception_msgs::object_access::indexTrafficLightState (const unsigned char &model_id)
 Get the vector-index that stores the traffic light state for a given model-id.
 
int perception_msgs::object_access::indexTrafficLightType (const unsigned char &model_id)
 Get the vector-index that stores the traffic light type for a given model-id.
 
bool perception_msgs::object_access::hasX (const unsigned char &model_id)
 Indicates if given model contains an x-position.
 
bool perception_msgs::object_access::hasY (const unsigned char &model_id)
 Indicates if given model contains a y-position.
 
bool perception_msgs::object_access::hasZ (const unsigned char &model_id)
 Indicates if given model contains a z-position.
 
bool perception_msgs::object_access::hasVelLon (const unsigned char &model_id)
 Indicates if given model contains a longitudinal velocity.
 
bool perception_msgs::object_access::hasVelLat (const unsigned char &model_id)
 Indicates if given model contains a lateral velocity.
 
bool perception_msgs::object_access::hasAccLon (const unsigned char &model_id)
 Indicates if given model contains a longitudinal acceleration.
 
bool perception_msgs::object_access::hasAccLat (const unsigned char &model_id)
 Indicates if given model contains a lateral acceleration.
 
bool perception_msgs::object_access::hasRoll (const unsigned char &model_id)
 Indicates if given model contains a roll.
 
bool perception_msgs::object_access::hasRollRate (const unsigned char &model_id)
 Indicates if given model contains a roll-rate.
 
bool perception_msgs::object_access::hasPitch (const unsigned char &model_id)
 Indicates if given model contains a pitch.
 
bool perception_msgs::object_access::hasPitchRate (const unsigned char &model_id)
 Indicates if given model contains a pitch-rate.
 
bool perception_msgs::object_access::hasYaw (const unsigned char &model_id)
 Indicates if given model contains a yaw.
 
bool perception_msgs::object_access::hasYawRate (const unsigned char &model_id)
 Indicates if given model contains a yaw-rate.
 
bool perception_msgs::object_access::hasSteeringAngleAck (const unsigned char &model_id)
 Indicates if given model contains an ackermann steering angle.
 
bool perception_msgs::object_access::hasSteeringAngleRateAck (const unsigned char &model_id)
 Indicates if given model contains an ackermann steering angle rate.
 
bool perception_msgs::object_access::hasSteeringAngleFront (const unsigned char &model_id)
 Indicates if given model contains a front wheel angle.
 
bool perception_msgs::object_access::hasSteeringAngleRear (const unsigned char &model_id)
 Indicates if given model contains a rear wheel angle.
 
bool perception_msgs::object_access::hasWidth (const unsigned char &model_id)
 Indicates if given model contains a width.
 
bool perception_msgs::object_access::hasLength (const unsigned char &model_id)
 Indicates if given model contains a length.
 
bool perception_msgs::object_access::hasHeight (const unsigned char &model_id)
 Indicates if given model contains a height.
 
bool perception_msgs::object_access::hasStandstill (const unsigned char &model_id)
 Indicates if given model contains a standstill indication.
 
bool perception_msgs::object_access::hasTurnIndicator (const unsigned char &model_id)
 Indicates if given model contains a turn indicator state.
 
bool perception_msgs::object_access::hasBrakeLight (const unsigned char &model_id)
 Indicates if given model contains a brake light state.
 
bool perception_msgs::object_access::hasReverseLight (const unsigned char &model_id)
 Indicates if given model contains a reverse light state.
 
bool perception_msgs::object_access::hasTrafficLightState (const unsigned char &model_id)
 Indicates if given model contains a traffic light state.
 
bool perception_msgs::object_access::hasTrafficLightType (const unsigned char &model_id)
 Indicates if given model contains a traffic light type.
 

Variables

const std::string perception_msgs::object_access::kExceptionUnknownStateEntry = "Model with the following ID does not support requested entry: "
 

Detailed Description

Object state vector indices based on state model.

============================================================================ MIT License

Copyright (c) 2025 Institute for Automotive Engineering (ika), RWTH Aachen University

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE

SOFTWARE.

Definition in file state_index.h.

Function Documentation

◆ hasAccLat()

bool perception_msgs::object_access::hasAccLat ( const unsigned char &  model_id)
inline

Indicates if given model contains a lateral acceleration.

Parameters
model_id
Returns
true
false

Definition at line 670 of file state_index.h.

670 {
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 }

◆ hasAccLon()

bool perception_msgs::object_access::hasAccLon ( const unsigned char &  model_id)
inline

Indicates if given model contains a longitudinal acceleration.

Parameters
model_id
Returns
true
false

Definition at line 648 of file state_index.h.

648 {
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 }

◆ hasBrakeLight()

bool perception_msgs::object_access::hasBrakeLight ( const unsigned char &  model_id)
inline

Indicates if given model contains a brake light state.

Parameters
model_id
Returns
true
false

Definition at line 1010 of file state_index.h.

1010 {
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 }

◆ hasHeight()

bool perception_msgs::object_access::hasHeight ( const unsigned char &  model_id)
inline

Indicates if given model contains a height.

Parameters
model_id
Returns
true
false

Definition at line 944 of file state_index.h.

944 {
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 }

◆ hasLength()

bool perception_msgs::object_access::hasLength ( const unsigned char &  model_id)
inline

Indicates if given model contains a length.

Parameters
model_id
Returns
true
false

Definition at line 922 of file state_index.h.

922 {
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 }

◆ hasPitch()

bool perception_msgs::object_access::hasPitch ( const unsigned char &  model_id)
inline

Indicates if given model contains a pitch.

Parameters
model_id
Returns
true
false

Definition at line 736 of file state_index.h.

736 {
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 }

◆ hasPitchRate()

bool perception_msgs::object_access::hasPitchRate ( const unsigned char &  model_id)
inline

Indicates if given model contains a pitch-rate.

Parameters
model_id
Returns
true
false

Definition at line 758 of file state_index.h.

758 {
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 }

◆ hasReverseLight()

bool perception_msgs::object_access::hasReverseLight ( const unsigned char &  model_id)
inline

Indicates if given model contains a reverse light state.

Parameters
model_id
Returns
true
false

Definition at line 1032 of file state_index.h.

1032 {
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 }

◆ hasRoll()

bool perception_msgs::object_access::hasRoll ( const unsigned char &  model_id)
inline

Indicates if given model contains a roll.

Parameters
model_id
Returns
true
false

Definition at line 692 of file state_index.h.

692 {
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 }

◆ hasRollRate()

bool perception_msgs::object_access::hasRollRate ( const unsigned char &  model_id)
inline

Indicates if given model contains a roll-rate.

Parameters
model_id
Returns
true
false

Definition at line 714 of file state_index.h.

714 {
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 }

◆ hasStandstill()

bool perception_msgs::object_access::hasStandstill ( const unsigned char &  model_id)
inline

Indicates if given model contains a standstill indication.

Parameters
model_id
Returns
true
false

Definition at line 966 of file state_index.h.

966 {
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 }

◆ hasSteeringAngleAck()

bool perception_msgs::object_access::hasSteeringAngleAck ( const unsigned char &  model_id)
inline

Indicates if given model contains an ackermann steering angle.

Parameters
model_id
Returns
true
false

Definition at line 824 of file state_index.h.

824 {
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 }

◆ hasSteeringAngleFront()

bool perception_msgs::object_access::hasSteeringAngleFront ( const unsigned char &  model_id)
inline

Indicates if given model contains a front wheel angle.

Parameters
model_id
Returns
true
false

Definition at line 868 of file state_index.h.

868 {
869 switch(model_id) {
870 case EGORWS::MODEL_ID:
871 return true;
872 default:
873 return false;
874 }
875 }

◆ hasSteeringAngleRateAck()

bool perception_msgs::object_access::hasSteeringAngleRateAck ( const unsigned char &  model_id)
inline

Indicates if given model contains an ackermann steering angle rate.

Parameters
model_id
Returns
true
false

Definition at line 846 of file state_index.h.

846 {
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 }

◆ hasSteeringAngleRear()

bool perception_msgs::object_access::hasSteeringAngleRear ( const unsigned char &  model_id)
inline

Indicates if given model contains a rear wheel angle.

Parameters
model_id
Returns
true
false

Definition at line 884 of file state_index.h.

884 {
885 switch(model_id) {
886 case EGORWS::MODEL_ID:
887 return true;
888 default:
889 return false;
890 }
891 }

◆ hasTrafficLightState()

bool perception_msgs::object_access::hasTrafficLightState ( const unsigned char &  model_id)
inline

Indicates if given model contains a traffic light state.

Parameters
model_id
Returns
true
false

Definition at line 1055 of file state_index.h.

1055 {
1056 switch(model_id) {
1057 case TRAFFICLIGHT::MODEL_ID:
1058 return true;
1059 default:
1060 return false;
1061 }
1062 }

◆ hasTrafficLightType()

bool perception_msgs::object_access::hasTrafficLightType ( const unsigned char &  model_id)
inline

Indicates if given model contains a traffic light type.

Parameters
model_id
Returns
true
false

Definition at line 1072 of file state_index.h.

1072 {
1073 switch(model_id) {
1074 case TRAFFICLIGHT::MODEL_ID:
1075 return true;
1076 default:
1077 return false;
1078 }
1079 }

◆ hasTurnIndicator()

bool perception_msgs::object_access::hasTurnIndicator ( const unsigned char &  model_id)
inline

Indicates if given model contains a turn indicator state.

Parameters
model_id
Returns
true
false

Definition at line 988 of file state_index.h.

988 {
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 }

◆ hasVelLat()

bool perception_msgs::object_access::hasVelLat ( const unsigned char &  model_id)
inline

Indicates if given model contains a lateral velocity.

Parameters
model_id
Returns
true
false

Definition at line 626 of file state_index.h.

626 {
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 }

◆ hasVelLon()

bool perception_msgs::object_access::hasVelLon ( const unsigned char &  model_id)
inline

Indicates if given model contains a longitudinal velocity.

Parameters
model_id
Returns
true
false

Definition at line 604 of file state_index.h.

604 {
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 }

◆ hasWidth()

bool perception_msgs::object_access::hasWidth ( const unsigned char &  model_id)
inline

Indicates if given model contains a width.

Parameters
model_id
Returns
true
false

Definition at line 900 of file state_index.h.

900 {
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 }

◆ hasX()

bool perception_msgs::object_access::hasX ( const unsigned char &  model_id)
inline

Indicates if given model contains an x-position.

Parameters
model_id
Returns
true
false

Definition at line 532 of file state_index.h.

532 {
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 }

◆ hasY()

bool perception_msgs::object_access::hasY ( const unsigned char &  model_id)
inline

Indicates if given model contains a y-position.

Parameters
model_id
Returns
true
false

Definition at line 556 of file state_index.h.

556 {
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 }

◆ hasYaw()

bool perception_msgs::object_access::hasYaw ( const unsigned char &  model_id)
inline

Indicates if given model contains a yaw.

Parameters
model_id
Returns
true
false

Definition at line 780 of file state_index.h.

780 {
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 }

◆ hasYawRate()

bool perception_msgs::object_access::hasYawRate ( const unsigned char &  model_id)
inline

Indicates if given model contains a yaw-rate.

Parameters
model_id
Returns
true
false

Definition at line 802 of file state_index.h.

802 {
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 }

◆ hasZ()

bool perception_msgs::object_access::hasZ ( const unsigned char &  model_id)
inline

Indicates if given model contains a z-position.

Parameters
model_id
Returns
true
false

Definition at line 580 of file state_index.h.

580 {
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 }

◆ indexAccLat()

int perception_msgs::object_access::indexAccLat ( const unsigned char &  model_id)
inline

Get the vector-index that stores the lateral acceleration for a given model-id.

Parameters
model_id
Returns
int

Definition at line 177 of file state_index.h.

177 {
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 }

◆ indexAccLon()

int perception_msgs::object_access::indexAccLon ( const unsigned char &  model_id)
inline

Get the vector-index that stores the longitudinal acceleration for a given model-id.

Parameters
model_id
Returns
int

Definition at line 156 of file state_index.h.

156 {
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 }

◆ indexBrakeLight()

int perception_msgs::object_access::indexBrakeLight ( const unsigned char &  model_id)
inline

Get the vector-index that stores the brake light state for a given model-id.

Parameters
model_id
Returns
int

Definition at line 457 of file state_index.h.

457 {
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 }

◆ indexHeight()

int perception_msgs::object_access::indexHeight ( const unsigned char &  model_id)
inline

Get the vector-index that stores the height for a given model-id.

Parameters
model_id
Returns
int

Definition at line 402 of file state_index.h.

402 {
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 }

◆ indexLength()

int perception_msgs::object_access::indexLength ( const unsigned char &  model_id)
inline

Get the vector-index that stores the length for a given model-id.

Parameters
model_id
Returns
int

Definition at line 385 of file state_index.h.

385 {
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 }

◆ indexPitch()

int perception_msgs::object_access::indexPitch ( const unsigned char &  model_id)
inline

Get the vector-index that stores the pitch for a given model-id.

Parameters
model_id
Returns
int

Definition at line 232 of file state_index.h.

232 {
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 }

◆ indexPitchRate()

int perception_msgs::object_access::indexPitchRate ( const unsigned char &  model_id)
inline

Get the vector-index that stores the pitch rate for a given model-id.

Parameters
model_id
Returns
int

Definition at line 251 of file state_index.h.

251 {
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 }

◆ indexReverseLight()

int perception_msgs::object_access::indexReverseLight ( const unsigned char &  model_id)
inline

Get the vector-index that stores the reverse light state for a given model-id.

Parameters
model_id
Returns
int

Definition at line 478 of file state_index.h.

478 {
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 }

◆ indexRoll()

int perception_msgs::object_access::indexRoll ( const unsigned char &  model_id)
inline

Get the vector-index that stores the roll for a given model-id.

Parameters
model_id
Returns
int

Definition at line 198 of file state_index.h.

198 {
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 }

◆ indexRollRate()

int perception_msgs::object_access::indexRollRate ( const unsigned char &  model_id)
inline

Get the vector-index that stores the roll rate for a given model-id.

Parameters
model_id
Returns
int

Definition at line 217 of file state_index.h.

217 {
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 }

◆ indexStandstill()

int perception_msgs::object_access::indexStandstill ( const unsigned char &  model_id)
inline

Get the vector-index that stores the standstill indication for a given model-id.

Parameters
model_id
Returns
int

Definition at line 419 of file state_index.h.

419 {
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 }

◆ indexSteeringAngleAck()

int perception_msgs::object_access::indexSteeringAngleAck ( const unsigned char &  model_id)
inline

Get the vector-index that stores the ackermann steering angle for a given model-id.

Parameters
model_id
Returns
int

Definition at line 308 of file state_index.h.

308 {
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 }

◆ indexSteeringAngleFront()

int perception_msgs::object_access::indexSteeringAngleFront ( const unsigned char &  model_id)
inline

Get the vector-index that stores the front wheel angle for a given model-id.

Parameters
model_id
Returns
int

Definition at line 338 of file state_index.h.

338 {
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 }

◆ indexSteeringAngleRateAck()

int perception_msgs::object_access::indexSteeringAngleRateAck ( const unsigned char &  model_id)
inline

Get the vector-index that stores the steering angle rate for a given model-id.

Parameters
model_id
Returns
int

Definition at line 323 of file state_index.h.

323 {
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 }

◆ indexSteeringAngleRear()

int perception_msgs::object_access::indexSteeringAngleRear ( const unsigned char &  model_id)
inline

Get the vector-index that stores the rear wheel angle for a given model-id.

Parameters
model_id
Returns
int

Definition at line 353 of file state_index.h.

353 {
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 }

◆ indexTrafficLightState()

int perception_msgs::object_access::indexTrafficLightState ( const unsigned char &  model_id)
inline

Get the vector-index that stores the traffic light state for a given model-id.

Parameters
model_id
Returns
int

Definition at line 500 of file state_index.h.

500 {
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 }

◆ indexTrafficLightType()

int perception_msgs::object_access::indexTrafficLightType ( const unsigned char &  model_id)
inline

Get the vector-index that stores the traffic light type for a given model-id.

Parameters
model_id
Returns
int

Definition at line 516 of file state_index.h.

516 {
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 }

◆ indexTurnIndicator()

int perception_msgs::object_access::indexTurnIndicator ( const unsigned char &  model_id)
inline

Get the vector-index that stores the turn indicator state for a given model-id.

Parameters
model_id
Returns
int

Definition at line 436 of file state_index.h.

436 {
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 }

◆ indexVelLat()

int perception_msgs::object_access::indexVelLat ( const unsigned char &  model_id)
inline

Get the vector-index that stores the lateral velocity for a given model-id.

Parameters
model_id
Returns
int

Definition at line 135 of file state_index.h.

135 {
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 }

◆ indexVelLon()

int perception_msgs::object_access::indexVelLon ( const unsigned char &  model_id)
inline

Get the vector-index that stores the longitudinal velocity for a given model-id.

Parameters
model_id
Returns
int

Definition at line 114 of file state_index.h.

114 {
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 }

◆ indexWidth()

int perception_msgs::object_access::indexWidth ( const unsigned char &  model_id)
inline

Get the vector-index that stores the width for a given model-id.

Parameters
model_id
Returns
int

Definition at line 368 of file state_index.h.

368 {
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 }

◆ indexX()

int perception_msgs::object_access::indexX ( const unsigned char &  model_id)
inline

Get the vector-index that stores the x-position for a given model-id.

Parameters
model_id
Returns
int

Definition at line 45 of file state_index.h.

45 {
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 }

◆ indexY()

int perception_msgs::object_access::indexY ( const unsigned char &  model_id)
inline

Get the vector-index that stores the y-position for a given model-id.

Parameters
model_id
Returns
int

Definition at line 68 of file state_index.h.

68 {
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 }

◆ indexYaw()

int perception_msgs::object_access::indexYaw ( const unsigned char &  model_id)
inline

Get the vector-index that stores the yaw for a given model-id.

Parameters
model_id
Returns
int

Definition at line 266 of file state_index.h.

266 {
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 }

◆ indexYawRate()

int perception_msgs::object_access::indexYawRate ( const unsigned char &  model_id)
inline

Get the vector-index that stores the yaw-rate for a given model-id.

Parameters
model_id
Returns
int

Definition at line 287 of file state_index.h.

287 {
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 }

◆ indexZ()

int perception_msgs::object_access::indexZ ( const unsigned char &  model_id)
inline

Get the vector-index that stores the z-position for a given model-id.

Parameters
model_id
Returns
int

Definition at line 91 of file state_index.h.

91 {
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 }

Variable Documentation

◆ kExceptionUnknownStateEntry

const std::string perception_msgs::object_access::kExceptionUnknownStateEntry = "Model with the following ID does not support requested entry: "

Definition at line 37 of file state_index.h.