perception_interfaces 1.1.2
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.

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 649 of file state_index.h.

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

◆ 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 627 of file state_index.h.

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

◆ 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 989 of file state_index.h.

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

◆ 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 923 of file state_index.h.

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

◆ 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 901 of file state_index.h.

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

◆ 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 715 of file state_index.h.

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

◆ 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 737 of file state_index.h.

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

◆ 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 1011 of file state_index.h.

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

◆ 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 671 of file state_index.h.

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

◆ 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 693 of file state_index.h.

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

◆ 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 945 of file state_index.h.

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

◆ 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 803 of file state_index.h.

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

◆ 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 847 of file state_index.h.

847 {
848 switch(model_id) {
849 case EGORWS::MODEL_ID:
850 return true;
851 default:
852 return false;
853 }
854 }

◆ 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 825 of file state_index.h.

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

◆ 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 863 of file state_index.h.

863 {
864 switch(model_id) {
865 case EGORWS::MODEL_ID:
866 return true;
867 default:
868 return false;
869 }
870 }

◆ 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 1034 of file state_index.h.

1034 {
1035 switch(model_id) {
1036 case TRAFFICLIGHT::MODEL_ID:
1037 return true;
1038 default:
1039 return false;
1040 }
1041 }

◆ 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 1051 of file state_index.h.

1051 {
1052 switch(model_id) {
1053 case TRAFFICLIGHT::MODEL_ID:
1054 return true;
1055 default:
1056 return false;
1057 }
1058 }

◆ 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 967 of file state_index.h.

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

◆ 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 605 of file state_index.h.

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

◆ 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 583 of file state_index.h.

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

◆ 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 879 of file state_index.h.

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

◆ 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 511 of file state_index.h.

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

◆ 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 535 of file state_index.h.

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

◆ 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 759 of file state_index.h.

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

◆ 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 781 of file state_index.h.

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

◆ 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 559 of file state_index.h.

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

◆ 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 156 of file state_index.h.

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

◆ 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 135 of file state_index.h.

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

◆ 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 436 of file state_index.h.

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

◆ 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 381 of file state_index.h.

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

◆ 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 364 of file state_index.h.

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

◆ 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 211 of file state_index.h.

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

◆ 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 230 of file state_index.h.

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

◆ 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 457 of file state_index.h.

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

◆ 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 177 of file state_index.h.

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

◆ 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 196 of file state_index.h.

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

◆ 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 398 of file state_index.h.

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

◆ 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 287 of file state_index.h.

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

◆ 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 317 of file state_index.h.

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

◆ 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 302 of file state_index.h.

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

◆ 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 332 of file state_index.h.

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

◆ 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 479 of file state_index.h.

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

◆ 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 495 of file state_index.h.

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

◆ 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 415 of file state_index.h.

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

◆ 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 114 of file state_index.h.

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

◆ 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 93 of file state_index.h.

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

◆ 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 347 of file state_index.h.

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

◆ 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 24 of file state_index.h.

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

◆ 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 47 of file state_index.h.

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

◆ 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 245 of file state_index.h.

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

◆ 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 266 of file state_index.h.

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

◆ 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 70 of file state_index.h.

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

Variable Documentation

◆ kExceptionUnknownStateEntry

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

Definition at line 16 of file state_index.h.