46 #include <visp3/sensor/vpOpenCVGrabber.h> 47 #include <visp3/sensor/vpV4l2Grabber.h> 48 #include <visp3/sensor/vp1394TwoGrabber.h> 49 #include <visp3/core/vpHomogeneousMatrix.h> 50 #include <visp3/core/vpImage.h> 51 #include <visp3/core/vpCameraParameters.h> 52 #include <visp3/ar/vpAROgre.h> 57 #if defined(VISP_HAVE_OGRE) 58 #if defined(VISP_HAVE_V4L2) || defined(VISP_HAVE_DC1394) || (VISP_HAVE_OPENCV_VERSION >= 0x020100) 66 #if defined(VISP_HAVE_V4L2) 71 #elif defined(VISP_HAVE_DC1394) 76 #elif defined(VISP_HAVE_OPENCV) 78 cv::VideoCapture grabber(0);
79 if(!grabber.isOpened()) {
80 std::cout <<
"Failed to open the camera" << std::endl;
121 ogre.load(
"Robot",
"robot.mesh");
123 ogre.setScale(
"Robot", 0.001f,0.001f,0.001f);
128 std::cout <<
"cMo:\n" << cMo << std::endl;
131 while(ogre.continueRendering()){
133 #if defined(VISP_HAVE_V4L2) || defined(VISP_HAVE_DC1394) 135 #elif defined(VISP_HAVE_OPENCV) 146 std::cout <<
"You need an available framegrabber to run this example" << std::endl;
149 std::cout <<
"You need Ogre3D to run this example" << std::endl;
154 std::cout <<
"Catch an exception: " << e << std::endl;
158 std::cout <<
"Catch an exception " << std::endl;
void acquire(vpImage< unsigned char > &I)
void open(vpImage< unsigned char > &I)
unsigned int getWidth() const
static void convert(const vpImage< unsigned char > &src, vpImage< vpRGBa > &dest)
Implementation of an homogeneous matrix and operations on such kind of matrices.
error that can be emited by ViSP classes.
Implementation of an augmented reality viewer.
void acquire(vpImage< unsigned char > &I)
Implementation of a rotation matrix and operations on such kind of matrices.
void open(vpImage< unsigned char > &I)
virtual void init(vpImage< unsigned char > &I, bool bufferedKeys=false, bool hidden=false)
Generic class defining intrinsic camera parameters.
Class for the Video4Linux2 video device.
unsigned int getHeight() const
Implementation of a rotation vector as Euler angle minimal representation.
Class for firewire ieee1394 video devices using libdc1394-2.x api.
Class that consider the case of a translation vector.