Go to the documentation of this file.
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 mrpt::make_aligned_shared<CObservationImage>();
84 if (!capture.getObservation(*obs))
86 cerr <<
"Error retrieving images!" << endl;
95 if (
win.isOpen())
win.showImage(obs->image);
99 int main(
int argc,
char** argv)
107 catch (std::exception& e)
109 std::cout <<
"MRPT exception caught: " << e.what() << std::endl;
114 printf(
"Another exception!!");
bool kbhit() noexcept
An OS-independent version of kbhit, which returns true if a key has been pushed.
unsigned __int16 uint16_t
A high-performance stopwatch, with typical resolution of nanoseconds.
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
std::shared_ptr< CObservationImage > Ptr
unsigned __int64 uint64_t
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
This namespace provides a OS-independent interface to many useful functions: filenames manipulation,...
Page generated by Doxygen 1.8.17 for MRPT 1.9.9 Git: ad3a9d8ae Tue May 1 23:10:22 2018 -0700 at miƩ 12 jul 2023 10:03:34 CEST | |