|
Fawkes API
Fawkes Development Version
|
Hand interface observer. More...
#include <>>

Public Member Functions | |
| HandIfObserver (BlackBoard *bb, HandMap &hands) | |
| Constructor. | |
| ~HandIfObserver () | |
| Destructor. | |
| virtual void | bb_interface_created (const char *type, const char *id) throw () |
| BlackBoard interface created notification. | |
| void | process_queue () |
| Process internal queue. | |
Hand interface observer.
This class opens all OpenNI hand interfaces and registers as an observer to open any newly opened interface.
| fawkes::openni::HandIfObserver::HandIfObserver | ( | BlackBoard * | bb, |
| HandMap & | hands | ||
| ) |
Constructor.
| bb | blackboard to interact with |
| hands | hand map for exchange with others |
Definition at line 46 of file hand_if_observer.cpp.
References fawkes::BlackBoard::open_multiple_for_reading(), fawkes::openni::HandInfo::hand_if, fawkes::Interface::id(), fawkes::BlackBoardInterfaceObserver::bbio_add_observed_create(), and fawkes::BlackBoard::register_observer().
| fawkes::openni::HandIfObserver::~HandIfObserver | ( | ) |
Destructor.
Definition at line 68 of file hand_if_observer.cpp.
References fawkes::BlackBoard::unregister_observer().
| void fawkes::openni::HandIfObserver::bb_interface_created | ( | const char * | type, |
| const char * | id | ||
| ) | throw () [virtual] |
BlackBoard interface created notification.
This is called whenever an interface is created for a type that you registered for.
| type | type of the interface. If you want to store this make a copy as it is not guaranteed that the supplied string exists for longer than the duration of the method call |
| id | ID of the newly created interface. If you want to store this make a copy as it is not guaranteed that the supplied string exists for longer than the duration of the method call |
Reimplemented from fawkes::BlackBoardInterfaceObserver.
Definition at line 75 of file hand_if_observer.cpp.
| void fawkes::openni::HandIfObserver::process_queue | ( | ) |
Process internal queue.
This should be called regularly to process incoming events.
Definition at line 88 of file hand_if_observer.cpp.
References fawkes::Mutex::lock(), fawkes::Mutex::unlock(), fawkes::openni::HandInfo::hand_if, fawkes::BlackBoard::open_for_reading(), and fawkes::Exception::print_trace().