2 #include <openrave/openrave.h>
3 #include <osg/Geometry>
4 #include <osgViewer/Viewer>
17 osg::ref_ptr<osg::Image> m_depthbufferimg;
18 osg::ref_ptr<osg::Image> m_colorbufferimg;
19 Eigen::MatrixXf m_depthimg;
22 void operator () ( osg::RenderInfo& info )
const;
28 void SetPose(
const OpenRAVE::Transform& pose);
29 void SetIntrinsics(
float f);
31 float* GetDepthImage();
32 unsigned char* GetColorImage();
34 osg::ref_ptr<osg::Camera> m_cam;
35 osgViewer::Viewer m_viewer;
36 osg::ref_ptr<KinectCallback> m_cb;
37 OpenRAVE::Transform m_tf;