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

Public Member Functions | |
| SkelIfObserver (BlackBoard *bb, UserMap &users) | |
| Constructor. | |
| ~SkelIfObserver () | |
| Destructor. | |
| virtual void | bb_interface_created (const char *type, const char *id) throw () |
| BlackBoard interface created notification. | |
| void | process_queue () |
| Process internal queue. | |
Public Member Functions inherited from fawkes::BlackBoardInterfaceObserver | |
| BlackBoardInterfaceObserver () | |
| Empty constructor. | |
| virtual | ~BlackBoardInterfaceObserver () |
| Destructor. | |
| virtual void | bb_interface_destroyed (const char *type, const char *id) throw () |
| BlackBoard interface destroyed notification. | |
Additional Inherited Members | |
Protected Types inherited from fawkes::BlackBoardInterfaceObserver | |
| typedef LockMap< std::string, std::list< std::string > > | ObservedInterfaceLockMap |
| Type for lockable interface type hash sets. | |
| typedef ObservedInterfaceLockMap::iterator | ObservedInterfaceLockMapIterator |
| Type for iterator of lockable interface type hash sets. | |
Protected Member Functions inherited from fawkes::BlackBoardInterfaceObserver | |
| void | bbio_add_observed_create (const char *type_pattern, const char *id_pattern="*") throw () |
| Add interface creation type to watch list. | |
| void | bbio_add_observed_destroy (const char *type_pattern, const char *id_pattern="*") throw () |
| Add interface destruction type to watch list. | |
| ObservedInterfaceLockMap * | bbio_get_observed_create () throw () |
| Get interface creation type watch list. | |
| ObservedInterfaceLockMap * | bbio_get_observed_destroy () throw () |
| Get interface destriction type watch list. | |
Skeleton interface observer.
This class opens all OpenNI skeleton interfaces and registers as an observer to open any newly opened interface.
Definition at line 42 of file skel_if_observer.h.
| fawkes::openni::SkelIfObserver::SkelIfObserver | ( | BlackBoard * | bb, |
| UserMap & | users | ||
| ) |
Constructor.
| bb | blackboard to interact with |
| users | user map for exchange with others |
Definition at line 49 of file skel_if_observer.cpp.
References fawkes::BlackBoardInterfaceObserver::bbio_add_observed_create(), fawkes::BlackBoard::open_for_reading(), fawkes::BlackBoard::open_multiple_for_reading(), fawkes::BlackBoard::register_observer(), and fawkes::openni::UserInfo::skel_if.
| fawkes::openni::SkelIfObserver::~SkelIfObserver | ( | ) |
Destructor.
Definition at line 78 of file skel_if_observer.cpp.
References fawkes::BlackBoard::unregister_observer().
|
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 85 of file skel_if_observer.cpp.
| void fawkes::openni::SkelIfObserver::process_queue | ( | ) |
Process internal queue.
This should be called regularly to process incoming events.
Definition at line 98 of file skel_if_observer.cpp.
References fawkes::BlackBoard::close(), fawkes::Mutex::lock(), fawkes::BlackBoard::open_for_reading(), fawkes::Exception::print_trace(), fawkes::openni::UserInfo::proj_if, fawkes::openni::UserInfo::skel_if, and fawkes::Mutex::unlock().