Fawkes API
Fawkes Development Version
|
24 #include <interfaces/HumanSkeletonInterface.h>
26 #include <core/exceptions/software.h>
45 HumanSkeletonInterface::HumanSkeletonInterface() : Interface()
47 data_size =
sizeof(HumanSkeletonInterface_data_t);
49 data = (HumanSkeletonInterface_data_t *)
data_ptr;
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";
157 unsigned char tmp_hash[] = {0x5f, 0x47, 0x2f, 0xb3, 0x8b, 0xf1, 0xe1, 0xa, 0xb9, 0x42, 0x34, 0xea, 0x83, 0x43, 0x94, 0x37};
162 HumanSkeletonInterface::~HumanSkeletonInterface()
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";
219 return data->user_id;
255 return data->visibility_history;
334 throw Exception(
"Index value %u out of bounds (0..2)", index);
336 return data->com[index];
376 return data->pos_head;
389 throw Exception(
"Index value %u out of bounds (0..2)", index);
391 return data->pos_head[index];
432 return data->pos_head_confidence;
463 return data->pos_neck;
476 throw Exception(
"Index value %u out of bounds (0..2)", index);
478 return data->pos_neck[index];
519 return data->pos_neck_confidence;
550 return data->pos_torso;
563 throw Exception(
"Index value %u out of bounds (0..2)", index);
565 return data->pos_torso[index];
606 return data->pos_torso_confidence;
637 return data->pos_waist;
650 throw Exception(
"Index value %u out of bounds (0..2)", index);
652 return data->pos_waist[index];
693 return data->pos_waist_confidence;
725 return data->pos_left_collar;
739 throw Exception(
"Index value %u out of bounds (0..2)", index);
741 return data->pos_left_collar[index];
784 return data->pos_left_collar_confidence;
816 return data->pos_left_shoulder;
830 throw Exception(
"Index value %u out of bounds (0..2)", index);
832 return data->pos_left_shoulder[index];
875 return data->pos_left_shoulder_confidence;
907 return data->pos_left_elbow;
921 throw Exception(
"Index value %u out of bounds (0..2)", index);
923 return data->pos_left_elbow[index];
966 return data->pos_left_elbow_confidence;
998 return data->pos_left_wrist;
1012 throw Exception(
"Index value %u out of bounds (0..2)", index);
1014 return data->pos_left_wrist[index];
1057 return data->pos_left_wrist_confidence;
1089 return data->pos_left_hand;
1103 throw Exception(
"Index value %u out of bounds (0..2)", index);
1105 return data->pos_left_hand[index];
1148 return data->pos_left_hand_confidence;
1180 return data->pos_left_fingertip;
1194 throw Exception(
"Index value %u out of bounds (0..2)", index);
1196 return data->pos_left_fingertip[index];
1239 return data->pos_left_fingertip_confidence;
1271 return data->pos_right_collar;
1285 throw Exception(
"Index value %u out of bounds (0..2)", index);
1287 return data->pos_right_collar[index];
1330 return data->pos_right_collar_confidence;
1362 return data->pos_right_shoulder;
1376 throw Exception(
"Index value %u out of bounds (0..2)", index);
1378 return data->pos_right_shoulder[index];
1421 return data->pos_right_shoulder_confidence;
1453 return data->pos_right_elbow;
1467 throw Exception(
"Index value %u out of bounds (0..2)", index);
1469 return data->pos_right_elbow[index];
1512 return data->pos_right_elbow_confidence;
1544 return data->pos_right_wrist;
1558 throw Exception(
"Index value %u out of bounds (0..2)", index);
1560 return data->pos_right_wrist[index];
1603 return data->pos_right_wrist_confidence;
1635 return data->pos_right_hand;
1649 throw Exception(
"Index value %u out of bounds (0..2)", index);
1651 return data->pos_right_hand[index];
1694 return data->pos_right_hand_confidence;
1726 return data->pos_right_fingertip;
1740 throw Exception(
"Index value %u out of bounds (0..2)", index);
1742 return data->pos_right_fingertip[index];
1785 return data->pos_right_fingertip_confidence;
1817 return data->pos_left_hip;
1831 throw Exception(
"Index value %u out of bounds (0..2)", index);
1833 return data->pos_left_hip[index];
1876 return data->pos_left_hip_confidence;
1908 return data->pos_left_knee;
1922 throw Exception(
"Index value %u out of bounds (0..2)", index);
1924 return data->pos_left_knee[index];
1967 return data->pos_left_knee_confidence;
1999 return data->pos_left_ankle;
2013 throw Exception(
"Index value %u out of bounds (0..2)", index);
2015 return data->pos_left_ankle[index];
2058 return data->pos_left_ankle_confidence;
2090 return data->pos_left_foot;
2104 throw Exception(
"Index value %u out of bounds (0..2)", index);
2106 return data->pos_left_foot[index];
2149 return data->pos_left_foot_confidence;
2181 return data->pos_right_hip;
2195 throw Exception(
"Index value %u out of bounds (0..2)", index);
2197 return data->pos_right_hip[index];
2240 return data->pos_right_hip_confidence;
2272 return data->pos_right_knee;
2286 throw Exception(
"Index value %u out of bounds (0..2)", index);
2288 return data->pos_right_knee[index];
2331 return data->pos_right_knee_confidence;
2363 return data->pos_right_ankle;
2377 throw Exception(
"Index value %u out of bounds (0..2)", index);
2379 return data->pos_right_ankle[index];
2422 return data->pos_right_ankle_confidence;
2454 return data->pos_right_foot;
2468 throw Exception(
"Index value %u out of bounds (0..2)", index);
2470 return data->pos_right_foot[index];
2513 return data->pos_right_foot_confidence;
2544 return data->ori_head;
2557 throw Exception(
"Index value %u out of bounds (0..8)", index);
2559 return data->ori_head[index];
2600 return data->ori_head_confidence;
2631 return data->ori_neck;
2644 throw Exception(
"Index value %u out of bounds (0..8)", index);
2646 return data->ori_neck[index];
2687 return data->ori_neck_confidence;
2718 return data->ori_torso;
2731 throw Exception(
"Index value %u out of bounds (0..8)", index);
2733 return data->ori_torso[index];
2774 return data->ori_torso_confidence;
2805 return data->ori_waist;
2818 throw Exception(
"Index value %u out of bounds (0..8)", index);
2820 return data->ori_waist[index];
2861 return data->ori_waist_confidence;
2893 return data->ori_left_collar;
2907 throw Exception(
"Index value %u out of bounds (0..8)", index);
2909 return data->ori_left_collar[index];
2952 return data->ori_left_collar_confidence;
2984 return data->ori_left_shoulder;
2998 throw Exception(
"Index value %u out of bounds (0..8)", index);
3000 return data->ori_left_shoulder[index];
3043 return data->ori_left_shoulder_confidence;
3075 return data->ori_left_elbow;
3089 throw Exception(
"Index value %u out of bounds (0..8)", index);
3091 return data->ori_left_elbow[index];
3134 return data->ori_left_elbow_confidence;
3166 return data->ori_left_wrist;
3180 throw Exception(
"Index value %u out of bounds (0..8)", index);
3182 return data->ori_left_wrist[index];
3225 return data->ori_left_wrist_confidence;
3257 return data->ori_left_hand;
3271 throw Exception(
"Index value %u out of bounds (0..8)", index);
3273 return data->ori_left_hand[index];
3316 return data->ori_left_hand_confidence;
3348 return data->ori_left_fingertip;
3362 throw Exception(
"Index value %u out of bounds (0..8)", index);
3364 return data->ori_left_fingertip[index];
3407 return data->ori_left_fingertip_confidence;
3439 return data->ori_right_collar;
3453 throw Exception(
"Index value %u out of bounds (0..8)", index);
3455 return data->ori_right_collar[index];
3498 return data->ori_right_collar_confidence;
3530 return data->ori_right_shoulder;
3544 throw Exception(
"Index value %u out of bounds (0..8)", index);
3546 return data->ori_right_shoulder[index];
3589 return data->ori_right_shoulder_confidence;
3621 return data->ori_right_elbow;
3635 throw Exception(
"Index value %u out of bounds (0..8)", index);
3637 return data->ori_right_elbow[index];
3680 return data->ori_right_elbow_confidence;
3712 return data->ori_right_wrist;
3726 throw Exception(
"Index value %u out of bounds (0..8)", index);
3728 return data->ori_right_wrist[index];
3771 return data->ori_right_wrist_confidence;
3803 return data->ori_right_hand;
3817 throw Exception(
"Index value %u out of bounds (0..8)", index);
3819 return data->ori_right_hand[index];
3862 return data->ori_right_hand_confidence;
3894 return data->ori_right_fingertip;
3908 throw Exception(
"Index value %u out of bounds (0..8)", index);
3910 return data->ori_right_fingertip[index];
3953 return data->ori_right_fingertip_confidence;
3985 return data->ori_left_hip;
3999 throw Exception(
"Index value %u out of bounds (0..8)", index);
4001 return data->ori_left_hip[index];
4044 return data->ori_left_hip_confidence;
4076 return data->ori_left_knee;
4090 throw Exception(
"Index value %u out of bounds (0..8)", index);
4092 return data->ori_left_knee[index];
4135 return data->ori_left_knee_confidence;
4167 return data->ori_left_ankle;
4181 throw Exception(
"Index value %u out of bounds (0..8)", index);
4183 return data->ori_left_ankle[index];
4226 return data->ori_left_ankle_confidence;
4258 return data->ori_left_foot;
4272 throw Exception(
"Index value %u out of bounds (0..8)", index);
4274 return data->ori_left_foot[index];
4317 return data->ori_left_foot_confidence;
4349 return data->ori_right_hip;
4363 throw Exception(
"Index value %u out of bounds (0..8)", index);
4365 return data->ori_right_hip[index];
4408 return data->ori_right_hip_confidence;
4440 return data->ori_right_knee;
4454 throw Exception(
"Index value %u out of bounds (0..8)", index);
4456 return data->ori_right_knee[index];
4499 return data->ori_right_knee_confidence;
4531 return data->ori_right_ankle;
4545 throw Exception(
"Index value %u out of bounds (0..8)", index);
4547 return data->ori_right_ankle[index];
4590 return data->ori_right_ankle_confidence;
4622 return data->ori_right_foot;
4636 throw Exception(
"Index value %u out of bounds (0..8)", index);
4638 return data->ori_right_foot[index];
4681 return data->ori_right_foot_confidence;
4710 "message type for this interface type.",
type);
4725 memcpy(data, oi->data,
sizeof(HumanSkeletonInterface_data_t));
4731 if (strcmp(enumtype,
"State") == 0) {
4732 return tostring_State((
State)val);
size_t maxlenof_pos_right_ankle_confidence() const
Get maximum length of pos_right_ankle_confidence value.
void set_ori_right_shoulder(unsigned int index, const float new_ori_right_shoulder)
Set ori_right_shoulder value at given index.
void set_pos_left_elbow_confidence(const float new_pos_left_elbow_confidence)
Set pos_left_elbow_confidence value.
float * ori_right_foot() const
Get ori_right_foot value.
float * pos_right_foot() const
Get pos_right_foot value.
void * data_ptr
Pointer to local memory storage.
size_t maxlenof_pos_right_hip_confidence() const
Get maximum length of pos_right_hip_confidence value.
size_t maxlenof_ori_right_hand() const
Get maximum length of ori_right_hand value.
void set_ori_right_knee_confidence(const float new_ori_right_knee_confidence)
Set ori_right_knee_confidence value.
virtual void copy_values(const Interface *other)
Copy values from other interface.
size_t maxlenof_pos_left_shoulder() const
Get maximum length of pos_left_shoulder value.
float pos_right_hip_confidence() const
Get pos_right_hip_confidence value.
size_t maxlenof_pos_right_shoulder_confidence() const
Get maximum length of pos_right_shoulder_confidence value.
void set_ori_right_foot(unsigned int index, const float new_ori_right_foot)
Set ori_right_foot value at given index.
void set_pos_right_wrist_confidence(const float new_pos_right_wrist_confidence)
Set pos_right_wrist_confidence value.
float pos_left_ankle_confidence() const
Get pos_left_ankle_confidence value.
void set_ori_left_ankle(unsigned int index, const float new_ori_left_ankle)
Set ori_left_ankle value at given index.
size_t maxlenof_pos_left_wrist() const
Get maximum length of pos_left_wrist value.
void set_ori_left_hand(unsigned int index, const float new_ori_left_hand)
Set ori_left_hand value at given index.
void set_pos_left_foot_confidence(const float new_pos_left_foot_confidence)
Set pos_left_foot_confidence value.
float * ori_right_ankle() const
Get ori_right_ankle value.
float pos_left_elbow_confidence() const
Get pos_left_elbow_confidence value.
void set_pos_left_elbow(unsigned int index, const float new_pos_left_elbow)
Set pos_left_elbow value at given index.
void set_pos_neck(unsigned int index, const float new_pos_neck)
Set pos_neck value at given index.
void set_pos_left_hand_confidence(const float new_pos_left_hand_confidence)
Set pos_left_hand_confidence value.
float * pos_left_wrist() const
Get pos_left_wrist value.
void set_ori_right_collar(unsigned int index, const float new_ori_right_collar)
Set ori_right_collar value at given index.
size_t maxlenof_pos_head_confidence() const
Get maximum length of pos_head_confidence value.
float * pos_head() const
Get pos_head value.
size_t maxlenof_pos_right_hip() const
Get maximum length of pos_right_hip value.
float ori_right_foot_confidence() const
Get ori_right_foot_confidence value.
void set_pos_left_ankle(unsigned int index, const float new_pos_left_ankle)
Set pos_left_ankle value at given index.
float ori_left_hand_confidence() const
Get ori_left_hand_confidence value.
float pos_right_shoulder_confidence() const
Get pos_right_shoulder_confidence value.
size_t maxlenof_ori_right_foot_confidence() const
Get maximum length of ori_right_foot_confidence value.
size_t maxlenof_ori_right_shoulder() const
Get maximum length of ori_right_shoulder value.
size_t maxlenof_ori_right_elbow_confidence() const
Get maximum length of ori_right_elbow_confidence value.
size_t maxlenof_pos_neck() const
Get maximum length of pos_neck value.
void set_pose(const char *new_pose)
Set pose value.
void set_pos_right_hand_confidence(const float new_pos_right_hand_confidence)
Set pos_right_hand_confidence value.
size_t maxlenof_pos_left_shoulder_confidence() const
Get maximum length of pos_left_shoulder_confidence value.
void set_pos_right_hand(unsigned int index, const float new_pos_right_hand)
Set pos_right_hand value at given index.
void set_pos_right_elbow_confidence(const float new_pos_right_elbow_confidence)
Set pos_right_elbow_confidence value.
float * ori_left_hand() const
Get ori_left_hand value.
size_t maxlenof_pos_right_fingertip() const
Get maximum length of pos_right_fingertip value.
float pos_right_fingertip_confidence() const
Get pos_right_fingertip_confidence value.
float * pos_left_collar() const
Get pos_left_collar value.
void set_pos_right_ankle_confidence(const float new_pos_right_ankle_confidence)
Set pos_right_ankle_confidence value.
size_t maxlenof_pos_right_elbow() const
Get maximum length of pos_right_elbow value.
float pos_left_wrist_confidence() const
Get pos_left_wrist_confidence value.
size_t maxlenof_ori_head_confidence() const
Get maximum length of ori_head_confidence value.
size_t maxlenof_pos_right_elbow_confidence() const
Get maximum length of pos_right_elbow_confidence value.
void set_pos_torso_confidence(const float new_pos_torso_confidence)
Set pos_torso_confidence value.
size_t maxlenof_pos_left_collar_confidence() const
Get maximum length of pos_left_collar_confidence value.
float pos_right_foot_confidence() const
Get pos_right_foot_confidence value.
size_t maxlenof_pos_left_fingertip_confidence() const
Get maximum length of pos_left_fingertip_confidence value.
Base class for all messages passed through interfaces in Fawkes BlackBoard.
size_t maxlenof_pos_left_elbow() const
Get maximum length of pos_left_elbow value.
void set_ori_right_wrist_confidence(const float new_ori_right_wrist_confidence)
Set ori_right_wrist_confidence value.
float ori_left_shoulder_confidence() const
Get ori_left_shoulder_confidence value.
size_t maxlenof_state() const
Get maximum length of state value.
float ori_right_ankle_confidence() const
Get ori_right_ankle_confidence value.
float pos_left_collar_confidence() const
Get pos_left_collar_confidence value.
float pos_left_knee_confidence() const
Get pos_left_knee_confidence value.
float ori_right_hip_confidence() const
Get ori_right_hip_confidence value.
void set_ori_torso(unsigned int index, const float new_ori_torso)
Set ori_torso value at given index.
void set_ori_left_elbow(unsigned int index, const float new_ori_left_elbow)
Set ori_left_elbow value at given index.
size_t maxlenof_pos_neck_confidence() const
Get maximum length of pos_neck_confidence value.
void * data_ptr
Pointer to memory that contains local data.
size_t maxlenof_pos_left_hand() const
Get maximum length of pos_left_hand value.
size_t maxlenof_ori_left_foot_confidence() const
Get maximum length of ori_left_foot_confidence value.
virtual bool message_valid(const Message *message) const
Check if message is valid and can be enqueued.
HumanSkeletonInterface Fawkes BlackBoard Interface.
void set_ori_left_foot_confidence(const float new_ori_left_foot_confidence)
Set ori_left_foot_confidence value.
float ori_right_collar_confidence() const
Get ori_right_collar_confidence value.
size_t maxlenof_pos_left_collar() const
Get maximum length of pos_left_collar value.
size_t maxlenof_ori_right_hip_confidence() const
Get maximum length of ori_right_hip_confidence value.
void set_pos_right_knee_confidence(const float new_pos_right_knee_confidence)
Set pos_right_knee_confidence value.
float * pos_right_knee() const
Get pos_right_knee value.
size_t maxlenof_ori_right_hip() const
Get maximum length of ori_right_hip value.
void set_pos_right_foot_confidence(const float new_pos_right_foot_confidence)
Set pos_right_foot_confidence value.
size_t maxlenof_pos_left_foot_confidence() const
Get maximum length of pos_left_foot_confidence value.
@ IFT_ENUM
field with interface specific enum type
message_data_ts_t * data_ts
data timestamp aliasing pointer
void set_ori_left_wrist_confidence(const float new_ori_left_wrist_confidence)
Set ori_left_wrist_confidence value.
float pos_right_wrist_confidence() const
Get pos_right_wrist_confidence value.
size_t maxlenof_pos_left_hip() const
Get maximum length of pos_left_hip value.
float ori_right_wrist_confidence() const
Get ori_right_wrist_confidence value.
float ori_right_shoulder_confidence() const
Get ori_right_shoulder_confidence value.
size_t maxlenof_pos_left_ankle_confidence() const
Get maximum length of pos_left_ankle_confidence value.
size_t maxlenof_pos_right_wrist() const
Get maximum length of pos_right_wrist value.
@ IFT_UINT32
32 bit unsigned integer field
void set_ori_right_hip(unsigned int index, const float new_ori_right_hip)
Set ori_right_hip value at given index.
size_t maxlenof_ori_left_ankle() const
Get maximum length of ori_left_ankle value.
size_t maxlenof_pos_right_shoulder() const
Get maximum length of pos_right_shoulder value.
size_t maxlenof_ori_right_elbow() const
Get maximum length of ori_right_elbow value.
float * pos_left_ankle() const
Get pos_left_ankle value.
size_t maxlenof_ori_waist() const
Get maximum length of ori_waist value.
void set_pos_head(unsigned int index, const float new_pos_head)
Set pos_head value at given index.
void set_pos_head_confidence(const float new_pos_head_confidence)
Set pos_head_confidence value.
size_t maxlenof_pos_right_collar_confidence() const
Get maximum length of pos_right_collar_confidence value.
void set_user_id(const uint32_t new_user_id)
Set user_id value.
void set_pos_left_ankle_confidence(const float new_pos_left_ankle_confidence)
Set pos_left_ankle_confidence value.
float pos_head_confidence() const
Get pos_head_confidence value.
float pos_torso_confidence() const
Get pos_torso_confidence value.
void set_pos_left_fingertip(unsigned int index, const float new_pos_left_fingertip)
Set pos_left_fingertip value at given index.
float * com() const
Get com value.
float * ori_neck() const
Get ori_neck value.
const char * type() const
Get type of interface.
float ori_right_knee_confidence() const
Get ori_right_knee_confidence value.
void set_pos_left_hand(unsigned int index, const float new_pos_left_hand)
Set pos_left_hand value at given index.
void set_ori_left_wrist(unsigned int index, const float new_ori_left_wrist)
Set ori_left_wrist value at given index.
float ori_torso_confidence() const
Get ori_torso_confidence value.
size_t maxlenof_ori_left_shoulder_confidence() const
Get maximum length of ori_left_shoulder_confidence value.
size_t maxlenof_ori_left_fingertip_confidence() const
Get maximum length of ori_left_fingertip_confidence value.
void set_ori_left_knee_confidence(const float new_ori_left_knee_confidence)
Set ori_left_knee_confidence value.
void set_pos_left_collar(unsigned int index, const float new_pos_left_collar)
Set pos_left_collar value at given index.
size_t maxlenof_pos_left_knee_confidence() const
Get maximum length of pos_left_knee_confidence value.
void set_ori_left_shoulder_confidence(const float new_ori_left_shoulder_confidence)
Set ori_left_shoulder_confidence value.
float * ori_right_hand() const
Get ori_right_hand value.
void set_pos_waist(unsigned int index, const float new_pos_waist)
Set pos_waist value at given index.
size_t maxlenof_ori_left_elbow() const
Get maximum length of ori_left_elbow value.
size_t maxlenof_ori_waist_confidence() const
Get maximum length of ori_waist_confidence value.
float * ori_right_fingertip() const
Get ori_right_fingertip value.
void set_state(const State new_state)
Set state value.
size_t maxlenof_ori_torso() const
Get maximum length of ori_torso value.
float * ori_left_hip() const
Get ori_left_hip value.
size_t maxlenof_ori_right_hand_confidence() const
Get maximum length of ori_right_hand_confidence value.
void set_ori_right_collar_confidence(const float new_ori_right_collar_confidence)
Set ori_right_collar_confidence value.
float ori_left_collar_confidence() const
Get ori_left_collar_confidence value.
void set_ori_right_hand(unsigned int index, const float new_ori_right_hand)
Set ori_right_hand value at given index.
const char * tostring_State(State value) const
Convert State constant to string.
size_t maxlenof_ori_left_elbow_confidence() const
Get maximum length of ori_left_elbow_confidence value.
size_t maxlenof_pos_left_fingertip() const
Get maximum length of pos_left_fingertip value.
float * ori_left_knee() const
Get ori_left_knee value.
float ori_left_knee_confidence() const
Get ori_left_knee_confidence value.
void set_pos_right_hip_confidence(const float new_pos_right_hip_confidence)
Set pos_right_hip_confidence value.
float * ori_left_elbow() const
Get ori_left_elbow value.
void set_pos_left_foot(unsigned int index, const float new_pos_left_foot)
Set pos_left_foot value at given index.
virtual Message * create_message(const char *type) const
Create message based on type name.
void set_pos_left_wrist(unsigned int index, const float new_pos_left_wrist)
Set pos_left_wrist value at given index.
void set_pos_right_foot(unsigned int index, const float new_pos_right_foot)
Set pos_right_foot value at given index.
void set_pos_right_shoulder(unsigned int index, const float new_pos_right_shoulder)
Set pos_right_shoulder value at given index.
float * pos_left_fingertip() const
Get pos_left_fingertip value.
void set_ori_waist_confidence(const float new_ori_waist_confidence)
Set ori_waist_confidence value.
size_t maxlenof_ori_left_wrist_confidence() const
Get maximum length of ori_left_wrist_confidence value.
size_t maxlenof_ori_left_hand_confidence() const
Get maximum length of ori_left_hand_confidence value.
size_t maxlenof_pos_left_elbow_confidence() const
Get maximum length of pos_left_elbow_confidence value.
bool data_changed
Indicator if data has changed.
float ori_right_hand_confidence() const
Get ori_right_hand_confidence value.
size_t maxlenof_pos_right_knee() const
Get maximum length of pos_right_knee value.
size_t maxlenof_pose() const
Get maximum length of pose value.
void set_ori_right_ankle(unsigned int index, const float new_ori_right_ankle)
Set ori_right_ankle value at given index.
void set_visibility_history(const int32_t new_visibility_history)
Set visibility_history value.
void set_pos_left_shoulder_confidence(const float new_pos_left_shoulder_confidence)
Set pos_left_shoulder_confidence value.
float pos_left_hand_confidence() const
Get pos_left_hand_confidence value.
float pos_right_elbow_confidence() const
Get pos_right_elbow_confidence value.
float * pos_left_hand() const
Get pos_left_hand value.
float * pos_right_elbow() const
Get pos_right_elbow value.
@ IFT_INT32
32 bit integer field
void set_com(unsigned int index, const float new_com)
Set com value at given index.
int32_t visibility_history() const
Get visibility_history value.
float * pos_torso() const
Get pos_torso value.
void set_ori_right_hip_confidence(const float new_ori_right_hip_confidence)
Set ori_right_hip_confidence value.
State state() const
Get state value.
void set_ori_right_wrist(unsigned int index, const float new_ori_right_wrist)
Set ori_right_wrist value at given index.
void set_ori_right_ankle_confidence(const float new_ori_right_ankle_confidence)
Set ori_right_ankle_confidence value.
void set_ori_left_fingertip(unsigned int index, const float new_ori_left_fingertip)
Set ori_left_fingertip value at given index.
void set_ori_left_collar(unsigned int index, const float new_ori_left_collar)
Set ori_left_collar value at given index.
float * ori_right_wrist() const
Get ori_right_wrist value.
float ori_left_hip_confidence() const
Get ori_left_hip_confidence value.
void set_ori_right_shoulder_confidence(const float new_ori_right_shoulder_confidence)
Set ori_right_shoulder_confidence value.
size_t maxlenof_pos_right_wrist_confidence() const
Get maximum length of pos_right_wrist_confidence value.
void set_pos_neck_confidence(const float new_pos_neck_confidence)
Set pos_neck_confidence value.
float ori_right_elbow_confidence() const
Get ori_right_elbow_confidence value.
float pos_right_ankle_confidence() const
Get pos_right_ankle_confidence value.
void set_ori_left_fingertip_confidence(const float new_ori_left_fingertip_confidence)
Set ori_left_fingertip_confidence value.
Fawkes library namespace.
void set_pos_left_hip_confidence(const float new_pos_left_hip_confidence)
Set pos_left_hip_confidence value.
void set_hash(unsigned char *ihash)
Set hash.
float ori_left_wrist_confidence() const
Get ori_left_wrist_confidence value.
size_t maxlenof_pos_left_hip_confidence() const
Get maximum length of pos_left_hip_confidence value.
float * ori_right_hip() const
Get ori_right_hip value.
unsigned int data_size
Size of memory needed to hold all data.
void set_ori_right_knee(unsigned int index, const float new_ori_right_knee)
Set ori_right_knee value at given index.
float * ori_right_knee() const
Get ori_right_knee value.
size_t maxlenof_pos_right_ankle() const
Get maximum length of pos_right_ankle value.
size_t maxlenof_pos_waist() const
Get maximum length of pos_waist value.
size_t maxlenof_pos_right_foot_confidence() const
Get maximum length of pos_right_foot_confidence value.
void set_ori_left_hip_confidence(const float new_ori_left_hip_confidence)
Set ori_left_hip_confidence value.
size_t maxlenof_pos_right_knee_confidence() const
Get maximum length of pos_right_knee_confidence value.
void set_pos_right_collar(unsigned int index, const float new_pos_right_collar)
Set pos_right_collar value at given index.
float * pos_left_hip() const
Get pos_left_hip value.
void set_ori_head(unsigned int index, const float new_ori_head)
Set ori_head value at given index.
void set_ori_left_ankle_confidence(const float new_ori_left_ankle_confidence)
Set ori_left_ankle_confidence value.
float * ori_left_fingertip() const
Get ori_left_fingertip value.
size_t maxlenof_pos_torso() const
Get maximum length of pos_torso value.
void set_pos_right_knee(unsigned int index, const float new_pos_right_knee)
Set pos_right_knee value at given index.
Base class for all Fawkes BlackBoard interfaces.
void set_pos_left_fingertip_confidence(const float new_pos_left_fingertip_confidence)
Set pos_left_fingertip_confidence value.
void set_pos_left_hip(unsigned int index, const float new_pos_left_hip)
Set pos_left_hip value at given index.
float pos_waist_confidence() const
Get pos_waist_confidence value.
size_t maxlenof_ori_left_ankle_confidence() const
Get maximum length of ori_left_ankle_confidence value.
float * ori_left_wrist() const
Get ori_left_wrist value.
size_t maxlenof_pos_right_fingertip_confidence() const
Get maximum length of pos_right_fingertip_confidence value.
float * pos_left_knee() const
Get pos_left_knee value.
void set_pos_right_fingertip_confidence(const float new_pos_right_fingertip_confidence)
Set pos_right_fingertip_confidence value.
void set_ori_right_elbow_confidence(const float new_ori_right_elbow_confidence)
Set ori_right_elbow_confidence value.
float * pos_right_hip() const
Get pos_right_hip value.
void set_pos_right_ankle(unsigned int index, const float new_pos_right_ankle)
Set pos_right_ankle value at given index.
float ori_head_confidence() const
Get ori_head_confidence value.
void set_ori_right_hand_confidence(const float new_ori_right_hand_confidence)
Set ori_right_hand_confidence value.
float * pos_left_elbow() const
Get pos_left_elbow value.
size_t maxlenof_ori_right_shoulder_confidence() const
Get maximum length of ori_right_shoulder_confidence value.
float * ori_torso() const
Get ori_torso value.
size_t maxlenof_pos_left_ankle() const
Get maximum length of pos_left_ankle value.
void set_pos_right_shoulder_confidence(const float new_pos_right_shoulder_confidence)
Set pos_right_shoulder_confidence value.
void set_ori_head_confidence(const float new_ori_head_confidence)
Set ori_head_confidence value.
float ori_waist_confidence() const
Get ori_waist_confidence value.
size_t maxlenof_ori_left_knee_confidence() const
Get maximum length of ori_left_knee_confidence value.
void set_ori_right_elbow(unsigned int index, const float new_ori_right_elbow)
Set ori_right_elbow value at given index.
uint32_t user_id() const
Get user_id value.
size_t maxlenof_ori_left_hip() const
Get maximum length of ori_left_hip value.
void set_ori_left_hip(unsigned int index, const float new_ori_left_hip)
Set ori_left_hip value at given index.
virtual const char * enum_tostring(const char *enumtype, int val) const
Convert arbitrary enum value to string.
void set_ori_left_foot(unsigned int index, const float new_ori_left_foot)
Set ori_left_foot value at given index.
float * ori_left_shoulder() const
Get ori_left_shoulder value.
float pos_left_foot_confidence() const
Get pos_left_foot_confidence value.
float * pos_right_hand() const
Get pos_right_hand value.
float pos_neck_confidence() const
Get pos_neck_confidence value.
float ori_left_foot_confidence() const
Get ori_left_foot_confidence value.
void add_fieldinfo(interface_fieldtype_t type, const char *name, size_t length, void *value, const char *enumtype=0, const interface_enum_map_t *enum_map=0)
Add an entry to the info list.
size_t maxlenof_ori_neck() const
Get maximum length of ori_neck value.
size_t maxlenof_pos_left_wrist_confidence() const
Get maximum length of pos_left_wrist_confidence value.
float * ori_head() const
Get ori_head value.
size_t maxlenof_ori_left_wrist() const
Get maximum length of ori_left_wrist value.
char * pose() const
Get pose value.
size_t maxlenof_ori_right_ankle_confidence() const
Get maximum length of ori_right_ankle_confidence value.
size_t maxlenof_ori_right_ankle() const
Get maximum length of ori_right_ankle value.
float * pos_right_ankle() const
Get pos_right_ankle value.
void set_pos_left_knee(unsigned int index, const float new_pos_left_knee)
Set pos_left_knee value at given index.
void set_pos_right_fingertip(unsigned int index, const float new_pos_right_fingertip)
Set pos_right_fingertip value at given index.
void set_pos_right_hip(unsigned int index, const float new_pos_right_hip)
Set pos_right_hip value at given index.
size_t maxlenof_ori_torso_confidence() const
Get maximum length of ori_torso_confidence value.
void set_pos_left_knee_confidence(const float new_pos_left_knee_confidence)
Set pos_left_knee_confidence value.
float * ori_left_collar() const
Get ori_left_collar value.
size_t maxlenof_ori_right_wrist_confidence() const
Get maximum length of ori_right_wrist_confidence value.
float pos_left_fingertip_confidence() const
Get pos_left_fingertip_confidence value.
size_t maxlenof_ori_left_shoulder() const
Get maximum length of ori_left_shoulder value.
float pos_left_shoulder_confidence() const
Get pos_left_shoulder_confidence value.
float ori_left_fingertip_confidence() const
Get ori_left_fingertip_confidence value.
float * ori_right_shoulder() const
Get ori_right_shoulder value.
float ori_right_fingertip_confidence() const
Get ori_right_fingertip_confidence value.
void set_pos_left_collar_confidence(const float new_pos_left_collar_confidence)
Set pos_left_collar_confidence value.
void set_pos_waist_confidence(const float new_pos_waist_confidence)
Set pos_waist_confidence value.
size_t maxlenof_ori_left_foot() const
Get maximum length of ori_left_foot value.
float * pos_left_shoulder() const
Get pos_left_shoulder value.
size_t maxlenof_com() const
Get maximum length of com value.
size_t maxlenof_ori_right_foot() const
Get maximum length of ori_right_foot value.
float * pos_neck() const
Get pos_neck value.
size_t maxlenof_pos_right_hand() const
Get maximum length of pos_right_hand value.
float * ori_right_elbow() const
Get ori_right_elbow value.
size_t maxlenof_pos_left_knee() const
Get maximum length of pos_left_knee value.
size_t maxlenof_pos_head() const
Get maximum length of pos_head value.
size_t maxlenof_pos_right_foot() const
Get maximum length of pos_right_foot value.
size_t maxlenof_user_id() const
Get maximum length of user_id value.
size_t maxlenof_ori_neck_confidence() const
Get maximum length of ori_neck_confidence value.
void set_ori_waist(unsigned int index, const float new_ori_waist)
Set ori_waist value at given index.
size_t maxlenof_ori_head() const
Get maximum length of ori_head value.
float * pos_right_wrist() const
Get pos_right_wrist value.
float * ori_right_collar() const
Get ori_right_collar value.
float pos_right_hand_confidence() const
Get pos_right_hand_confidence value.
float ori_left_elbow_confidence() const
Get ori_left_elbow_confidence value.
void set_pos_torso(unsigned int index, const float new_pos_torso)
Set pos_torso value at given index.
float ori_left_ankle_confidence() const
Get ori_left_ankle_confidence value.
void set_pos_left_wrist_confidence(const float new_pos_left_wrist_confidence)
Set pos_left_wrist_confidence value.
float * ori_left_ankle() const
Get ori_left_ankle value.
size_t maxlenof_ori_right_fingertip_confidence() const
Get maximum length of ori_right_fingertip_confidence value.
float * pos_left_foot() const
Get pos_left_foot value.
size_t maxlenof_ori_right_collar_confidence() const
Get maximum length of ori_right_collar_confidence value.
size_t maxlenof_ori_right_wrist() const
Get maximum length of ori_right_wrist value.
float * pos_right_collar() const
Get pos_right_collar value.
float pos_left_hip_confidence() const
Get pos_left_hip_confidence value.
size_t maxlenof_ori_right_collar() const
Get maximum length of ori_right_collar value.
size_t maxlenof_ori_left_hand() const
Get maximum length of ori_left_hand value.
void set_ori_neck(unsigned int index, const float new_ori_neck)
Set ori_neck value at given index.
size_t maxlenof_pos_torso_confidence() const
Get maximum length of pos_torso_confidence value.
void set_pos_right_elbow(unsigned int index, const float new_pos_right_elbow)
Set pos_right_elbow value at given index.
float * pos_waist() const
Get pos_waist value.
float * pos_right_shoulder() const
Get pos_right_shoulder value.
size_t maxlenof_pos_right_hand_confidence() const
Get maximum length of pos_right_hand_confidence value.
size_t maxlenof_ori_left_knee() const
Get maximum length of ori_left_knee value.
void set_pos_right_collar_confidence(const float new_pos_right_collar_confidence)
Set pos_right_collar_confidence value.
float * ori_waist() const
Get ori_waist value.
size_t maxlenof_ori_right_fingertip() const
Get maximum length of ori_right_fingertip value.
size_t maxlenof_pos_right_collar() const
Get maximum length of pos_right_collar value.
void set_ori_left_hand_confidence(const float new_ori_left_hand_confidence)
Set ori_left_hand_confidence value.
size_t maxlenof_ori_left_hip_confidence() const
Get maximum length of ori_left_hip_confidence value.
void set_pos_right_wrist(unsigned int index, const float new_pos_right_wrist)
Set pos_right_wrist value at given index.
size_t maxlenof_pos_left_hand_confidence() const
Get maximum length of pos_left_hand_confidence value.
void set_ori_right_foot_confidence(const float new_ori_right_foot_confidence)
Set ori_right_foot_confidence value.
size_t maxlenof_ori_right_knee_confidence() const
Get maximum length of ori_right_knee_confidence value.
size_t maxlenof_ori_left_collar() const
Get maximum length of ori_left_collar value.
void set_ori_left_collar_confidence(const float new_ori_left_collar_confidence)
Set ori_left_collar_confidence value.
bool change_field(FieldT &field, const DataT &value)
Set a field and return whether it changed.
State
Current tracking state for the skeleton.
float pos_right_collar_confidence() const
Get pos_right_collar_confidence value.
float * ori_left_foot() const
Get ori_left_foot value.
size_t maxlenof_pos_left_foot() const
Get maximum length of pos_left_foot value.
size_t maxlenof_ori_right_knee() const
Get maximum length of ori_right_knee value.
float pos_right_knee_confidence() const
Get pos_right_knee_confidence value.
void set_ori_right_fingertip_confidence(const float new_ori_right_fingertip_confidence)
Set ori_right_fingertip_confidence value.
void set_ori_neck_confidence(const float new_ori_neck_confidence)
Set ori_neck_confidence value.
size_t maxlenof_pos_waist_confidence() const
Get maximum length of pos_waist_confidence value.
void set_pos_left_shoulder(unsigned int index, const float new_pos_left_shoulder)
Set pos_left_shoulder value at given index.
float ori_neck_confidence() const
Get ori_neck_confidence value.
void set_ori_left_shoulder(unsigned int index, const float new_ori_left_shoulder)
Set ori_left_shoulder value at given index.
void set_ori_left_knee(unsigned int index, const float new_ori_left_knee)
Set ori_left_knee value at given index.
void set_ori_right_fingertip(unsigned int index, const float new_ori_right_fingertip)
Set ori_right_fingertip value at given index.
size_t maxlenof_ori_left_collar_confidence() const
Get maximum length of ori_left_collar_confidence value.
size_t maxlenof_visibility_history() const
Get maximum length of visibility_history value.
size_t maxlenof_ori_left_fingertip() const
Get maximum length of ori_left_fingertip value.
void set_ori_left_elbow_confidence(const float new_ori_left_elbow_confidence)
Set ori_left_elbow_confidence value.
void set_ori_torso_confidence(const float new_ori_torso_confidence)
Set ori_torso_confidence value.
float * pos_right_fingertip() const
Get pos_right_fingertip value.
Base class for exceptions in Fawkes.