10 #ifndef CSkeletonTracker_H
11 #define CSkeletonTracker_H
#define DEFINE_GENERIC_SENSOR(class_name)
This declaration must be inserted in all CGenericSensor classes definition, within the class declarat...
This class allows loading and storing values and vectors of different types from a configuration text...
std::shared_ptr< CDisplayWindow3D > Ptr
A generic interface for a wide-variety of sensors designed to be used in the application RawLogGrabbe...
A class for grabbing mrpt::obs::CObservationSkeleton from a PrimeSense camera.
void processPreviewNone()
unsigned int m_toutCounter
Timeout counter (for internal use only)
mrpt::poses::CPose3D m_sensorPose
Sensor pose.
std::vector< double > m_joint_theta
Joint angles when no skeleton has been detected.
virtual ~CSkeletonTracker()
Destructor.
void * m_skeletons_ptr
Opaque pointers to specific NITE data.
void doProcess()
This method will be invoked at a minimum rate of "process_rate" (Hz)
mrpt::gui::CDisplayWindow3D::Ptr m_win
int m_nUsers
Number of detected users.
void initialize()
Connects to the PrimeSense camera and prepares it to get skeleton data.
mrpt::system::TTimeStamp m_timeStartTT
void processPreview(const mrpt::obs::CObservationSkeleton::Ptr &obs)
Displays real-time info for the captured skeleton.
void loadConfig_sensorSpecific(const mrpt::config::CConfigFileBase &configSource, const std::string &iniSection)
See the class documentation at the top for expected parameters.
uint32_t m_timeStartUI
Timestamp management.
bool m_showPreview
Preview window management.
std::vector< std::pair< JOINT, JOINT > > m_linesToPlot
Lines between joints.
CSkeletonTracker()
Constructor.
void setPreview(const bool setPreview=true)
Set/unset preview.
std::shared_ptr< CObservationSkeleton > Ptr
A class used to store a 3D pose (a 3D translation + a rotation in 3D).
GLsizei const GLchar ** string
mrpt::Clock::time_point TTimeStamp
A system independent time type, it holds the the number of 100-nanosecond intervals since January 1,...
Contains classes for various device interfaces.
unsigned __int32 uint32_t