24 #include <interfaces/HumanSkeletonProjectionInterface.h>
26 #include <core/exceptions/software.h>
48 HumanSkeletonProjectionInterface::HumanSkeletonProjectionInterface() : Interface()
50 data_size =
sizeof(HumanSkeletonProjectionInterface_data_t);
51 data_ptr = malloc(data_size);
52 data = (HumanSkeletonProjectionInterface_data_t *)data_ptr;
53 data_ts = (interface_data_ts_t *)data_ptr;
54 memset(data_ptr, 0, data_size);
55 add_fieldinfo(IFT_FLOAT,
"horizontal_fov", 1, &data->horizontal_fov);
56 add_fieldinfo(IFT_FLOAT,
"vertical_fov", 1, &data->vertical_fov);
57 add_fieldinfo(IFT_UINT32,
"res_x", 1, &data->res_x);
58 add_fieldinfo(IFT_UINT32,
"res_y", 1, &data->res_y);
59 add_fieldinfo(IFT_UINT16,
"max_depth", 1, &data->max_depth);
60 add_fieldinfo(IFT_FLOAT,
"proj_com", 2, &data->proj_com);
61 add_fieldinfo(IFT_FLOAT,
"proj_head", 2, &data->proj_head);
62 add_fieldinfo(IFT_FLOAT,
"proj_neck", 2, &data->proj_neck);
63 add_fieldinfo(IFT_FLOAT,
"proj_torso", 2, &data->proj_torso);
64 add_fieldinfo(IFT_FLOAT,
"proj_waist", 2, &data->proj_waist);
65 add_fieldinfo(IFT_FLOAT,
"proj_left_collar", 2, &data->proj_left_collar);
66 add_fieldinfo(IFT_FLOAT,
"proj_left_shoulder", 2, &data->proj_left_shoulder);
67 add_fieldinfo(IFT_FLOAT,
"proj_left_elbow", 2, &data->proj_left_elbow);
68 add_fieldinfo(IFT_FLOAT,
"proj_left_wrist", 2, &data->proj_left_wrist);
69 add_fieldinfo(IFT_FLOAT,
"proj_left_hand", 2, &data->proj_left_hand);
70 add_fieldinfo(IFT_FLOAT,
"proj_left_fingertip", 2, &data->proj_left_fingertip);
71 add_fieldinfo(IFT_FLOAT,
"proj_right_collar", 2, &data->proj_right_collar);
72 add_fieldinfo(IFT_FLOAT,
"proj_right_shoulder", 2, &data->proj_right_shoulder);
73 add_fieldinfo(IFT_FLOAT,
"proj_right_elbow", 2, &data->proj_right_elbow);
74 add_fieldinfo(IFT_FLOAT,
"proj_right_wrist", 2, &data->proj_right_wrist);
75 add_fieldinfo(IFT_FLOAT,
"proj_right_hand", 2, &data->proj_right_hand);
76 add_fieldinfo(IFT_FLOAT,
"proj_right_fingertip", 2, &data->proj_right_fingertip);
77 add_fieldinfo(IFT_FLOAT,
"proj_left_hip", 2, &data->proj_left_hip);
78 add_fieldinfo(IFT_FLOAT,
"proj_left_knee", 2, &data->proj_left_knee);
79 add_fieldinfo(IFT_FLOAT,
"proj_left_ankle", 2, &data->proj_left_ankle);
80 add_fieldinfo(IFT_FLOAT,
"proj_left_foot", 2, &data->proj_left_foot);
81 add_fieldinfo(IFT_FLOAT,
"proj_right_hip", 2, &data->proj_right_hip);
82 add_fieldinfo(IFT_FLOAT,
"proj_right_knee", 2, &data->proj_right_knee);
83 add_fieldinfo(IFT_FLOAT,
"proj_right_ankle", 2, &data->proj_right_ankle);
84 add_fieldinfo(IFT_FLOAT,
"proj_right_foot", 2, &data->proj_right_foot);
85 unsigned char tmp_hash[] = {0x71, 0xb2, 0x40, 0x3e, 0xa, 0x85, 0xd5, 0xcc, 0x77, 0xeb, 0xf2, 0xf1, 0xa9, 0x9c, 0xec, 0xf3};
90 HumanSkeletonProjectionInterface::~HumanSkeletonProjectionInterface()
100 HumanSkeletonProjectionInterface::horizontal_fov()
const
102 return data->horizontal_fov;
110 HumanSkeletonProjectionInterface::maxlenof_horizontal_fov()
const
120 HumanSkeletonProjectionInterface::set_horizontal_fov(
const float new_horizontal_fov)
122 data_changed |=
change_field(data->horizontal_fov, new_horizontal_fov);
130 HumanSkeletonProjectionInterface::vertical_fov()
const
132 return data->vertical_fov;
140 HumanSkeletonProjectionInterface::maxlenof_vertical_fov()
const
150 HumanSkeletonProjectionInterface::set_vertical_fov(
const float new_vertical_fov)
152 data_changed |=
change_field(data->vertical_fov, new_vertical_fov);
160 HumanSkeletonProjectionInterface::res_x()
const
170 HumanSkeletonProjectionInterface::maxlenof_res_x()
const
180 HumanSkeletonProjectionInterface::set_res_x(
const uint32_t new_res_x)
190 HumanSkeletonProjectionInterface::res_y()
const
200 HumanSkeletonProjectionInterface::maxlenof_res_y()
const
210 HumanSkeletonProjectionInterface::set_res_y(
const uint32_t new_res_y)
220 HumanSkeletonProjectionInterface::max_depth()
const
222 return data->max_depth;
230 HumanSkeletonProjectionInterface::maxlenof_max_depth()
const
240 HumanSkeletonProjectionInterface::set_max_depth(
const uint16_t new_max_depth)
242 data_changed |=
change_field(data->max_depth, new_max_depth);
250 HumanSkeletonProjectionInterface::proj_com()
const
252 return data->proj_com;
262 HumanSkeletonProjectionInterface::proj_com(
unsigned int index)
const
265 throw Exception(
"Index value %u out of bounds (0..1)", index);
267 return data->proj_com[index];
275 HumanSkeletonProjectionInterface::maxlenof_proj_com()
const
285 HumanSkeletonProjectionInterface::set_proj_com(
const float * new_proj_com)
287 data_changed |=
change_field(data->proj_com, new_proj_com);
296 HumanSkeletonProjectionInterface::set_proj_com(
unsigned int index,
const float new_proj_com)
298 data_changed |=
change_field(data->proj_com, index, new_proj_com);
305 HumanSkeletonProjectionInterface::proj_head()
const
307 return data->proj_head;
317 HumanSkeletonProjectionInterface::proj_head(
unsigned int index)
const
320 throw Exception(
"Index value %u out of bounds (0..1)", index);
322 return data->proj_head[index];
330 HumanSkeletonProjectionInterface::maxlenof_proj_head()
const
340 HumanSkeletonProjectionInterface::set_proj_head(
const float * new_proj_head)
342 data_changed |=
change_field(data->proj_head, new_proj_head);
351 HumanSkeletonProjectionInterface::set_proj_head(
unsigned int index,
const float new_proj_head)
353 data_changed |=
change_field(data->proj_head, index, new_proj_head);
360 HumanSkeletonProjectionInterface::proj_neck()
const
362 return data->proj_neck;
372 HumanSkeletonProjectionInterface::proj_neck(
unsigned int index)
const
375 throw Exception(
"Index value %u out of bounds (0..1)", index);
377 return data->proj_neck[index];
385 HumanSkeletonProjectionInterface::maxlenof_proj_neck()
const
395 HumanSkeletonProjectionInterface::set_proj_neck(
const float * new_proj_neck)
397 data_changed |=
change_field(data->proj_neck, new_proj_neck);
406 HumanSkeletonProjectionInterface::set_proj_neck(
unsigned int index,
const float new_proj_neck)
408 data_changed |=
change_field(data->proj_neck, index, new_proj_neck);
415 HumanSkeletonProjectionInterface::proj_torso()
const
417 return data->proj_torso;
427 HumanSkeletonProjectionInterface::proj_torso(
unsigned int index)
const
430 throw Exception(
"Index value %u out of bounds (0..1)", index);
432 return data->proj_torso[index];
440 HumanSkeletonProjectionInterface::maxlenof_proj_torso()
const
450 HumanSkeletonProjectionInterface::set_proj_torso(
const float * new_proj_torso)
452 data_changed |=
change_field(data->proj_torso, new_proj_torso);
461 HumanSkeletonProjectionInterface::set_proj_torso(
unsigned int index,
const float new_proj_torso)
463 data_changed |=
change_field(data->proj_torso, index, new_proj_torso);
470 HumanSkeletonProjectionInterface::proj_waist()
const
472 return data->proj_waist;
482 HumanSkeletonProjectionInterface::proj_waist(
unsigned int index)
const
485 throw Exception(
"Index value %u out of bounds (0..1)", index);
487 return data->proj_waist[index];
495 HumanSkeletonProjectionInterface::maxlenof_proj_waist()
const
505 HumanSkeletonProjectionInterface::set_proj_waist(
const float * new_proj_waist)
507 data_changed |=
change_field(data->proj_waist, new_proj_waist);
516 HumanSkeletonProjectionInterface::set_proj_waist(
unsigned int index,
const float new_proj_waist)
518 data_changed |=
change_field(data->proj_waist, index, new_proj_waist);
526 HumanSkeletonProjectionInterface::proj_left_collar()
const
528 return data->proj_left_collar;
539 HumanSkeletonProjectionInterface::proj_left_collar(
unsigned int index)
const
542 throw Exception(
"Index value %u out of bounds (0..1)", index);
544 return data->proj_left_collar[index];
552 HumanSkeletonProjectionInterface::maxlenof_proj_left_collar()
const
563 HumanSkeletonProjectionInterface::set_proj_left_collar(
const float * new_proj_left_collar)
565 data_changed |=
change_field(data->proj_left_collar, new_proj_left_collar);
575 HumanSkeletonProjectionInterface::set_proj_left_collar(
unsigned int index,
const float new_proj_left_collar)
577 data_changed |=
change_field(data->proj_left_collar, index, new_proj_left_collar);
585 HumanSkeletonProjectionInterface::proj_left_shoulder()
const
587 return data->proj_left_shoulder;
598 HumanSkeletonProjectionInterface::proj_left_shoulder(
unsigned int index)
const
601 throw Exception(
"Index value %u out of bounds (0..1)", index);
603 return data->proj_left_shoulder[index];
611 HumanSkeletonProjectionInterface::maxlenof_proj_left_shoulder()
const
622 HumanSkeletonProjectionInterface::set_proj_left_shoulder(
const float * new_proj_left_shoulder)
624 data_changed |=
change_field(data->proj_left_shoulder, new_proj_left_shoulder);
634 HumanSkeletonProjectionInterface::set_proj_left_shoulder(
unsigned int index,
const float new_proj_left_shoulder)
636 data_changed |=
change_field(data->proj_left_shoulder, index, new_proj_left_shoulder);
644 HumanSkeletonProjectionInterface::proj_left_elbow()
const
646 return data->proj_left_elbow;
657 HumanSkeletonProjectionInterface::proj_left_elbow(
unsigned int index)
const
660 throw Exception(
"Index value %u out of bounds (0..1)", index);
662 return data->proj_left_elbow[index];
670 HumanSkeletonProjectionInterface::maxlenof_proj_left_elbow()
const
681 HumanSkeletonProjectionInterface::set_proj_left_elbow(
const float * new_proj_left_elbow)
683 data_changed |=
change_field(data->proj_left_elbow, new_proj_left_elbow);
693 HumanSkeletonProjectionInterface::set_proj_left_elbow(
unsigned int index,
const float new_proj_left_elbow)
695 data_changed |=
change_field(data->proj_left_elbow, index, new_proj_left_elbow);
703 HumanSkeletonProjectionInterface::proj_left_wrist()
const
705 return data->proj_left_wrist;
716 HumanSkeletonProjectionInterface::proj_left_wrist(
unsigned int index)
const
719 throw Exception(
"Index value %u out of bounds (0..1)", index);
721 return data->proj_left_wrist[index];
729 HumanSkeletonProjectionInterface::maxlenof_proj_left_wrist()
const
740 HumanSkeletonProjectionInterface::set_proj_left_wrist(
const float * new_proj_left_wrist)
742 data_changed |=
change_field(data->proj_left_wrist, new_proj_left_wrist);
752 HumanSkeletonProjectionInterface::set_proj_left_wrist(
unsigned int index,
const float new_proj_left_wrist)
754 data_changed |=
change_field(data->proj_left_wrist, index, new_proj_left_wrist);
762 HumanSkeletonProjectionInterface::proj_left_hand()
const
764 return data->proj_left_hand;
775 HumanSkeletonProjectionInterface::proj_left_hand(
unsigned int index)
const
778 throw Exception(
"Index value %u out of bounds (0..1)", index);
780 return data->proj_left_hand[index];
788 HumanSkeletonProjectionInterface::maxlenof_proj_left_hand()
const
799 HumanSkeletonProjectionInterface::set_proj_left_hand(
const float * new_proj_left_hand)
801 data_changed |=
change_field(data->proj_left_hand, new_proj_left_hand);
811 HumanSkeletonProjectionInterface::set_proj_left_hand(
unsigned int index,
const float new_proj_left_hand)
813 data_changed |=
change_field(data->proj_left_hand, index, new_proj_left_hand);
821 HumanSkeletonProjectionInterface::proj_left_fingertip()
const
823 return data->proj_left_fingertip;
834 HumanSkeletonProjectionInterface::proj_left_fingertip(
unsigned int index)
const
837 throw Exception(
"Index value %u out of bounds (0..1)", index);
839 return data->proj_left_fingertip[index];
847 HumanSkeletonProjectionInterface::maxlenof_proj_left_fingertip()
const
858 HumanSkeletonProjectionInterface::set_proj_left_fingertip(
const float * new_proj_left_fingertip)
860 data_changed |=
change_field(data->proj_left_fingertip, new_proj_left_fingertip);
870 HumanSkeletonProjectionInterface::set_proj_left_fingertip(
unsigned int index,
const float new_proj_left_fingertip)
872 data_changed |=
change_field(data->proj_left_fingertip, index, new_proj_left_fingertip);
880 HumanSkeletonProjectionInterface::proj_right_collar()
const
882 return data->proj_right_collar;
893 HumanSkeletonProjectionInterface::proj_right_collar(
unsigned int index)
const
896 throw Exception(
"Index value %u out of bounds (0..1)", index);
898 return data->proj_right_collar[index];
906 HumanSkeletonProjectionInterface::maxlenof_proj_right_collar()
const
917 HumanSkeletonProjectionInterface::set_proj_right_collar(
const float * new_proj_right_collar)
919 data_changed |=
change_field(data->proj_right_collar, new_proj_right_collar);
929 HumanSkeletonProjectionInterface::set_proj_right_collar(
unsigned int index,
const float new_proj_right_collar)
931 data_changed |=
change_field(data->proj_right_collar, index, new_proj_right_collar);
939 HumanSkeletonProjectionInterface::proj_right_shoulder()
const
941 return data->proj_right_shoulder;
952 HumanSkeletonProjectionInterface::proj_right_shoulder(
unsigned int index)
const
955 throw Exception(
"Index value %u out of bounds (0..1)", index);
957 return data->proj_right_shoulder[index];
965 HumanSkeletonProjectionInterface::maxlenof_proj_right_shoulder()
const
976 HumanSkeletonProjectionInterface::set_proj_right_shoulder(
const float * new_proj_right_shoulder)
978 data_changed |=
change_field(data->proj_right_shoulder, new_proj_right_shoulder);
988 HumanSkeletonProjectionInterface::set_proj_right_shoulder(
unsigned int index,
const float new_proj_right_shoulder)
990 data_changed |=
change_field(data->proj_right_shoulder, index, new_proj_right_shoulder);
998 HumanSkeletonProjectionInterface::proj_right_elbow()
const
1000 return data->proj_right_elbow;
1011 HumanSkeletonProjectionInterface::proj_right_elbow(
unsigned int index)
const
1014 throw Exception(
"Index value %u out of bounds (0..1)", index);
1016 return data->proj_right_elbow[index];
1024 HumanSkeletonProjectionInterface::maxlenof_proj_right_elbow()
const
1035 HumanSkeletonProjectionInterface::set_proj_right_elbow(
const float * new_proj_right_elbow)
1037 data_changed |=
change_field(data->proj_right_elbow, new_proj_right_elbow);
1047 HumanSkeletonProjectionInterface::set_proj_right_elbow(
unsigned int index,
const float new_proj_right_elbow)
1049 data_changed |=
change_field(data->proj_right_elbow, index, new_proj_right_elbow);
1057 HumanSkeletonProjectionInterface::proj_right_wrist()
const
1059 return data->proj_right_wrist;
1070 HumanSkeletonProjectionInterface::proj_right_wrist(
unsigned int index)
const
1073 throw Exception(
"Index value %u out of bounds (0..1)", index);
1075 return data->proj_right_wrist[index];
1083 HumanSkeletonProjectionInterface::maxlenof_proj_right_wrist()
const
1094 HumanSkeletonProjectionInterface::set_proj_right_wrist(
const float * new_proj_right_wrist)
1096 data_changed |=
change_field(data->proj_right_wrist, new_proj_right_wrist);
1106 HumanSkeletonProjectionInterface::set_proj_right_wrist(
unsigned int index,
const float new_proj_right_wrist)
1108 data_changed |=
change_field(data->proj_right_wrist, index, new_proj_right_wrist);
1116 HumanSkeletonProjectionInterface::proj_right_hand()
const
1118 return data->proj_right_hand;
1129 HumanSkeletonProjectionInterface::proj_right_hand(
unsigned int index)
const
1132 throw Exception(
"Index value %u out of bounds (0..1)", index);
1134 return data->proj_right_hand[index];
1142 HumanSkeletonProjectionInterface::maxlenof_proj_right_hand()
const
1153 HumanSkeletonProjectionInterface::set_proj_right_hand(
const float * new_proj_right_hand)
1155 data_changed |=
change_field(data->proj_right_hand, new_proj_right_hand);
1165 HumanSkeletonProjectionInterface::set_proj_right_hand(
unsigned int index,
const float new_proj_right_hand)
1167 data_changed |=
change_field(data->proj_right_hand, index, new_proj_right_hand);
1175 HumanSkeletonProjectionInterface::proj_right_fingertip()
const
1177 return data->proj_right_fingertip;
1188 HumanSkeletonProjectionInterface::proj_right_fingertip(
unsigned int index)
const
1191 throw Exception(
"Index value %u out of bounds (0..1)", index);
1193 return data->proj_right_fingertip[index];
1201 HumanSkeletonProjectionInterface::maxlenof_proj_right_fingertip()
const
1212 HumanSkeletonProjectionInterface::set_proj_right_fingertip(
const float * new_proj_right_fingertip)
1214 data_changed |=
change_field(data->proj_right_fingertip, new_proj_right_fingertip);
1224 HumanSkeletonProjectionInterface::set_proj_right_fingertip(
unsigned int index,
const float new_proj_right_fingertip)
1226 data_changed |=
change_field(data->proj_right_fingertip, index, new_proj_right_fingertip);
1234 HumanSkeletonProjectionInterface::proj_left_hip()
const
1236 return data->proj_left_hip;
1247 HumanSkeletonProjectionInterface::proj_left_hip(
unsigned int index)
const
1250 throw Exception(
"Index value %u out of bounds (0..1)", index);
1252 return data->proj_left_hip[index];
1260 HumanSkeletonProjectionInterface::maxlenof_proj_left_hip()
const
1271 HumanSkeletonProjectionInterface::set_proj_left_hip(
const float * new_proj_left_hip)
1273 data_changed |=
change_field(data->proj_left_hip, new_proj_left_hip);
1283 HumanSkeletonProjectionInterface::set_proj_left_hip(
unsigned int index,
const float new_proj_left_hip)
1285 data_changed |=
change_field(data->proj_left_hip, index, new_proj_left_hip);
1293 HumanSkeletonProjectionInterface::proj_left_knee()
const
1295 return data->proj_left_knee;
1306 HumanSkeletonProjectionInterface::proj_left_knee(
unsigned int index)
const
1309 throw Exception(
"Index value %u out of bounds (0..1)", index);
1311 return data->proj_left_knee[index];
1319 HumanSkeletonProjectionInterface::maxlenof_proj_left_knee()
const
1330 HumanSkeletonProjectionInterface::set_proj_left_knee(
const float * new_proj_left_knee)
1332 data_changed |=
change_field(data->proj_left_knee, new_proj_left_knee);
1342 HumanSkeletonProjectionInterface::set_proj_left_knee(
unsigned int index,
const float new_proj_left_knee)
1344 data_changed |=
change_field(data->proj_left_knee, index, new_proj_left_knee);
1352 HumanSkeletonProjectionInterface::proj_left_ankle()
const
1354 return data->proj_left_ankle;
1365 HumanSkeletonProjectionInterface::proj_left_ankle(
unsigned int index)
const
1368 throw Exception(
"Index value %u out of bounds (0..1)", index);
1370 return data->proj_left_ankle[index];
1378 HumanSkeletonProjectionInterface::maxlenof_proj_left_ankle()
const
1389 HumanSkeletonProjectionInterface::set_proj_left_ankle(
const float * new_proj_left_ankle)
1391 data_changed |=
change_field(data->proj_left_ankle, new_proj_left_ankle);
1401 HumanSkeletonProjectionInterface::set_proj_left_ankle(
unsigned int index,
const float new_proj_left_ankle)
1403 data_changed |=
change_field(data->proj_left_ankle, index, new_proj_left_ankle);
1411 HumanSkeletonProjectionInterface::proj_left_foot()
const
1413 return data->proj_left_foot;
1424 HumanSkeletonProjectionInterface::proj_left_foot(
unsigned int index)
const
1427 throw Exception(
"Index value %u out of bounds (0..1)", index);
1429 return data->proj_left_foot[index];
1437 HumanSkeletonProjectionInterface::maxlenof_proj_left_foot()
const
1448 HumanSkeletonProjectionInterface::set_proj_left_foot(
const float * new_proj_left_foot)
1450 data_changed |=
change_field(data->proj_left_foot, new_proj_left_foot);
1460 HumanSkeletonProjectionInterface::set_proj_left_foot(
unsigned int index,
const float new_proj_left_foot)
1462 data_changed |=
change_field(data->proj_left_foot, index, new_proj_left_foot);
1470 HumanSkeletonProjectionInterface::proj_right_hip()
const
1472 return data->proj_right_hip;
1483 HumanSkeletonProjectionInterface::proj_right_hip(
unsigned int index)
const
1486 throw Exception(
"Index value %u out of bounds (0..1)", index);
1488 return data->proj_right_hip[index];
1496 HumanSkeletonProjectionInterface::maxlenof_proj_right_hip()
const
1507 HumanSkeletonProjectionInterface::set_proj_right_hip(
const float * new_proj_right_hip)
1509 data_changed |=
change_field(data->proj_right_hip, new_proj_right_hip);
1519 HumanSkeletonProjectionInterface::set_proj_right_hip(
unsigned int index,
const float new_proj_right_hip)
1521 data_changed |=
change_field(data->proj_right_hip, index, new_proj_right_hip);
1529 HumanSkeletonProjectionInterface::proj_right_knee()
const
1531 return data->proj_right_knee;
1542 HumanSkeletonProjectionInterface::proj_right_knee(
unsigned int index)
const
1545 throw Exception(
"Index value %u out of bounds (0..1)", index);
1547 return data->proj_right_knee[index];
1555 HumanSkeletonProjectionInterface::maxlenof_proj_right_knee()
const
1566 HumanSkeletonProjectionInterface::set_proj_right_knee(
const float * new_proj_right_knee)
1568 data_changed |=
change_field(data->proj_right_knee, new_proj_right_knee);
1578 HumanSkeletonProjectionInterface::set_proj_right_knee(
unsigned int index,
const float new_proj_right_knee)
1580 data_changed |=
change_field(data->proj_right_knee, index, new_proj_right_knee);
1588 HumanSkeletonProjectionInterface::proj_right_ankle()
const
1590 return data->proj_right_ankle;
1601 HumanSkeletonProjectionInterface::proj_right_ankle(
unsigned int index)
const
1604 throw Exception(
"Index value %u out of bounds (0..1)", index);
1606 return data->proj_right_ankle[index];
1614 HumanSkeletonProjectionInterface::maxlenof_proj_right_ankle()
const
1625 HumanSkeletonProjectionInterface::set_proj_right_ankle(
const float * new_proj_right_ankle)
1627 data_changed |=
change_field(data->proj_right_ankle, new_proj_right_ankle);
1637 HumanSkeletonProjectionInterface::set_proj_right_ankle(
unsigned int index,
const float new_proj_right_ankle)
1639 data_changed |=
change_field(data->proj_right_ankle, index, new_proj_right_ankle);
1647 HumanSkeletonProjectionInterface::proj_right_foot()
const
1649 return data->proj_right_foot;
1660 HumanSkeletonProjectionInterface::proj_right_foot(
unsigned int index)
const
1663 throw Exception(
"Index value %u out of bounds (0..1)", index);
1665 return data->proj_right_foot[index];
1673 HumanSkeletonProjectionInterface::maxlenof_proj_right_foot()
const
1684 HumanSkeletonProjectionInterface::set_proj_right_foot(
const float * new_proj_right_foot)
1686 data_changed |=
change_field(data->proj_right_foot, new_proj_right_foot);
1696 HumanSkeletonProjectionInterface::set_proj_right_foot(
unsigned int index,
const float new_proj_right_foot)
1698 data_changed |=
change_field(data->proj_right_foot, index, new_proj_right_foot);
1702 HumanSkeletonProjectionInterface::create_message(
const char *type)
const
1705 "message type for this interface type.", type);
1713 HumanSkeletonProjectionInterface::copy_values(
const Interface *other)
1718 type(), other->
type());
1720 memcpy(data, oi->data,
sizeof(HumanSkeletonProjectionInterface_data_t));
1724 HumanSkeletonProjectionInterface::enum_tostring(
const char *enumtype,
int val)
const
1735 HumanSkeletonProjectionInterface::message_valid(
const Message *message)
const
Base class for exceptions in Fawkes.
HumanSkeletonProjectionInterface Fawkes BlackBoard Interface.
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.
bool change_field(FieldT &field, const DataT &value)
Set a field and return whether it changed.