Go to the documentation of this file.
32 uint64_t cameraGUID = 0;
33 uint16_t cameraUnit = 0;
48 cameraGUID, cameraUnit, options,
true );
52 cout <<
"Press any key to stop capture to 'capture.rawlog'..." << endl;
64 if ((cnt++ % 10) == 0)
68 double t = tictac.
Tac();
70 printf(
"\n %f FPS\n", FPS);
80 CObservationImage::Create();
84 if (!capture.getObservation(*obs))
86 cerr <<
"Error retrieving images!" << endl;
95 if (
win.isOpen())
win.showImage(obs->image);
107 catch (
const std::exception& e)
114 printf(
"Another exception!!");
bool kbhit() noexcept
An OS-independent version of kbhit, which returns true if a key has been pushed.
A high-performance stopwatch, with typical resolution of nanoseconds.
std::shared_ptr< mrpt::obs ::CObservationImage > Ptr
Contains classes for various device interfaces.
A class for grabing images from a IEEE1394 (Firewire) camera using the libdc1394-2 library.
This namespace contains representation of robot actions and observations.
mrpt::io::CFileGZOutputStream CFileGZOutputStream
int frame_width
Capture resolution (Default: 640x480)
double Tac() noexcept
Stops the stopwatch.
mrpt::gui::CDisplayWindow3D::Ptr win
void Tic() noexcept
Starts the stopwatch.
This class creates a window as a graphical user interface (GUI) for displaying images to the user.
Options used when creating an dc1394 capture object All but the frame size, framerate,...
Classes for creating GUI windows for 2D and 3D visualization.
grabber_dc1394_color_coding_t color_coding
std::string exception_to_str(const std::exception &e)
Builds a nice textual representation of a nested exception, which if generated using MRPT macros (THR...
Page generated by Doxygen 1.8.17 for MRPT 2.0.3 at Fri May 29 13:06:46 UTC 2020 | |