23 #include <blackboard/blackboard.h>
24 #include <interfaces/HumanSkeletonInterface.h>
25 #include <interfaces/HumanSkeletonProjectionInterface.h>
26 #include <plugins/openni/utils/skel_if_observer.h>
46 queue_lock_ =
new Mutex();
49 std::list<HumanSkeletonInterface *> skels =
52 std::list<HumanSkeletonProjectionInterface *> projs;
54 std::list<HumanSkeletonInterface *>::iterator i;
55 for (i = skels.begin(); i != skels.end(); ++i) {
56 printf(
"Opened %s\n", (*i)->uid());
62 users_[user.skel_if->id()] = user;
79 if (users_.find(
id) == users_.end()) {
81 queues_[active_queue_].push(
id);
82 queue_lock_->unlock();
93 unsigned int proc_queue = active_queue_;
94 active_queue_ = 1 - active_queue_;
96 while (!queues_[proc_queue].empty()) {
97 std::string
id = queues_[proc_queue].front();
101 printf(
"Opening %s\n",
id.c_str());
116 queues_[proc_queue].pop();