19 CStereoGrabber_Bumblebee_libdc1394::CStereoGrabber_Bumblebee_libdc1394(
uint64_t cameraGUID,
uint16_t cameraUnit,
double frameRate) :
20 m_firewire_capture(NULL),
27 opt1394.deinterlace_stereo =
true;
29 std::map<double,grabber_dc1394_framerate_t> Rs;
39 if (Rs.find(frameRate)!=Rs.end())
40 opt1394.framerate = Rs[frameRate];
41 else cerr <<
"[CStereoGrabber_Bumblebee_libdc1394] Ignoring unknown framerate: " << frameRate <<
"\n";
46 cerr <<
"[CStereoGrabber_Bumblebee] The camera couldn't be open" << endl;
70 cerr <<
"[CStereoGrabber_Bumblebee] The camera couldn't be open" << endl;
A class for grabing images from a IEEE1394 (Firewire) camera using the libdc1394-2 library.
bool getObservation(mrpt::obs::CObservationImage &out_observation)
Grab an image from the opened camera (for monocular cameras).
bool isOpen() const
Check whether the camera has been open successfully.
virtual ~CStereoGrabber_Bumblebee_libdc1394(void)
Destructor.
bool getStereoObservation(mrpt::obs::CObservationStereoImages &out_observation)
Grab stereo images, and return the pair of rectified images.
mrpt::hwdrivers::CImageGrabber_dc1394 * m_firewire_capture
The actual capture object used in Linux / Mac.
Observation class for either a pair of left+right or left+disparity images from a stereo camera.
Contains classes for various device interfaces.
This namespace contains representation of robot actions and observations.
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
unsigned __int16 uint16_t
unsigned __int64 uint64_t
Options used when creating an dc1394 capture object All but the frame size, framerate,...
int mode7
-1: Normal mode, i>=0: use MODE7_i, then frame_width/height and color_coding are ignored.