status = _g_context.CreateProductionTree (const_cast<xn::NodeInfo&>(depth_info[0]));
status = _g_context.CreateProductionTree (const_cast<xn::NodeInfo&>(image_info[0]));
status = _g_context.CreateProductionTree (const_cast<xn::NodeInfo&>(depth_info[1]));
status = _g_context.CreateProductionTree (const_cast<xn::NodeInfo&>(image_info[1]));
- Then I get production nodes instances:
status = depth_info[0].GetInstance (_g_depth);
status = image_info[0].GetInstance (_g_image);
status = depth_info[1].GetInstance (_g_depth2);
status = image_info[1].GetInstance (_g_image2);
- Afterwards I do:
_g_depth.GetMetaData(_g_depthMD);
_g_image.GetMetaData(_g_imageMD);
_g_depth2.GetMetaData(_g_depthMD2);
_g_image2.GetMetaData(_g_imageMD2);
_g_context.StartGeneratingAll();
an example application for running multiple kinects (under linux) can be
found in
"https://github.com/ros-pkg-git/ni/tree/rewrite/openni_camera"
It is a ROS package, but the example application works ROS independent.
Cheers,
Suat Gedikli
--
You received this message because you are subscribed to the Google Groups "OpenNI" group.
To post to this group, send email to openn...@googlegroups.com.
To unsubscribe from this group, send email to openni-dev+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/openni-dev?hl=en.