void run()
constantly calls update on OpenNI context and updates image buffers. While grabbers are registered.
Grabber implementation for OpenNI based camera access.
Definition: OpenNIGrabber.h:76
This is used for concurrent writing and reading of Buffers.
Definition: OpenNIUtils.h:175
void grabNextImage()
makes the MapGenerator grab a new image. called repeatedly in thread.
abstract super-class of all Image generators
Definition: OpenNIUtils.h:408
undocument this line if you encounter any issues!
Definition: Any.h:37
Simple object oriented thread class wrapping the pthread library.
Definition: Thread.h:90
OpenNIGrabber(std::string args)
The constructor.
std::string getName()
Returns the string representation of the currently used device.
void setGeneratorTo(icl_openni::OpenNIMapGenerator::Generators desired)
Generators
an enum listing all supported data generators
Definition: OpenNIUtils.h:412
icl_openni::ReadWriteBuffer< core::ImgBase > * m_Buffer
internally used ReadWriteBuffer
Definition: OpenNIGrabber.h:123
icl_openni::OpenNIMapGenerator * m_Generator
pointer to the currently used image generator
Definition: OpenNIGrabber.h:121
virtual void * getHandle()
Internally spawned thread class for continuous grabbing. Only one instance needed.
Definition: OpenNIGrabber.h:46
Common interface class for all grabbers.
Definition: Grabber.h:153
~OpenNIGrabberThread()
Destructor stops thread and releases all resources.
Property & prop(const std::string &propertyName)
this CAN be used e.g. to store a property value in internal property-list
~OpenNIGrabber()
Destructor.
std::string m_Id
a grabber id
Definition: OpenNIGrabber.h:119
void processPropertyChange(const utils::Configurable::Property &prop)
callback for changed configurable properties
virtual const core::ImgBase * acquireImage()
grab function grabs an image (destination image is adapted on demand)
OpenNIGrabberThread()
Constructor set up GrabberThread.
void addGrabber(OpenNIGrabber *grabber)
adds a grabber to be updated every frame.
void removeGrabber(OpenNIGrabber *grabber)
removes a grabber so it no longer will be updated.
Represents a single property.
Definition: Configurable.h:200
utils::Mutex m_Mutex
Mutex used for concurrency issues.
Definition: OpenNIGrabber.h:117
std::set< OpenNIGrabber * > m_Grabber
internally used set of grabber pointers
Definition: OpenNIGrabber.h:72
Mutex class of the ICL.
Definition: Mutex.h:54
ImgBase is the Image-Interface class that provides save access to underlying Img-template .
Definition: ImgBase.h:131
bool m_OmitDoubleFrames
whether double frames should be omited
Definition: OpenNIGrabber.h:125