24 #include <interfaces/HumanSkeletonInterface.h>
26 #include <core/exceptions/software.h>
45 HumanSkeletonInterface::HumanSkeletonInterface() : Interface()
47 data_size =
sizeof(HumanSkeletonInterface_data_t);
48 data_ptr = malloc(data_size);
49 data = (HumanSkeletonInterface_data_t *)data_ptr;
50 data_ts = (interface_data_ts_t *)data_ptr;
51 memset(data_ptr, 0, data_size);
52 enum_map_State[(int)STATE_INVALID] =
"STATE_INVALID";
53 enum_map_State[(int)STATE_DETECTING_POSE] =
"STATE_DETECTING_POSE";
54 enum_map_State[(int)STATE_CALIBRATING] =
"STATE_CALIBRATING";
55 enum_map_State[(int)STATE_TRACKING] =
"STATE_TRACKING";
56 add_fieldinfo(IFT_ENUM,
"state", 1, &data->state,
"State", &enum_map_State);
57 add_fieldinfo(IFT_UINT32,
"user_id", 1, &data->user_id);
58 add_fieldinfo(IFT_INT32,
"visibility_history", 1, &data->visibility_history);
59 add_fieldinfo(IFT_STRING,
"pose", 32, data->pose);
60 add_fieldinfo(IFT_FLOAT,
"com", 3, &data->com);
61 add_fieldinfo(IFT_FLOAT,
"pos_head", 3, &data->pos_head);
62 add_fieldinfo(IFT_FLOAT,
"pos_head_confidence", 1, &data->pos_head_confidence);
63 add_fieldinfo(IFT_FLOAT,
"pos_neck", 3, &data->pos_neck);
64 add_fieldinfo(IFT_FLOAT,
"pos_neck_confidence", 1, &data->pos_neck_confidence);
65 add_fieldinfo(IFT_FLOAT,
"pos_torso", 3, &data->pos_torso);
66 add_fieldinfo(IFT_FLOAT,
"pos_torso_confidence", 1, &data->pos_torso_confidence);
67 add_fieldinfo(IFT_FLOAT,
"pos_waist", 3, &data->pos_waist);
68 add_fieldinfo(IFT_FLOAT,
"pos_waist_confidence", 1, &data->pos_waist_confidence);
69 add_fieldinfo(IFT_FLOAT,
"pos_left_collar", 3, &data->pos_left_collar);
70 add_fieldinfo(IFT_FLOAT,
"pos_left_collar_confidence", 1, &data->pos_left_collar_confidence);
71 add_fieldinfo(IFT_FLOAT,
"pos_left_shoulder", 3, &data->pos_left_shoulder);
72 add_fieldinfo(IFT_FLOAT,
"pos_left_shoulder_confidence", 1, &data->pos_left_shoulder_confidence);
73 add_fieldinfo(IFT_FLOAT,
"pos_left_elbow", 3, &data->pos_left_elbow);
74 add_fieldinfo(IFT_FLOAT,
"pos_left_elbow_confidence", 1, &data->pos_left_elbow_confidence);
75 add_fieldinfo(IFT_FLOAT,
"pos_left_wrist", 3, &data->pos_left_wrist);
76 add_fieldinfo(IFT_FLOAT,
"pos_left_wrist_confidence", 1, &data->pos_left_wrist_confidence);
77 add_fieldinfo(IFT_FLOAT,
"pos_left_hand", 3, &data->pos_left_hand);
78 add_fieldinfo(IFT_FLOAT,
"pos_left_hand_confidence", 1, &data->pos_left_hand_confidence);
79 add_fieldinfo(IFT_FLOAT,
"pos_left_fingertip", 3, &data->pos_left_fingertip);
80 add_fieldinfo(IFT_FLOAT,
"pos_left_fingertip_confidence", 1, &data->pos_left_fingertip_confidence);
81 add_fieldinfo(IFT_FLOAT,
"pos_right_collar", 3, &data->pos_right_collar);
82 add_fieldinfo(IFT_FLOAT,
"pos_right_collar_confidence", 1, &data->pos_right_collar_confidence);
83 add_fieldinfo(IFT_FLOAT,
"pos_right_shoulder", 3, &data->pos_right_shoulder);
84 add_fieldinfo(IFT_FLOAT,
"pos_right_shoulder_confidence", 1, &data->pos_right_shoulder_confidence);
85 add_fieldinfo(IFT_FLOAT,
"pos_right_elbow", 3, &data->pos_right_elbow);
86 add_fieldinfo(IFT_FLOAT,
"pos_right_elbow_confidence", 1, &data->pos_right_elbow_confidence);
87 add_fieldinfo(IFT_FLOAT,
"pos_right_wrist", 3, &data->pos_right_wrist);
88 add_fieldinfo(IFT_FLOAT,
"pos_right_wrist_confidence", 1, &data->pos_right_wrist_confidence);
89 add_fieldinfo(IFT_FLOAT,
"pos_right_hand", 3, &data->pos_right_hand);
90 add_fieldinfo(IFT_FLOAT,
"pos_right_hand_confidence", 1, &data->pos_right_hand_confidence);
91 add_fieldinfo(IFT_FLOAT,
"pos_right_fingertip", 3, &data->pos_right_fingertip);
92 add_fieldinfo(IFT_FLOAT,
"pos_right_fingertip_confidence", 1, &data->pos_right_fingertip_confidence);
93 add_fieldinfo(IFT_FLOAT,
"pos_left_hip", 3, &data->pos_left_hip);
94 add_fieldinfo(IFT_FLOAT,
"pos_left_hip_confidence", 1, &data->pos_left_hip_confidence);
95 add_fieldinfo(IFT_FLOAT,
"pos_left_knee", 3, &data->pos_left_knee);
96 add_fieldinfo(IFT_FLOAT,
"pos_left_knee_confidence", 1, &data->pos_left_knee_confidence);
97 add_fieldinfo(IFT_FLOAT,
"pos_left_ankle", 3, &data->pos_left_ankle);
98 add_fieldinfo(IFT_FLOAT,
"pos_left_ankle_confidence", 1, &data->pos_left_ankle_confidence);
99 add_fieldinfo(IFT_FLOAT,
"pos_left_foot", 3, &data->pos_left_foot);
100 add_fieldinfo(IFT_FLOAT,
"pos_left_foot_confidence", 1, &data->pos_left_foot_confidence);
101 add_fieldinfo(IFT_FLOAT,
"pos_right_hip", 3, &data->pos_right_hip);
102 add_fieldinfo(IFT_FLOAT,
"pos_right_hip_confidence", 1, &data->pos_right_hip_confidence);
103 add_fieldinfo(IFT_FLOAT,
"pos_right_knee", 3, &data->pos_right_knee);
104 add_fieldinfo(IFT_FLOAT,
"pos_right_knee_confidence", 1, &data->pos_right_knee_confidence);
105 add_fieldinfo(IFT_FLOAT,
"pos_right_ankle", 3, &data->pos_right_ankle);
106 add_fieldinfo(IFT_FLOAT,
"pos_right_ankle_confidence", 1, &data->pos_right_ankle_confidence);
107 add_fieldinfo(IFT_FLOAT,
"pos_right_foot", 3, &data->pos_right_foot);
108 add_fieldinfo(IFT_FLOAT,
"pos_right_foot_confidence", 1, &data->pos_right_foot_confidence);
109 add_fieldinfo(IFT_FLOAT,
"ori_head", 9, &data->ori_head);
110 add_fieldinfo(IFT_FLOAT,
"ori_head_confidence", 1, &data->ori_head_confidence);
111 add_fieldinfo(IFT_FLOAT,
"ori_neck", 9, &data->ori_neck);
112 add_fieldinfo(IFT_FLOAT,
"ori_neck_confidence", 1, &data->ori_neck_confidence);
113 add_fieldinfo(IFT_FLOAT,
"ori_torso", 9, &data->ori_torso);
114 add_fieldinfo(IFT_FLOAT,
"ori_torso_confidence", 1, &data->ori_torso_confidence);
115 add_fieldinfo(IFT_FLOAT,
"ori_waist", 9, &data->ori_waist);
116 add_fieldinfo(IFT_FLOAT,
"ori_waist_confidence", 1, &data->ori_waist_confidence);
117 add_fieldinfo(IFT_FLOAT,
"ori_left_collar", 9, &data->ori_left_collar);
118 add_fieldinfo(IFT_FLOAT,
"ori_left_collar_confidence", 1, &data->ori_left_collar_confidence);
119 add_fieldinfo(IFT_FLOAT,
"ori_left_shoulder", 9, &data->ori_left_shoulder);
120 add_fieldinfo(IFT_FLOAT,
"ori_left_shoulder_confidence", 1, &data->ori_left_shoulder_confidence);
121 add_fieldinfo(IFT_FLOAT,
"ori_left_elbow", 9, &data->ori_left_elbow);
122 add_fieldinfo(IFT_FLOAT,
"ori_left_elbow_confidence", 1, &data->ori_left_elbow_confidence);
123 add_fieldinfo(IFT_FLOAT,
"ori_left_wrist", 9, &data->ori_left_wrist);
124 add_fieldinfo(IFT_FLOAT,
"ori_left_wrist_confidence", 1, &data->ori_left_wrist_confidence);
125 add_fieldinfo(IFT_FLOAT,
"ori_left_hand", 9, &data->ori_left_hand);
126 add_fieldinfo(IFT_FLOAT,
"ori_left_hand_confidence", 1, &data->ori_left_hand_confidence);
127 add_fieldinfo(IFT_FLOAT,
"ori_left_fingertip", 9, &data->ori_left_fingertip);
128 add_fieldinfo(IFT_FLOAT,
"ori_left_fingertip_confidence", 1, &data->ori_left_fingertip_confidence);
129 add_fieldinfo(IFT_FLOAT,
"ori_right_collar", 9, &data->ori_right_collar);
130 add_fieldinfo(IFT_FLOAT,
"ori_right_collar_confidence", 1, &data->ori_right_collar_confidence);
131 add_fieldinfo(IFT_FLOAT,
"ori_right_shoulder", 9, &data->ori_right_shoulder);
132 add_fieldinfo(IFT_FLOAT,
"ori_right_shoulder_confidence", 1, &data->ori_right_shoulder_confidence);
133 add_fieldinfo(IFT_FLOAT,
"ori_right_elbow", 9, &data->ori_right_elbow);
134 add_fieldinfo(IFT_FLOAT,
"ori_right_elbow_confidence", 1, &data->ori_right_elbow_confidence);
135 add_fieldinfo(IFT_FLOAT,
"ori_right_wrist", 9, &data->ori_right_wrist);
136 add_fieldinfo(IFT_FLOAT,
"ori_right_wrist_confidence", 1, &data->ori_right_wrist_confidence);
137 add_fieldinfo(IFT_FLOAT,
"ori_right_hand", 9, &data->ori_right_hand);
138 add_fieldinfo(IFT_FLOAT,
"ori_right_hand_confidence", 1, &data->ori_right_hand_confidence);
139 add_fieldinfo(IFT_FLOAT,
"ori_right_fingertip", 9, &data->ori_right_fingertip);
140 add_fieldinfo(IFT_FLOAT,
"ori_right_fingertip_confidence", 1, &data->ori_right_fingertip_confidence);
141 add_fieldinfo(IFT_FLOAT,
"ori_left_hip", 9, &data->ori_left_hip);
142 add_fieldinfo(IFT_FLOAT,
"ori_left_hip_confidence", 1, &data->ori_left_hip_confidence);
143 add_fieldinfo(IFT_FLOAT,
"ori_left_knee", 9, &data->ori_left_knee);
144 add_fieldinfo(IFT_FLOAT,
"ori_left_knee_confidence", 1, &data->ori_left_knee_confidence);
145 add_fieldinfo(IFT_FLOAT,
"ori_left_ankle", 9, &data->ori_left_ankle);
146 add_fieldinfo(IFT_FLOAT,
"ori_left_ankle_confidence", 1, &data->ori_left_ankle_confidence);
147 add_fieldinfo(IFT_FLOAT,
"ori_left_foot", 9, &data->ori_left_foot);
148 add_fieldinfo(IFT_FLOAT,
"ori_left_foot_confidence", 1, &data->ori_left_foot_confidence);
149 add_fieldinfo(IFT_FLOAT,
"ori_right_hip", 9, &data->ori_right_hip);
150 add_fieldinfo(IFT_FLOAT,
"ori_right_hip_confidence", 1, &data->ori_right_hip_confidence);
151 add_fieldinfo(IFT_FLOAT,
"ori_right_knee", 9, &data->ori_right_knee);
152 add_fieldinfo(IFT_FLOAT,
"ori_right_knee_confidence", 1, &data->ori_right_knee_confidence);
153 add_fieldinfo(IFT_FLOAT,
"ori_right_ankle", 9, &data->ori_right_ankle);
154 add_fieldinfo(IFT_FLOAT,
"ori_right_ankle_confidence", 1, &data->ori_right_ankle_confidence);
155 add_fieldinfo(IFT_FLOAT,
"ori_right_foot", 9, &data->ori_right_foot);
156 add_fieldinfo(IFT_FLOAT,
"ori_right_foot_confidence", 1, &data->ori_right_foot_confidence);
157 unsigned char tmp_hash[] = {0x5f, 0x47, 0x2f, 0xb3, 0x8b, 0xf1, 0xe1, 0xa, 0xb9, 0x42, 0x34, 0xea, 0x83, 0x43, 0x94, 0x37};
162 HumanSkeletonInterface::~HumanSkeletonInterface()
171 HumanSkeletonInterface::tostring_State(
State value)
const
174 case STATE_INVALID:
return "STATE_INVALID";
175 case STATE_DETECTING_POSE:
return "STATE_DETECTING_POSE";
176 case STATE_CALIBRATING:
return "STATE_CALIBRATING";
177 case STATE_TRACKING:
return "STATE_TRACKING";
178 default:
return "UNKNOWN";
187 HumanSkeletonInterface::state()
const
197 HumanSkeletonInterface::maxlenof_state()
const
207 HumanSkeletonInterface::set_state(
const State new_state)
209 set_field(data->state, new_state);
217 HumanSkeletonInterface::user_id()
const
219 return data->user_id;
227 HumanSkeletonInterface::maxlenof_user_id()
const
237 HumanSkeletonInterface::set_user_id(
const uint32_t new_user_id)
239 set_field(data->user_id, new_user_id);
253 HumanSkeletonInterface::visibility_history()
const
255 return data->visibility_history;
263 HumanSkeletonInterface::maxlenof_visibility_history()
const
279 HumanSkeletonInterface::set_visibility_history(
const int32_t new_visibility_history)
281 set_field(data->visibility_history, new_visibility_history);
289 HumanSkeletonInterface::pose()
const
299 HumanSkeletonInterface::maxlenof_pose()
const
309 HumanSkeletonInterface::set_pose(
const char * new_pose)
311 set_field(data->pose, new_pose);
319 HumanSkeletonInterface::com()
const
331 HumanSkeletonInterface::com(
unsigned int index)
const
334 throw Exception(
"Index value %u out of bounds (0..2)", index);
336 return data->com[index];
344 HumanSkeletonInterface::maxlenof_com()
const
354 HumanSkeletonInterface::set_com(
const float * new_com)
356 set_field(data->com, new_com);
365 HumanSkeletonInterface::set_com(
unsigned int index,
const float new_com)
367 set_field(data->com, index, new_com);
374 HumanSkeletonInterface::pos_head()
const
376 return data->pos_head;
386 HumanSkeletonInterface::pos_head(
unsigned int index)
const
389 throw Exception(
"Index value %u out of bounds (0..2)", index);
391 return data->pos_head[index];
399 HumanSkeletonInterface::maxlenof_pos_head()
const
409 HumanSkeletonInterface::set_pos_head(
const float * new_pos_head)
411 set_field(data->pos_head, new_pos_head);
420 HumanSkeletonInterface::set_pos_head(
unsigned int index,
const float new_pos_head)
422 set_field(data->pos_head, index, new_pos_head);
430 HumanSkeletonInterface::pos_head_confidence()
const
432 return data->pos_head_confidence;
440 HumanSkeletonInterface::maxlenof_pos_head_confidence()
const
451 HumanSkeletonInterface::set_pos_head_confidence(
const float new_pos_head_confidence)
453 set_field(data->pos_head_confidence, new_pos_head_confidence);
461 HumanSkeletonInterface::pos_neck()
const
463 return data->pos_neck;
473 HumanSkeletonInterface::pos_neck(
unsigned int index)
const
476 throw Exception(
"Index value %u out of bounds (0..2)", index);
478 return data->pos_neck[index];
486 HumanSkeletonInterface::maxlenof_pos_neck()
const
496 HumanSkeletonInterface::set_pos_neck(
const float * new_pos_neck)
498 set_field(data->pos_neck, new_pos_neck);
507 HumanSkeletonInterface::set_pos_neck(
unsigned int index,
const float new_pos_neck)
509 set_field(data->pos_neck, index, new_pos_neck);
517 HumanSkeletonInterface::pos_neck_confidence()
const
519 return data->pos_neck_confidence;
527 HumanSkeletonInterface::maxlenof_pos_neck_confidence()
const
538 HumanSkeletonInterface::set_pos_neck_confidence(
const float new_pos_neck_confidence)
540 set_field(data->pos_neck_confidence, new_pos_neck_confidence);
548 HumanSkeletonInterface::pos_torso()
const
550 return data->pos_torso;
560 HumanSkeletonInterface::pos_torso(
unsigned int index)
const
563 throw Exception(
"Index value %u out of bounds (0..2)", index);
565 return data->pos_torso[index];
573 HumanSkeletonInterface::maxlenof_pos_torso()
const
583 HumanSkeletonInterface::set_pos_torso(
const float * new_pos_torso)
585 set_field(data->pos_torso, new_pos_torso);
594 HumanSkeletonInterface::set_pos_torso(
unsigned int index,
const float new_pos_torso)
596 set_field(data->pos_torso, index, new_pos_torso);
604 HumanSkeletonInterface::pos_torso_confidence()
const
606 return data->pos_torso_confidence;
614 HumanSkeletonInterface::maxlenof_pos_torso_confidence()
const
625 HumanSkeletonInterface::set_pos_torso_confidence(
const float new_pos_torso_confidence)
627 set_field(data->pos_torso_confidence, new_pos_torso_confidence);
635 HumanSkeletonInterface::pos_waist()
const
637 return data->pos_waist;
647 HumanSkeletonInterface::pos_waist(
unsigned int index)
const
650 throw Exception(
"Index value %u out of bounds (0..2)", index);
652 return data->pos_waist[index];
660 HumanSkeletonInterface::maxlenof_pos_waist()
const
670 HumanSkeletonInterface::set_pos_waist(
const float * new_pos_waist)
672 set_field(data->pos_waist, new_pos_waist);
681 HumanSkeletonInterface::set_pos_waist(
unsigned int index,
const float new_pos_waist)
683 set_field(data->pos_waist, index, new_pos_waist);
691 HumanSkeletonInterface::pos_waist_confidence()
const
693 return data->pos_waist_confidence;
701 HumanSkeletonInterface::maxlenof_pos_waist_confidence()
const
712 HumanSkeletonInterface::set_pos_waist_confidence(
const float new_pos_waist_confidence)
714 set_field(data->pos_waist_confidence, new_pos_waist_confidence);
723 HumanSkeletonInterface::pos_left_collar()
const
725 return data->pos_left_collar;
736 HumanSkeletonInterface::pos_left_collar(
unsigned int index)
const
739 throw Exception(
"Index value %u out of bounds (0..2)", index);
741 return data->pos_left_collar[index];
749 HumanSkeletonInterface::maxlenof_pos_left_collar()
const
760 HumanSkeletonInterface::set_pos_left_collar(
const float * new_pos_left_collar)
762 set_field(data->pos_left_collar, new_pos_left_collar);
772 HumanSkeletonInterface::set_pos_left_collar(
unsigned int index,
const float new_pos_left_collar)
774 set_field(data->pos_left_collar, index, new_pos_left_collar);
782 HumanSkeletonInterface::pos_left_collar_confidence()
const
784 return data->pos_left_collar_confidence;
792 HumanSkeletonInterface::maxlenof_pos_left_collar_confidence()
const
803 HumanSkeletonInterface::set_pos_left_collar_confidence(
const float new_pos_left_collar_confidence)
805 set_field(data->pos_left_collar_confidence, new_pos_left_collar_confidence);
814 HumanSkeletonInterface::pos_left_shoulder()
const
816 return data->pos_left_shoulder;
827 HumanSkeletonInterface::pos_left_shoulder(
unsigned int index)
const
830 throw Exception(
"Index value %u out of bounds (0..2)", index);
832 return data->pos_left_shoulder[index];
840 HumanSkeletonInterface::maxlenof_pos_left_shoulder()
const
851 HumanSkeletonInterface::set_pos_left_shoulder(
const float * new_pos_left_shoulder)
853 set_field(data->pos_left_shoulder, new_pos_left_shoulder);
863 HumanSkeletonInterface::set_pos_left_shoulder(
unsigned int index,
const float new_pos_left_shoulder)
865 set_field(data->pos_left_shoulder, index, new_pos_left_shoulder);
873 HumanSkeletonInterface::pos_left_shoulder_confidence()
const
875 return data->pos_left_shoulder_confidence;
883 HumanSkeletonInterface::maxlenof_pos_left_shoulder_confidence()
const
894 HumanSkeletonInterface::set_pos_left_shoulder_confidence(
const float new_pos_left_shoulder_confidence)
896 set_field(data->pos_left_shoulder_confidence, new_pos_left_shoulder_confidence);
905 HumanSkeletonInterface::pos_left_elbow()
const
907 return data->pos_left_elbow;
918 HumanSkeletonInterface::pos_left_elbow(
unsigned int index)
const
921 throw Exception(
"Index value %u out of bounds (0..2)", index);
923 return data->pos_left_elbow[index];
931 HumanSkeletonInterface::maxlenof_pos_left_elbow()
const
942 HumanSkeletonInterface::set_pos_left_elbow(
const float * new_pos_left_elbow)
944 set_field(data->pos_left_elbow, new_pos_left_elbow);
954 HumanSkeletonInterface::set_pos_left_elbow(
unsigned int index,
const float new_pos_left_elbow)
956 set_field(data->pos_left_elbow, index, new_pos_left_elbow);
964 HumanSkeletonInterface::pos_left_elbow_confidence()
const
966 return data->pos_left_elbow_confidence;
974 HumanSkeletonInterface::maxlenof_pos_left_elbow_confidence()
const
985 HumanSkeletonInterface::set_pos_left_elbow_confidence(
const float new_pos_left_elbow_confidence)
987 set_field(data->pos_left_elbow_confidence, new_pos_left_elbow_confidence);
996 HumanSkeletonInterface::pos_left_wrist()
const
998 return data->pos_left_wrist;
1009 HumanSkeletonInterface::pos_left_wrist(
unsigned int index)
const
1012 throw Exception(
"Index value %u out of bounds (0..2)", index);
1014 return data->pos_left_wrist[index];
1022 HumanSkeletonInterface::maxlenof_pos_left_wrist()
const
1033 HumanSkeletonInterface::set_pos_left_wrist(
const float * new_pos_left_wrist)
1035 set_field(data->pos_left_wrist, new_pos_left_wrist);
1045 HumanSkeletonInterface::set_pos_left_wrist(
unsigned int index,
const float new_pos_left_wrist)
1047 set_field(data->pos_left_wrist, index, new_pos_left_wrist);
1055 HumanSkeletonInterface::pos_left_wrist_confidence()
const
1057 return data->pos_left_wrist_confidence;
1065 HumanSkeletonInterface::maxlenof_pos_left_wrist_confidence()
const
1076 HumanSkeletonInterface::set_pos_left_wrist_confidence(
const float new_pos_left_wrist_confidence)
1078 set_field(data->pos_left_wrist_confidence, new_pos_left_wrist_confidence);
1087 HumanSkeletonInterface::pos_left_hand()
const
1089 return data->pos_left_hand;
1100 HumanSkeletonInterface::pos_left_hand(
unsigned int index)
const
1103 throw Exception(
"Index value %u out of bounds (0..2)", index);
1105 return data->pos_left_hand[index];
1113 HumanSkeletonInterface::maxlenof_pos_left_hand()
const
1124 HumanSkeletonInterface::set_pos_left_hand(
const float * new_pos_left_hand)
1126 set_field(data->pos_left_hand, new_pos_left_hand);
1136 HumanSkeletonInterface::set_pos_left_hand(
unsigned int index,
const float new_pos_left_hand)
1138 set_field(data->pos_left_hand, index, new_pos_left_hand);
1146 HumanSkeletonInterface::pos_left_hand_confidence()
const
1148 return data->pos_left_hand_confidence;
1156 HumanSkeletonInterface::maxlenof_pos_left_hand_confidence()
const
1167 HumanSkeletonInterface::set_pos_left_hand_confidence(
const float new_pos_left_hand_confidence)
1169 set_field(data->pos_left_hand_confidence, new_pos_left_hand_confidence);
1178 HumanSkeletonInterface::pos_left_fingertip()
const
1180 return data->pos_left_fingertip;
1191 HumanSkeletonInterface::pos_left_fingertip(
unsigned int index)
const
1194 throw Exception(
"Index value %u out of bounds (0..2)", index);
1196 return data->pos_left_fingertip[index];
1204 HumanSkeletonInterface::maxlenof_pos_left_fingertip()
const
1215 HumanSkeletonInterface::set_pos_left_fingertip(
const float * new_pos_left_fingertip)
1217 set_field(data->pos_left_fingertip, new_pos_left_fingertip);
1227 HumanSkeletonInterface::set_pos_left_fingertip(
unsigned int index,
const float new_pos_left_fingertip)
1229 set_field(data->pos_left_fingertip, index, new_pos_left_fingertip);
1237 HumanSkeletonInterface::pos_left_fingertip_confidence()
const
1239 return data->pos_left_fingertip_confidence;
1247 HumanSkeletonInterface::maxlenof_pos_left_fingertip_confidence()
const
1258 HumanSkeletonInterface::set_pos_left_fingertip_confidence(
const float new_pos_left_fingertip_confidence)
1260 set_field(data->pos_left_fingertip_confidence, new_pos_left_fingertip_confidence);
1269 HumanSkeletonInterface::pos_right_collar()
const
1271 return data->pos_right_collar;
1282 HumanSkeletonInterface::pos_right_collar(
unsigned int index)
const
1285 throw Exception(
"Index value %u out of bounds (0..2)", index);
1287 return data->pos_right_collar[index];
1295 HumanSkeletonInterface::maxlenof_pos_right_collar()
const
1306 HumanSkeletonInterface::set_pos_right_collar(
const float * new_pos_right_collar)
1308 set_field(data->pos_right_collar, new_pos_right_collar);
1318 HumanSkeletonInterface::set_pos_right_collar(
unsigned int index,
const float new_pos_right_collar)
1320 set_field(data->pos_right_collar, index, new_pos_right_collar);
1328 HumanSkeletonInterface::pos_right_collar_confidence()
const
1330 return data->pos_right_collar_confidence;
1338 HumanSkeletonInterface::maxlenof_pos_right_collar_confidence()
const
1349 HumanSkeletonInterface::set_pos_right_collar_confidence(
const float new_pos_right_collar_confidence)
1351 set_field(data->pos_right_collar_confidence, new_pos_right_collar_confidence);
1360 HumanSkeletonInterface::pos_right_shoulder()
const
1362 return data->pos_right_shoulder;
1373 HumanSkeletonInterface::pos_right_shoulder(
unsigned int index)
const
1376 throw Exception(
"Index value %u out of bounds (0..2)", index);
1378 return data->pos_right_shoulder[index];
1386 HumanSkeletonInterface::maxlenof_pos_right_shoulder()
const
1397 HumanSkeletonInterface::set_pos_right_shoulder(
const float * new_pos_right_shoulder)
1399 set_field(data->pos_right_shoulder, new_pos_right_shoulder);
1409 HumanSkeletonInterface::set_pos_right_shoulder(
unsigned int index,
const float new_pos_right_shoulder)
1411 set_field(data->pos_right_shoulder, index, new_pos_right_shoulder);
1419 HumanSkeletonInterface::pos_right_shoulder_confidence()
const
1421 return data->pos_right_shoulder_confidence;
1429 HumanSkeletonInterface::maxlenof_pos_right_shoulder_confidence()
const
1440 HumanSkeletonInterface::set_pos_right_shoulder_confidence(
const float new_pos_right_shoulder_confidence)
1442 set_field(data->pos_right_shoulder_confidence, new_pos_right_shoulder_confidence);
1451 HumanSkeletonInterface::pos_right_elbow()
const
1453 return data->pos_right_elbow;
1464 HumanSkeletonInterface::pos_right_elbow(
unsigned int index)
const
1467 throw Exception(
"Index value %u out of bounds (0..2)", index);
1469 return data->pos_right_elbow[index];
1477 HumanSkeletonInterface::maxlenof_pos_right_elbow()
const
1488 HumanSkeletonInterface::set_pos_right_elbow(
const float * new_pos_right_elbow)
1490 set_field(data->pos_right_elbow, new_pos_right_elbow);
1500 HumanSkeletonInterface::set_pos_right_elbow(
unsigned int index,
const float new_pos_right_elbow)
1502 set_field(data->pos_right_elbow, index, new_pos_right_elbow);
1510 HumanSkeletonInterface::pos_right_elbow_confidence()
const
1512 return data->pos_right_elbow_confidence;
1520 HumanSkeletonInterface::maxlenof_pos_right_elbow_confidence()
const
1531 HumanSkeletonInterface::set_pos_right_elbow_confidence(
const float new_pos_right_elbow_confidence)
1533 set_field(data->pos_right_elbow_confidence, new_pos_right_elbow_confidence);
1542 HumanSkeletonInterface::pos_right_wrist()
const
1544 return data->pos_right_wrist;
1555 HumanSkeletonInterface::pos_right_wrist(
unsigned int index)
const
1558 throw Exception(
"Index value %u out of bounds (0..2)", index);
1560 return data->pos_right_wrist[index];
1568 HumanSkeletonInterface::maxlenof_pos_right_wrist()
const
1579 HumanSkeletonInterface::set_pos_right_wrist(
const float * new_pos_right_wrist)
1581 set_field(data->pos_right_wrist, new_pos_right_wrist);
1591 HumanSkeletonInterface::set_pos_right_wrist(
unsigned int index,
const float new_pos_right_wrist)
1593 set_field(data->pos_right_wrist, index, new_pos_right_wrist);
1601 HumanSkeletonInterface::pos_right_wrist_confidence()
const
1603 return data->pos_right_wrist_confidence;
1611 HumanSkeletonInterface::maxlenof_pos_right_wrist_confidence()
const
1622 HumanSkeletonInterface::set_pos_right_wrist_confidence(
const float new_pos_right_wrist_confidence)
1624 set_field(data->pos_right_wrist_confidence, new_pos_right_wrist_confidence);
1633 HumanSkeletonInterface::pos_right_hand()
const
1635 return data->pos_right_hand;
1646 HumanSkeletonInterface::pos_right_hand(
unsigned int index)
const
1649 throw Exception(
"Index value %u out of bounds (0..2)", index);
1651 return data->pos_right_hand[index];
1659 HumanSkeletonInterface::maxlenof_pos_right_hand()
const
1670 HumanSkeletonInterface::set_pos_right_hand(
const float * new_pos_right_hand)
1672 set_field(data->pos_right_hand, new_pos_right_hand);
1682 HumanSkeletonInterface::set_pos_right_hand(
unsigned int index,
const float new_pos_right_hand)
1684 set_field(data->pos_right_hand, index, new_pos_right_hand);
1692 HumanSkeletonInterface::pos_right_hand_confidence()
const
1694 return data->pos_right_hand_confidence;
1702 HumanSkeletonInterface::maxlenof_pos_right_hand_confidence()
const
1713 HumanSkeletonInterface::set_pos_right_hand_confidence(
const float new_pos_right_hand_confidence)
1715 set_field(data->pos_right_hand_confidence, new_pos_right_hand_confidence);
1724 HumanSkeletonInterface::pos_right_fingertip()
const
1726 return data->pos_right_fingertip;
1737 HumanSkeletonInterface::pos_right_fingertip(
unsigned int index)
const
1740 throw Exception(
"Index value %u out of bounds (0..2)", index);
1742 return data->pos_right_fingertip[index];
1750 HumanSkeletonInterface::maxlenof_pos_right_fingertip()
const
1761 HumanSkeletonInterface::set_pos_right_fingertip(
const float * new_pos_right_fingertip)
1763 set_field(data->pos_right_fingertip, new_pos_right_fingertip);
1773 HumanSkeletonInterface::set_pos_right_fingertip(
unsigned int index,
const float new_pos_right_fingertip)
1775 set_field(data->pos_right_fingertip, index, new_pos_right_fingertip);
1783 HumanSkeletonInterface::pos_right_fingertip_confidence()
const
1785 return data->pos_right_fingertip_confidence;
1793 HumanSkeletonInterface::maxlenof_pos_right_fingertip_confidence()
const
1804 HumanSkeletonInterface::set_pos_right_fingertip_confidence(
const float new_pos_right_fingertip_confidence)
1806 set_field(data->pos_right_fingertip_confidence, new_pos_right_fingertip_confidence);
1815 HumanSkeletonInterface::pos_left_hip()
const
1817 return data->pos_left_hip;
1828 HumanSkeletonInterface::pos_left_hip(
unsigned int index)
const
1831 throw Exception(
"Index value %u out of bounds (0..2)", index);
1833 return data->pos_left_hip[index];
1841 HumanSkeletonInterface::maxlenof_pos_left_hip()
const
1852 HumanSkeletonInterface::set_pos_left_hip(
const float * new_pos_left_hip)
1854 set_field(data->pos_left_hip, new_pos_left_hip);
1864 HumanSkeletonInterface::set_pos_left_hip(
unsigned int index,
const float new_pos_left_hip)
1866 set_field(data->pos_left_hip, index, new_pos_left_hip);
1874 HumanSkeletonInterface::pos_left_hip_confidence()
const
1876 return data->pos_left_hip_confidence;
1884 HumanSkeletonInterface::maxlenof_pos_left_hip_confidence()
const
1895 HumanSkeletonInterface::set_pos_left_hip_confidence(
const float new_pos_left_hip_confidence)
1897 set_field(data->pos_left_hip_confidence, new_pos_left_hip_confidence);
1906 HumanSkeletonInterface::pos_left_knee()
const
1908 return data->pos_left_knee;
1919 HumanSkeletonInterface::pos_left_knee(
unsigned int index)
const
1922 throw Exception(
"Index value %u out of bounds (0..2)", index);
1924 return data->pos_left_knee[index];
1932 HumanSkeletonInterface::maxlenof_pos_left_knee()
const
1943 HumanSkeletonInterface::set_pos_left_knee(
const float * new_pos_left_knee)
1945 set_field(data->pos_left_knee, new_pos_left_knee);
1955 HumanSkeletonInterface::set_pos_left_knee(
unsigned int index,
const float new_pos_left_knee)
1957 set_field(data->pos_left_knee, index, new_pos_left_knee);
1965 HumanSkeletonInterface::pos_left_knee_confidence()
const
1967 return data->pos_left_knee_confidence;
1975 HumanSkeletonInterface::maxlenof_pos_left_knee_confidence()
const
1986 HumanSkeletonInterface::set_pos_left_knee_confidence(
const float new_pos_left_knee_confidence)
1988 set_field(data->pos_left_knee_confidence, new_pos_left_knee_confidence);
1997 HumanSkeletonInterface::pos_left_ankle()
const
1999 return data->pos_left_ankle;
2010 HumanSkeletonInterface::pos_left_ankle(
unsigned int index)
const
2013 throw Exception(
"Index value %u out of bounds (0..2)", index);
2015 return data->pos_left_ankle[index];
2023 HumanSkeletonInterface::maxlenof_pos_left_ankle()
const
2034 HumanSkeletonInterface::set_pos_left_ankle(
const float * new_pos_left_ankle)
2036 set_field(data->pos_left_ankle, new_pos_left_ankle);
2046 HumanSkeletonInterface::set_pos_left_ankle(
unsigned int index,
const float new_pos_left_ankle)
2048 set_field(data->pos_left_ankle, index, new_pos_left_ankle);
2056 HumanSkeletonInterface::pos_left_ankle_confidence()
const
2058 return data->pos_left_ankle_confidence;
2066 HumanSkeletonInterface::maxlenof_pos_left_ankle_confidence()
const
2077 HumanSkeletonInterface::set_pos_left_ankle_confidence(
const float new_pos_left_ankle_confidence)
2079 set_field(data->pos_left_ankle_confidence, new_pos_left_ankle_confidence);
2088 HumanSkeletonInterface::pos_left_foot()
const
2090 return data->pos_left_foot;
2101 HumanSkeletonInterface::pos_left_foot(
unsigned int index)
const
2104 throw Exception(
"Index value %u out of bounds (0..2)", index);
2106 return data->pos_left_foot[index];
2114 HumanSkeletonInterface::maxlenof_pos_left_foot()
const
2125 HumanSkeletonInterface::set_pos_left_foot(
const float * new_pos_left_foot)
2127 set_field(data->pos_left_foot, new_pos_left_foot);
2137 HumanSkeletonInterface::set_pos_left_foot(
unsigned int index,
const float new_pos_left_foot)
2139 set_field(data->pos_left_foot, index, new_pos_left_foot);
2147 HumanSkeletonInterface::pos_left_foot_confidence()
const
2149 return data->pos_left_foot_confidence;
2157 HumanSkeletonInterface::maxlenof_pos_left_foot_confidence()
const
2168 HumanSkeletonInterface::set_pos_left_foot_confidence(
const float new_pos_left_foot_confidence)
2170 set_field(data->pos_left_foot_confidence, new_pos_left_foot_confidence);
2179 HumanSkeletonInterface::pos_right_hip()
const
2181 return data->pos_right_hip;
2192 HumanSkeletonInterface::pos_right_hip(
unsigned int index)
const
2195 throw Exception(
"Index value %u out of bounds (0..2)", index);
2197 return data->pos_right_hip[index];
2205 HumanSkeletonInterface::maxlenof_pos_right_hip()
const
2216 HumanSkeletonInterface::set_pos_right_hip(
const float * new_pos_right_hip)
2218 set_field(data->pos_right_hip, new_pos_right_hip);
2228 HumanSkeletonInterface::set_pos_right_hip(
unsigned int index,
const float new_pos_right_hip)
2230 set_field(data->pos_right_hip, index, new_pos_right_hip);
2238 HumanSkeletonInterface::pos_right_hip_confidence()
const
2240 return data->pos_right_hip_confidence;
2248 HumanSkeletonInterface::maxlenof_pos_right_hip_confidence()
const
2259 HumanSkeletonInterface::set_pos_right_hip_confidence(
const float new_pos_right_hip_confidence)
2261 set_field(data->pos_right_hip_confidence, new_pos_right_hip_confidence);
2270 HumanSkeletonInterface::pos_right_knee()
const
2272 return data->pos_right_knee;
2283 HumanSkeletonInterface::pos_right_knee(
unsigned int index)
const
2286 throw Exception(
"Index value %u out of bounds (0..2)", index);
2288 return data->pos_right_knee[index];
2296 HumanSkeletonInterface::maxlenof_pos_right_knee()
const
2307 HumanSkeletonInterface::set_pos_right_knee(
const float * new_pos_right_knee)
2309 set_field(data->pos_right_knee, new_pos_right_knee);
2319 HumanSkeletonInterface::set_pos_right_knee(
unsigned int index,
const float new_pos_right_knee)
2321 set_field(data->pos_right_knee, index, new_pos_right_knee);
2329 HumanSkeletonInterface::pos_right_knee_confidence()
const
2331 return data->pos_right_knee_confidence;
2339 HumanSkeletonInterface::maxlenof_pos_right_knee_confidence()
const
2350 HumanSkeletonInterface::set_pos_right_knee_confidence(
const float new_pos_right_knee_confidence)
2352 set_field(data->pos_right_knee_confidence, new_pos_right_knee_confidence);
2361 HumanSkeletonInterface::pos_right_ankle()
const
2363 return data->pos_right_ankle;
2374 HumanSkeletonInterface::pos_right_ankle(
unsigned int index)
const
2377 throw Exception(
"Index value %u out of bounds (0..2)", index);
2379 return data->pos_right_ankle[index];
2387 HumanSkeletonInterface::maxlenof_pos_right_ankle()
const
2398 HumanSkeletonInterface::set_pos_right_ankle(
const float * new_pos_right_ankle)
2400 set_field(data->pos_right_ankle, new_pos_right_ankle);
2410 HumanSkeletonInterface::set_pos_right_ankle(
unsigned int index,
const float new_pos_right_ankle)
2412 set_field(data->pos_right_ankle, index, new_pos_right_ankle);
2420 HumanSkeletonInterface::pos_right_ankle_confidence()
const
2422 return data->pos_right_ankle_confidence;
2430 HumanSkeletonInterface::maxlenof_pos_right_ankle_confidence()
const
2441 HumanSkeletonInterface::set_pos_right_ankle_confidence(
const float new_pos_right_ankle_confidence)
2443 set_field(data->pos_right_ankle_confidence, new_pos_right_ankle_confidence);
2452 HumanSkeletonInterface::pos_right_foot()
const
2454 return data->pos_right_foot;
2465 HumanSkeletonInterface::pos_right_foot(
unsigned int index)
const
2468 throw Exception(
"Index value %u out of bounds (0..2)", index);
2470 return data->pos_right_foot[index];
2478 HumanSkeletonInterface::maxlenof_pos_right_foot()
const
2489 HumanSkeletonInterface::set_pos_right_foot(
const float * new_pos_right_foot)
2491 set_field(data->pos_right_foot, new_pos_right_foot);
2501 HumanSkeletonInterface::set_pos_right_foot(
unsigned int index,
const float new_pos_right_foot)
2503 set_field(data->pos_right_foot, index, new_pos_right_foot);
2511 HumanSkeletonInterface::pos_right_foot_confidence()
const
2513 return data->pos_right_foot_confidence;
2521 HumanSkeletonInterface::maxlenof_pos_right_foot_confidence()
const
2532 HumanSkeletonInterface::set_pos_right_foot_confidence(
const float new_pos_right_foot_confidence)
2534 set_field(data->pos_right_foot_confidence, new_pos_right_foot_confidence);
2542 HumanSkeletonInterface::ori_head()
const
2544 return data->ori_head;
2554 HumanSkeletonInterface::ori_head(
unsigned int index)
const
2557 throw Exception(
"Index value %u out of bounds (0..8)", index);
2559 return data->ori_head[index];
2567 HumanSkeletonInterface::maxlenof_ori_head()
const
2577 HumanSkeletonInterface::set_ori_head(
const float * new_ori_head)
2579 set_field(data->ori_head, new_ori_head);
2588 HumanSkeletonInterface::set_ori_head(
unsigned int index,
const float new_ori_head)
2590 set_field(data->ori_head, index, new_ori_head);
2598 HumanSkeletonInterface::ori_head_confidence()
const
2600 return data->ori_head_confidence;
2608 HumanSkeletonInterface::maxlenof_ori_head_confidence()
const
2619 HumanSkeletonInterface::set_ori_head_confidence(
const float new_ori_head_confidence)
2621 set_field(data->ori_head_confidence, new_ori_head_confidence);
2629 HumanSkeletonInterface::ori_neck()
const
2631 return data->ori_neck;
2641 HumanSkeletonInterface::ori_neck(
unsigned int index)
const
2644 throw Exception(
"Index value %u out of bounds (0..8)", index);
2646 return data->ori_neck[index];
2654 HumanSkeletonInterface::maxlenof_ori_neck()
const
2664 HumanSkeletonInterface::set_ori_neck(
const float * new_ori_neck)
2666 set_field(data->ori_neck, new_ori_neck);
2675 HumanSkeletonInterface::set_ori_neck(
unsigned int index,
const float new_ori_neck)
2677 set_field(data->ori_neck, index, new_ori_neck);
2685 HumanSkeletonInterface::ori_neck_confidence()
const
2687 return data->ori_neck_confidence;
2695 HumanSkeletonInterface::maxlenof_ori_neck_confidence()
const
2706 HumanSkeletonInterface::set_ori_neck_confidence(
const float new_ori_neck_confidence)
2708 set_field(data->ori_neck_confidence, new_ori_neck_confidence);
2716 HumanSkeletonInterface::ori_torso()
const
2718 return data->ori_torso;
2728 HumanSkeletonInterface::ori_torso(
unsigned int index)
const
2731 throw Exception(
"Index value %u out of bounds (0..8)", index);
2733 return data->ori_torso[index];
2741 HumanSkeletonInterface::maxlenof_ori_torso()
const
2751 HumanSkeletonInterface::set_ori_torso(
const float * new_ori_torso)
2753 set_field(data->ori_torso, new_ori_torso);
2762 HumanSkeletonInterface::set_ori_torso(
unsigned int index,
const float new_ori_torso)
2764 set_field(data->ori_torso, index, new_ori_torso);
2772 HumanSkeletonInterface::ori_torso_confidence()
const
2774 return data->ori_torso_confidence;
2782 HumanSkeletonInterface::maxlenof_ori_torso_confidence()
const
2793 HumanSkeletonInterface::set_ori_torso_confidence(
const float new_ori_torso_confidence)
2795 set_field(data->ori_torso_confidence, new_ori_torso_confidence);
2803 HumanSkeletonInterface::ori_waist()
const
2805 return data->ori_waist;
2815 HumanSkeletonInterface::ori_waist(
unsigned int index)
const
2818 throw Exception(
"Index value %u out of bounds (0..8)", index);
2820 return data->ori_waist[index];
2828 HumanSkeletonInterface::maxlenof_ori_waist()
const
2838 HumanSkeletonInterface::set_ori_waist(
const float * new_ori_waist)
2840 set_field(data->ori_waist, new_ori_waist);
2849 HumanSkeletonInterface::set_ori_waist(
unsigned int index,
const float new_ori_waist)
2851 set_field(data->ori_waist, index, new_ori_waist);
2859 HumanSkeletonInterface::ori_waist_confidence()
const
2861 return data->ori_waist_confidence;
2869 HumanSkeletonInterface::maxlenof_ori_waist_confidence()
const
2880 HumanSkeletonInterface::set_ori_waist_confidence(
const float new_ori_waist_confidence)
2882 set_field(data->ori_waist_confidence, new_ori_waist_confidence);
2891 HumanSkeletonInterface::ori_left_collar()
const
2893 return data->ori_left_collar;
2904 HumanSkeletonInterface::ori_left_collar(
unsigned int index)
const
2907 throw Exception(
"Index value %u out of bounds (0..8)", index);
2909 return data->ori_left_collar[index];
2917 HumanSkeletonInterface::maxlenof_ori_left_collar()
const
2928 HumanSkeletonInterface::set_ori_left_collar(
const float * new_ori_left_collar)
2930 set_field(data->ori_left_collar, new_ori_left_collar);
2940 HumanSkeletonInterface::set_ori_left_collar(
unsigned int index,
const float new_ori_left_collar)
2942 set_field(data->ori_left_collar, index, new_ori_left_collar);
2950 HumanSkeletonInterface::ori_left_collar_confidence()
const
2952 return data->ori_left_collar_confidence;
2960 HumanSkeletonInterface::maxlenof_ori_left_collar_confidence()
const
2971 HumanSkeletonInterface::set_ori_left_collar_confidence(
const float new_ori_left_collar_confidence)
2973 set_field(data->ori_left_collar_confidence, new_ori_left_collar_confidence);
2982 HumanSkeletonInterface::ori_left_shoulder()
const
2984 return data->ori_left_shoulder;
2995 HumanSkeletonInterface::ori_left_shoulder(
unsigned int index)
const
2998 throw Exception(
"Index value %u out of bounds (0..8)", index);
3000 return data->ori_left_shoulder[index];
3008 HumanSkeletonInterface::maxlenof_ori_left_shoulder()
const
3019 HumanSkeletonInterface::set_ori_left_shoulder(
const float * new_ori_left_shoulder)
3021 set_field(data->ori_left_shoulder, new_ori_left_shoulder);
3031 HumanSkeletonInterface::set_ori_left_shoulder(
unsigned int index,
const float new_ori_left_shoulder)
3033 set_field(data->ori_left_shoulder, index, new_ori_left_shoulder);
3041 HumanSkeletonInterface::ori_left_shoulder_confidence()
const
3043 return data->ori_left_shoulder_confidence;
3051 HumanSkeletonInterface::maxlenof_ori_left_shoulder_confidence()
const
3062 HumanSkeletonInterface::set_ori_left_shoulder_confidence(
const float new_ori_left_shoulder_confidence)
3064 set_field(data->ori_left_shoulder_confidence, new_ori_left_shoulder_confidence);
3073 HumanSkeletonInterface::ori_left_elbow()
const
3075 return data->ori_left_elbow;
3086 HumanSkeletonInterface::ori_left_elbow(
unsigned int index)
const
3089 throw Exception(
"Index value %u out of bounds (0..8)", index);
3091 return data->ori_left_elbow[index];
3099 HumanSkeletonInterface::maxlenof_ori_left_elbow()
const
3110 HumanSkeletonInterface::set_ori_left_elbow(
const float * new_ori_left_elbow)
3112 set_field(data->ori_left_elbow, new_ori_left_elbow);
3122 HumanSkeletonInterface::set_ori_left_elbow(
unsigned int index,
const float new_ori_left_elbow)
3124 set_field(data->ori_left_elbow, index, new_ori_left_elbow);
3132 HumanSkeletonInterface::ori_left_elbow_confidence()
const
3134 return data->ori_left_elbow_confidence;
3142 HumanSkeletonInterface::maxlenof_ori_left_elbow_confidence()
const
3153 HumanSkeletonInterface::set_ori_left_elbow_confidence(
const float new_ori_left_elbow_confidence)
3155 set_field(data->ori_left_elbow_confidence, new_ori_left_elbow_confidence);
3164 HumanSkeletonInterface::ori_left_wrist()
const
3166 return data->ori_left_wrist;
3177 HumanSkeletonInterface::ori_left_wrist(
unsigned int index)
const
3180 throw Exception(
"Index value %u out of bounds (0..8)", index);
3182 return data->ori_left_wrist[index];
3190 HumanSkeletonInterface::maxlenof_ori_left_wrist()
const
3201 HumanSkeletonInterface::set_ori_left_wrist(
const float * new_ori_left_wrist)
3203 set_field(data->ori_left_wrist, new_ori_left_wrist);
3213 HumanSkeletonInterface::set_ori_left_wrist(
unsigned int index,
const float new_ori_left_wrist)
3215 set_field(data->ori_left_wrist, index, new_ori_left_wrist);
3223 HumanSkeletonInterface::ori_left_wrist_confidence()
const
3225 return data->ori_left_wrist_confidence;
3233 HumanSkeletonInterface::maxlenof_ori_left_wrist_confidence()
const
3244 HumanSkeletonInterface::set_ori_left_wrist_confidence(
const float new_ori_left_wrist_confidence)
3246 set_field(data->ori_left_wrist_confidence, new_ori_left_wrist_confidence);
3255 HumanSkeletonInterface::ori_left_hand()
const
3257 return data->ori_left_hand;
3268 HumanSkeletonInterface::ori_left_hand(
unsigned int index)
const
3271 throw Exception(
"Index value %u out of bounds (0..8)", index);
3273 return data->ori_left_hand[index];
3281 HumanSkeletonInterface::maxlenof_ori_left_hand()
const
3292 HumanSkeletonInterface::set_ori_left_hand(
const float * new_ori_left_hand)
3294 set_field(data->ori_left_hand, new_ori_left_hand);
3304 HumanSkeletonInterface::set_ori_left_hand(
unsigned int index,
const float new_ori_left_hand)
3306 set_field(data->ori_left_hand, index, new_ori_left_hand);
3314 HumanSkeletonInterface::ori_left_hand_confidence()
const
3316 return data->ori_left_hand_confidence;
3324 HumanSkeletonInterface::maxlenof_ori_left_hand_confidence()
const
3335 HumanSkeletonInterface::set_ori_left_hand_confidence(
const float new_ori_left_hand_confidence)
3337 set_field(data->ori_left_hand_confidence, new_ori_left_hand_confidence);
3346 HumanSkeletonInterface::ori_left_fingertip()
const
3348 return data->ori_left_fingertip;
3359 HumanSkeletonInterface::ori_left_fingertip(
unsigned int index)
const
3362 throw Exception(
"Index value %u out of bounds (0..8)", index);
3364 return data->ori_left_fingertip[index];
3372 HumanSkeletonInterface::maxlenof_ori_left_fingertip()
const
3383 HumanSkeletonInterface::set_ori_left_fingertip(
const float * new_ori_left_fingertip)
3385 set_field(data->ori_left_fingertip, new_ori_left_fingertip);
3395 HumanSkeletonInterface::set_ori_left_fingertip(
unsigned int index,
const float new_ori_left_fingertip)
3397 set_field(data->ori_left_fingertip, index, new_ori_left_fingertip);
3405 HumanSkeletonInterface::ori_left_fingertip_confidence()
const
3407 return data->ori_left_fingertip_confidence;
3415 HumanSkeletonInterface::maxlenof_ori_left_fingertip_confidence()
const
3426 HumanSkeletonInterface::set_ori_left_fingertip_confidence(
const float new_ori_left_fingertip_confidence)
3428 set_field(data->ori_left_fingertip_confidence, new_ori_left_fingertip_confidence);
3437 HumanSkeletonInterface::ori_right_collar()
const
3439 return data->ori_right_collar;
3450 HumanSkeletonInterface::ori_right_collar(
unsigned int index)
const
3453 throw Exception(
"Index value %u out of bounds (0..8)", index);
3455 return data->ori_right_collar[index];
3463 HumanSkeletonInterface::maxlenof_ori_right_collar()
const
3474 HumanSkeletonInterface::set_ori_right_collar(
const float * new_ori_right_collar)
3476 set_field(data->ori_right_collar, new_ori_right_collar);
3486 HumanSkeletonInterface::set_ori_right_collar(
unsigned int index,
const float new_ori_right_collar)
3488 set_field(data->ori_right_collar, index, new_ori_right_collar);
3496 HumanSkeletonInterface::ori_right_collar_confidence()
const
3498 return data->ori_right_collar_confidence;
3506 HumanSkeletonInterface::maxlenof_ori_right_collar_confidence()
const
3517 HumanSkeletonInterface::set_ori_right_collar_confidence(
const float new_ori_right_collar_confidence)
3519 set_field(data->ori_right_collar_confidence, new_ori_right_collar_confidence);
3528 HumanSkeletonInterface::ori_right_shoulder()
const
3530 return data->ori_right_shoulder;
3541 HumanSkeletonInterface::ori_right_shoulder(
unsigned int index)
const
3544 throw Exception(
"Index value %u out of bounds (0..8)", index);
3546 return data->ori_right_shoulder[index];
3554 HumanSkeletonInterface::maxlenof_ori_right_shoulder()
const
3565 HumanSkeletonInterface::set_ori_right_shoulder(
const float * new_ori_right_shoulder)
3567 set_field(data->ori_right_shoulder, new_ori_right_shoulder);
3577 HumanSkeletonInterface::set_ori_right_shoulder(
unsigned int index,
const float new_ori_right_shoulder)
3579 set_field(data->ori_right_shoulder, index, new_ori_right_shoulder);
3587 HumanSkeletonInterface::ori_right_shoulder_confidence()
const
3589 return data->ori_right_shoulder_confidence;
3597 HumanSkeletonInterface::maxlenof_ori_right_shoulder_confidence()
const
3608 HumanSkeletonInterface::set_ori_right_shoulder_confidence(
const float new_ori_right_shoulder_confidence)
3610 set_field(data->ori_right_shoulder_confidence, new_ori_right_shoulder_confidence);
3619 HumanSkeletonInterface::ori_right_elbow()
const
3621 return data->ori_right_elbow;
3632 HumanSkeletonInterface::ori_right_elbow(
unsigned int index)
const
3635 throw Exception(
"Index value %u out of bounds (0..8)", index);
3637 return data->ori_right_elbow[index];
3645 HumanSkeletonInterface::maxlenof_ori_right_elbow()
const
3656 HumanSkeletonInterface::set_ori_right_elbow(
const float * new_ori_right_elbow)
3658 set_field(data->ori_right_elbow, new_ori_right_elbow);
3668 HumanSkeletonInterface::set_ori_right_elbow(
unsigned int index,
const float new_ori_right_elbow)
3670 set_field(data->ori_right_elbow, index, new_ori_right_elbow);
3678 HumanSkeletonInterface::ori_right_elbow_confidence()
const
3680 return data->ori_right_elbow_confidence;
3688 HumanSkeletonInterface::maxlenof_ori_right_elbow_confidence()
const
3699 HumanSkeletonInterface::set_ori_right_elbow_confidence(
const float new_ori_right_elbow_confidence)
3701 set_field(data->ori_right_elbow_confidence, new_ori_right_elbow_confidence);
3710 HumanSkeletonInterface::ori_right_wrist()
const
3712 return data->ori_right_wrist;
3723 HumanSkeletonInterface::ori_right_wrist(
unsigned int index)
const
3726 throw Exception(
"Index value %u out of bounds (0..8)", index);
3728 return data->ori_right_wrist[index];
3736 HumanSkeletonInterface::maxlenof_ori_right_wrist()
const
3747 HumanSkeletonInterface::set_ori_right_wrist(
const float * new_ori_right_wrist)
3749 set_field(data->ori_right_wrist, new_ori_right_wrist);
3759 HumanSkeletonInterface::set_ori_right_wrist(
unsigned int index,
const float new_ori_right_wrist)
3761 set_field(data->ori_right_wrist, index, new_ori_right_wrist);
3769 HumanSkeletonInterface::ori_right_wrist_confidence()
const
3771 return data->ori_right_wrist_confidence;
3779 HumanSkeletonInterface::maxlenof_ori_right_wrist_confidence()
const
3790 HumanSkeletonInterface::set_ori_right_wrist_confidence(
const float new_ori_right_wrist_confidence)
3792 set_field(data->ori_right_wrist_confidence, new_ori_right_wrist_confidence);
3801 HumanSkeletonInterface::ori_right_hand()
const
3803 return data->ori_right_hand;
3814 HumanSkeletonInterface::ori_right_hand(
unsigned int index)
const
3817 throw Exception(
"Index value %u out of bounds (0..8)", index);
3819 return data->ori_right_hand[index];
3827 HumanSkeletonInterface::maxlenof_ori_right_hand()
const
3838 HumanSkeletonInterface::set_ori_right_hand(
const float * new_ori_right_hand)
3840 set_field(data->ori_right_hand, new_ori_right_hand);
3850 HumanSkeletonInterface::set_ori_right_hand(
unsigned int index,
const float new_ori_right_hand)
3852 set_field(data->ori_right_hand, index, new_ori_right_hand);
3860 HumanSkeletonInterface::ori_right_hand_confidence()
const
3862 return data->ori_right_hand_confidence;
3870 HumanSkeletonInterface::maxlenof_ori_right_hand_confidence()
const
3881 HumanSkeletonInterface::set_ori_right_hand_confidence(
const float new_ori_right_hand_confidence)
3883 set_field(data->ori_right_hand_confidence, new_ori_right_hand_confidence);
3892 HumanSkeletonInterface::ori_right_fingertip()
const
3894 return data->ori_right_fingertip;
3905 HumanSkeletonInterface::ori_right_fingertip(
unsigned int index)
const
3908 throw Exception(
"Index value %u out of bounds (0..8)", index);
3910 return data->ori_right_fingertip[index];
3918 HumanSkeletonInterface::maxlenof_ori_right_fingertip()
const
3929 HumanSkeletonInterface::set_ori_right_fingertip(
const float * new_ori_right_fingertip)
3931 set_field(data->ori_right_fingertip, new_ori_right_fingertip);
3941 HumanSkeletonInterface::set_ori_right_fingertip(
unsigned int index,
const float new_ori_right_fingertip)
3943 set_field(data->ori_right_fingertip, index, new_ori_right_fingertip);
3951 HumanSkeletonInterface::ori_right_fingertip_confidence()
const
3953 return data->ori_right_fingertip_confidence;
3961 HumanSkeletonInterface::maxlenof_ori_right_fingertip_confidence()
const
3972 HumanSkeletonInterface::set_ori_right_fingertip_confidence(
const float new_ori_right_fingertip_confidence)
3974 set_field(data->ori_right_fingertip_confidence, new_ori_right_fingertip_confidence);
3983 HumanSkeletonInterface::ori_left_hip()
const
3985 return data->ori_left_hip;
3996 HumanSkeletonInterface::ori_left_hip(
unsigned int index)
const
3999 throw Exception(
"Index value %u out of bounds (0..8)", index);
4001 return data->ori_left_hip[index];
4009 HumanSkeletonInterface::maxlenof_ori_left_hip()
const
4020 HumanSkeletonInterface::set_ori_left_hip(
const float * new_ori_left_hip)
4022 set_field(data->ori_left_hip, new_ori_left_hip);
4032 HumanSkeletonInterface::set_ori_left_hip(
unsigned int index,
const float new_ori_left_hip)
4034 set_field(data->ori_left_hip, index, new_ori_left_hip);
4042 HumanSkeletonInterface::ori_left_hip_confidence()
const
4044 return data->ori_left_hip_confidence;
4052 HumanSkeletonInterface::maxlenof_ori_left_hip_confidence()
const
4063 HumanSkeletonInterface::set_ori_left_hip_confidence(
const float new_ori_left_hip_confidence)
4065 set_field(data->ori_left_hip_confidence, new_ori_left_hip_confidence);
4074 HumanSkeletonInterface::ori_left_knee()
const
4076 return data->ori_left_knee;
4087 HumanSkeletonInterface::ori_left_knee(
unsigned int index)
const
4090 throw Exception(
"Index value %u out of bounds (0..8)", index);
4092 return data->ori_left_knee[index];
4100 HumanSkeletonInterface::maxlenof_ori_left_knee()
const
4111 HumanSkeletonInterface::set_ori_left_knee(
const float * new_ori_left_knee)
4113 set_field(data->ori_left_knee, new_ori_left_knee);
4123 HumanSkeletonInterface::set_ori_left_knee(
unsigned int index,
const float new_ori_left_knee)
4125 set_field(data->ori_left_knee, index, new_ori_left_knee);
4133 HumanSkeletonInterface::ori_left_knee_confidence()
const
4135 return data->ori_left_knee_confidence;
4143 HumanSkeletonInterface::maxlenof_ori_left_knee_confidence()
const
4154 HumanSkeletonInterface::set_ori_left_knee_confidence(
const float new_ori_left_knee_confidence)
4156 set_field(data->ori_left_knee_confidence, new_ori_left_knee_confidence);
4165 HumanSkeletonInterface::ori_left_ankle()
const
4167 return data->ori_left_ankle;
4178 HumanSkeletonInterface::ori_left_ankle(
unsigned int index)
const
4181 throw Exception(
"Index value %u out of bounds (0..8)", index);
4183 return data->ori_left_ankle[index];
4191 HumanSkeletonInterface::maxlenof_ori_left_ankle()
const
4202 HumanSkeletonInterface::set_ori_left_ankle(
const float * new_ori_left_ankle)
4204 set_field(data->ori_left_ankle, new_ori_left_ankle);
4214 HumanSkeletonInterface::set_ori_left_ankle(
unsigned int index,
const float new_ori_left_ankle)
4216 set_field(data->ori_left_ankle, index, new_ori_left_ankle);
4224 HumanSkeletonInterface::ori_left_ankle_confidence()
const
4226 return data->ori_left_ankle_confidence;
4234 HumanSkeletonInterface::maxlenof_ori_left_ankle_confidence()
const
4245 HumanSkeletonInterface::set_ori_left_ankle_confidence(
const float new_ori_left_ankle_confidence)
4247 set_field(data->ori_left_ankle_confidence, new_ori_left_ankle_confidence);
4256 HumanSkeletonInterface::ori_left_foot()
const
4258 return data->ori_left_foot;
4269 HumanSkeletonInterface::ori_left_foot(
unsigned int index)
const
4272 throw Exception(
"Index value %u out of bounds (0..8)", index);
4274 return data->ori_left_foot[index];
4282 HumanSkeletonInterface::maxlenof_ori_left_foot()
const
4293 HumanSkeletonInterface::set_ori_left_foot(
const float * new_ori_left_foot)
4295 set_field(data->ori_left_foot, new_ori_left_foot);
4305 HumanSkeletonInterface::set_ori_left_foot(
unsigned int index,
const float new_ori_left_foot)
4307 set_field(data->ori_left_foot, index, new_ori_left_foot);
4315 HumanSkeletonInterface::ori_left_foot_confidence()
const
4317 return data->ori_left_foot_confidence;
4325 HumanSkeletonInterface::maxlenof_ori_left_foot_confidence()
const
4336 HumanSkeletonInterface::set_ori_left_foot_confidence(
const float new_ori_left_foot_confidence)
4338 set_field(data->ori_left_foot_confidence, new_ori_left_foot_confidence);
4347 HumanSkeletonInterface::ori_right_hip()
const
4349 return data->ori_right_hip;
4360 HumanSkeletonInterface::ori_right_hip(
unsigned int index)
const
4363 throw Exception(
"Index value %u out of bounds (0..8)", index);
4365 return data->ori_right_hip[index];
4373 HumanSkeletonInterface::maxlenof_ori_right_hip()
const
4384 HumanSkeletonInterface::set_ori_right_hip(
const float * new_ori_right_hip)
4386 set_field(data->ori_right_hip, new_ori_right_hip);
4396 HumanSkeletonInterface::set_ori_right_hip(
unsigned int index,
const float new_ori_right_hip)
4398 set_field(data->ori_right_hip, index, new_ori_right_hip);
4406 HumanSkeletonInterface::ori_right_hip_confidence()
const
4408 return data->ori_right_hip_confidence;
4416 HumanSkeletonInterface::maxlenof_ori_right_hip_confidence()
const
4427 HumanSkeletonInterface::set_ori_right_hip_confidence(
const float new_ori_right_hip_confidence)
4429 set_field(data->ori_right_hip_confidence, new_ori_right_hip_confidence);
4438 HumanSkeletonInterface::ori_right_knee()
const
4440 return data->ori_right_knee;
4451 HumanSkeletonInterface::ori_right_knee(
unsigned int index)
const
4454 throw Exception(
"Index value %u out of bounds (0..8)", index);
4456 return data->ori_right_knee[index];
4464 HumanSkeletonInterface::maxlenof_ori_right_knee()
const
4475 HumanSkeletonInterface::set_ori_right_knee(
const float * new_ori_right_knee)
4477 set_field(data->ori_right_knee, new_ori_right_knee);
4487 HumanSkeletonInterface::set_ori_right_knee(
unsigned int index,
const float new_ori_right_knee)
4489 set_field(data->ori_right_knee, index, new_ori_right_knee);
4497 HumanSkeletonInterface::ori_right_knee_confidence()
const
4499 return data->ori_right_knee_confidence;
4507 HumanSkeletonInterface::maxlenof_ori_right_knee_confidence()
const
4518 HumanSkeletonInterface::set_ori_right_knee_confidence(
const float new_ori_right_knee_confidence)
4520 set_field(data->ori_right_knee_confidence, new_ori_right_knee_confidence);
4529 HumanSkeletonInterface::ori_right_ankle()
const
4531 return data->ori_right_ankle;
4542 HumanSkeletonInterface::ori_right_ankle(
unsigned int index)
const
4545 throw Exception(
"Index value %u out of bounds (0..8)", index);
4547 return data->ori_right_ankle[index];
4555 HumanSkeletonInterface::maxlenof_ori_right_ankle()
const
4566 HumanSkeletonInterface::set_ori_right_ankle(
const float * new_ori_right_ankle)
4568 set_field(data->ori_right_ankle, new_ori_right_ankle);
4578 HumanSkeletonInterface::set_ori_right_ankle(
unsigned int index,
const float new_ori_right_ankle)
4580 set_field(data->ori_right_ankle, index, new_ori_right_ankle);
4588 HumanSkeletonInterface::ori_right_ankle_confidence()
const
4590 return data->ori_right_ankle_confidence;
4598 HumanSkeletonInterface::maxlenof_ori_right_ankle_confidence()
const
4609 HumanSkeletonInterface::set_ori_right_ankle_confidence(
const float new_ori_right_ankle_confidence)
4611 set_field(data->ori_right_ankle_confidence, new_ori_right_ankle_confidence);
4620 HumanSkeletonInterface::ori_right_foot()
const
4622 return data->ori_right_foot;
4633 HumanSkeletonInterface::ori_right_foot(
unsigned int index)
const
4636 throw Exception(
"Index value %u out of bounds (0..8)", index);
4638 return data->ori_right_foot[index];
4646 HumanSkeletonInterface::maxlenof_ori_right_foot()
const
4657 HumanSkeletonInterface::set_ori_right_foot(
const float * new_ori_right_foot)
4659 set_field(data->ori_right_foot, new_ori_right_foot);
4669 HumanSkeletonInterface::set_ori_right_foot(
unsigned int index,
const float new_ori_right_foot)
4671 set_field(data->ori_right_foot, index, new_ori_right_foot);
4679 HumanSkeletonInterface::ori_right_foot_confidence()
const
4681 return data->ori_right_foot_confidence;
4689 HumanSkeletonInterface::maxlenof_ori_right_foot_confidence()
const
4700 HumanSkeletonInterface::set_ori_right_foot_confidence(
const float new_ori_right_foot_confidence)
4702 set_field(data->ori_right_foot_confidence, new_ori_right_foot_confidence);
4707 HumanSkeletonInterface::create_message(
const char *type)
const
4710 "message type for this interface type.", type);
4723 type(), other->
type());
4725 memcpy(data, oi->data,
sizeof(HumanSkeletonInterface_data_t));
4729 HumanSkeletonInterface::enum_tostring(
const char *enumtype,
int val)
const
4731 if (strcmp(enumtype,
"State") == 0) {
4732 return tostring_State((
State)val);
4743 HumanSkeletonInterface::message_valid(
const Message *message)
const
Base class for exceptions in Fawkes.
HumanSkeletonInterface Fawkes BlackBoard Interface.
State
Current tracking state for the skeleton.
Base class for all Fawkes BlackBoard interfaces.
const char * type() const
Get type of interface.
Base class for all messages passed through interfaces in Fawkes BlackBoard.
Fawkes library namespace.