Main MRPT website > C++ reference for 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-2017, 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
18 {
19 namespace obs
20 {
21 /** This class stores a skeleton as tracked by OPENNI2 & NITE2 libraries from
22  * PrimeSense sensors
23  *
24  * \sa CObservation
25  * \note Class introduced in MRPT 1.3.1
26  * \ingroup mrpt_obs_grp
27  */
29 {
31 
32  public:
33  /** Constructor.
34  */
36  : sensorPose(),
37  head(),
38  neck(),
39  torso(),
40  left_shoulder(),
41  left_elbow(),
42  left_hand(),
43  left_hip(),
44  left_knee(),
45  left_foot(),
47  right_elbow(),
48  right_hand(),
49  right_hip(),
50  right_knee(),
51  right_foot()
52  {
53  }
54 
55  /** Destructor
56  */
57  virtual ~CObservationSkeleton() {}
58  /** The pose of the sensor on the robot. */
60 
61  /** A generic joint for the skeleton observation */
63  {
64  /** Default constructor */
65  TSkeletonJoint() : x(.0), y(.0), z(.0), conf(.0) {}
66  /** 3D position */
67  double x, y, z;
68 
69  /** Confidence value [0...1] */
70  double conf;
71  };
72 
73  /** The skeleton joints (15)*/
77 
78  void getSensorPose(mrpt::poses::CPose3D& out_sensorPose) const override
79  {
80  out_sensorPose = sensorPose;
81  }
82  void setSensorPose(const mrpt::poses::CPose3D& newSensorPose) override
83  {
84  sensorPose = newSensorPose;
85  }
86  void getDescriptionAsText(std::ostream& o) const override;
87 
88 }; // End of class def.
89 
90 } // End of namespace
91 } // End of namespace
92 
93 #endif
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 is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
#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:88
Declares a class that represents any robot&#39;s observation.
Definition: CObservation.h:41
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: ae4571287 Thu Nov 23 00:06:53 2017 +0100 at dom oct 27 23:51:55 CET 2019