use two kinects to track user skeleton

62 views
Skip to first unread message

JustinK

unread,
May 30, 2011, 10:34:33 PM5/30/11
to openn...@googlegroups.com
 i want to use two kinects two get robust skeleton joints ,now i have the questions below:

if two kinects can used on one computer ,what requirements shall i meet?

if i have to use two computer ,is there any synchronization mechanism openni can provide?
or i just need to write the synchronization code by myself?

thanks for any reply.

david

unread,
Jun 1, 2011, 7:42:00 PM6/1/11
to openn...@googlegroups.com
Hi,

In order to get the skeleton from two kinects in the same computer you need to enumerate the production nodes of the user generator

context.EnumerateProductionTrees (XN_NODE_TYPE_USER, NULL, list, NULL);

You will see (or at least this what is happening to me) that you will get 4 nodes.

To get the skeleton from the two kinects:

xn::NodeInfoList::Iterator nodeItUser  = user_generator_nodes.Begin();
xn::NodeInfo info1 = *nodeItUser;
_context->CreateProductionTree(info1);

//for the second kinect

nodeItUser++,nodeItUser++,nodeItUser++;
xn::NodeInfo info2 = *nodeItUser;
_context->CreateProductionTree(info2);

Hope this helps,
Reply all
Reply to author
Forward
0 new messages