MRPT  1.9.9
CObservationSkeleton.h
Go to the documentation of this file.
1 /* +------------------------------------------------------------------------+
2  | Mobile Robot Programming Toolkit (MRPT) |
3  | http://www.mrpt.org/ |
4  | |
5  | Copyright (c) 2005-2018, Individual contributors, see AUTHORS file |
6  | See: http://www.mrpt.org/Authors - All rights reserved. |
7  | Released under BSD License. See details in http://www.mrpt.org/License |
8  +------------------------------------------------------------------------+ */
9 #ifndef CObservationSkeleton_H
10 #define CObservationSkeleton_H
11 
13 #include <mrpt/obs/CObservation.h>
14 #include <mrpt/poses/CPose3D.h>
15 #include <mrpt/poses/CPose2D.h>
16 
17 namespace mrpt::obs
18 {
19 /** This class stores a skeleton as tracked by OPENNI2 & NITE2 libraries from
20  * PrimeSense sensors
21  *
22  * \sa CObservation
23  * \note Class introduced in MRPT 1.3.1
24  * \ingroup mrpt_obs_grp
25  */
27 {
29 
30  public:
31  /** Constructor.
32  */
34  : sensorPose(),
35  head(),
36  neck(),
37  torso(),
38  left_shoulder(),
39  left_elbow(),
40  left_hand(),
41  left_hip(),
42  left_knee(),
43  left_foot(),
45  right_elbow(),
46  right_hand(),
47  right_hip(),
48  right_knee(),
49  right_foot()
50  {
51  }
52 
53  /** Destructor
54  */
55  virtual ~CObservationSkeleton() {}
56  /** The pose of the sensor on the robot. */
58 
59  /** A generic joint for the skeleton observation */
61  {
62  /** Default constructor */
63  TSkeletonJoint() : x(.0), y(.0), z(.0), conf(.0) {}
64  /** 3D position */
65  double x, y, z;
66 
67  /** Confidence value [0...1] */
68  double conf;
69  };
70 
71  /** The skeleton joints (15)*/
75 
76  void getSensorPose(mrpt::poses::CPose3D& out_sensorPose) const override
77  {
78  out_sensorPose = sensorPose;
79  }
80  void setSensorPose(const mrpt::poses::CPose3D& newSensorPose) override
81  {
82  sensorPose = newSensorPose;
83  }
84  void getDescriptionAsText(std::ostream& o) const override;
85 
86 }; // End of class def.
87 
88 }
89 #endif
90 
91 
void getSensorPose(mrpt::poses::CPose3D &out_sensorPose) const override
A general method to retrieve the sensor pose on the robot.
GLdouble GLdouble z
Definition: glext.h:3872
This class stores a skeleton as tracked by OPENNI2 & NITE2 libraries from PrimeSense sensors...
mrpt::poses::CPose3D sensorPose
The pose of the sensor on the robot.
void getDescriptionAsText(std::ostream &o) const override
Build a detailed, multi-line textual description of the observation contents and dump it to the outpu...
This namespace contains representation of robot actions and observations.
#define DEFINE_SERIALIZABLE(class_name)
This declaration must be inserted in all CSerializable classes definition, within the class declarati...
A class used to store a 3D pose (a 3D translation + a rotation in 3D).
Definition: CPose3D.h:86
Declares a class that represents any robot&#39;s observation.
Definition: CObservation.h:43
TSkeletonJoint head
The skeleton joints (15)
void setSensorPose(const mrpt::poses::CPose3D &newSensorPose) override
A general method to change the sensor pose on the robot.
GLenum GLint GLint y
Definition: glext.h:3538
A generic joint for the skeleton observation.
GLenum GLint x
Definition: glext.h:3538
virtual ~CObservationSkeleton()
Destructor.



Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: 7d5e6d718 Fri Aug 24 01:51:28 2018 +0200 at lun nov 2 08:35:50 CET 2020