23 #ifndef __PLUGINS_OPENNI_DEPTH_THREAD_H_
24 #define __PLUGINS_OPENNI_DEPTH_THREAD_H_
26 #include <core/threading/thread.h>
27 #include <core/utils/lockptr.h>
28 #include <aspect/logging.h>
29 #include <aspect/configurable.h>
30 #include <aspect/clock.h>
31 #include <aspect/blocked_timing.h>
32 #include <plugins/openni/aspect/openni.h>
34 #include <XnCppWrapper.h>
36 namespace firevision {
37 class SharedMemoryImageBuffer;
57 protected:
virtual void run() { Thread::run(); }
60 xn::DepthGenerator *__depth_gen;
61 xn::DepthMetaData *__depth_md;
65 size_t __depth_bufsize;
66 unsigned int __depth_width;
67 unsigned int __depth_height;
Thread aspect that allows to obtain the current time from the clock.
Thread aspect to get access to the OpenNI context.
A class for handling time.
virtual void loop()
Code to execute in the thread.
Thread class encapsulation of pthreads.
virtual void finalize()
Finalize the thread.
Thread aspect to use blocked timing.
OpenNI Depth Provider Thread.
Shared memory image buffer.
OpenNiDepthThread()
Constructor.
virtual ~OpenNiDepthThread()
Destructor.
Thread aspect to log output.
Thread aspect to access configuration data.
virtual void init()
Initialize the thread.
virtual void run()
Stub to see name in backtrace for easier debugging.