32 const std::map<std::string, std::pair<unsigned int, std::string>>
MPII_TO_MPI{
33 {
"head", {0,
"Head"}},
34 {
"neck", {1,
"Neck"}},
35 {
"right_shoulder", {2,
"RShoulder"}},
36 {
"right_elbow", {3,
"RElbow"}},
37 {
"right_hand", {4,
"RWrist"}},
38 {
"left_shoulder", {5,
"LShoulder"}},
39 {
"left_elbow", {6,
"LElbow"}},
40 {
"left_hand", {7,
"LWrist"}},
41 {
"right_waist", {8,
"RHip"}},
42 {
"right_knee", {9,
"RKnee"}},
43 {
"right_foot", {10,
"RAnkle"}},
44 {
"left_waist", {11,
"LHip"}},
45 {
"left_knee", {12,
"LKnee"}},
46 {
"left_foot", {13,
"LAnkle"}},
59 return this->x - p.
x < std::numeric_limits<float>::epsilon() &&
60 this->y - p.
y < std::numeric_limits<float>::epsilon();
87 return static_cast<int>((p1.
x - p0.
x) * (p2.
y - p0.
y) - (p2.
x - p0.
x) * (p1.
y - p0.
y));
99 for (
unsigned int i = 0; i <
points.size() - 1; i++)
#define ARMARX_CHECK_EXPRESSION(expression)
This macro evaluates the expression and if it turns out to be false it will throw an ExpressionExcept...
This file offers overloads of toIce() and fromIce() functions for STL container types.
IceInternal::Handle< FramedPosition > FramedPositionPtr
const std::map< std::string, std::pair< unsigned int, std::string > > MPII_TO_MPI
bool operator==(const Point &p) const
Polygon2D(PointList points)
std::vector< Point > points
bool isInside(FramedPositionPtr point) const
int isLeft(Point p0, Point p1, Point p2) const
std::vector< Point > PointList