Fawkes API  Fawkes Development Version
fawkes::OpenNiAspect Class Reference

Thread aspect to get access to the OpenNI context. More...

#include <>>

Inheritance diagram for fawkes::OpenNiAspect:

Public Member Functions

 OpenNiAspect ()
 Constructor. More...
 
virtual ~OpenNiAspect ()
 Virtual empty destructor. More...
 
- Public Member Functions inherited from fawkes::Aspect
const std::list< const char * > & get_aspects () const
 Get list of aspect names attached to a aspected thread. More...
 

Protected Attributes

LockPtr< xn::Context > openni
 Central OpenNI context. More...
 

Friends

class OpenNiAspectIniFin
 

Additional Inherited Members

- Protected Member Functions inherited from fawkes::Aspect
void add_aspect (const char *name)
 Add an aspect to a thread. More...
 

Detailed Description

Thread aspect to get access to the OpenNI context.

Give this aspect to your thread to interact with the central OpenNI context. Use this as a last resort, first check if the desired information is available via the blackboard (e.g. user skeleton data) or via FireVision (camera images).

Author
Tim Niemueller

Definition at line 39 of file openni.h.

Constructor & Destructor Documentation

◆ OpenNiAspect()

fawkes::OpenNiAspect::OpenNiAspect ( )

Constructor.

Definition at line 49 of file openni.cpp.

References fawkes::Aspect::add_aspect().

◆ ~OpenNiAspect()

fawkes::OpenNiAspect::~OpenNiAspect ( )
virtual

Virtual empty destructor.

Definition at line 56 of file openni.cpp.

References openni.

Member Data Documentation

◆ openni

fawkes:LockPtr< xn::Context > fawkes::OpenNiAspect::openni
protected

Central OpenNI context.

Make sure you use proper locking in your application when using the class, or chaos and havoc will come upon you.

Definition at line 48 of file openni.h.

Referenced by OpenNiHandTrackerThread::init(), OpenNiDepthThread::init(), OpenNiImageThread::init(), OpenNiUserTrackerThread::init(), OpenNiPointCloudThread::init(), OpenNiDepthThread::loop(), OpenNiImageThread::loop(), OpenNiPointCloudThread::loop(), and ~OpenNiAspect().


The documentation for this class was generated from the following files: