Go to the documentation of this file.
33 cout <<
" FlyCapture2 version: "
43 cam_options.
videomode =
"VIDEOMODE_1280x960RGB";
46 capture.
open(cam_options);
49 cout <<
"Press any key to stop capture to 'capture.rawlog'..." << endl;
58 mrpt::make_aligned_shared<CObservationImage>();
64 if ((cnt++ % 20) == 0)
68 double t = tictac.
Tac();
70 printf(
"\n %f FPS\n", FPS);
77 cerr <<
"Error retrieving images!" << endl;
83 if (
win.isOpen())
win.showImage(obs->image);
89 int main(
int argc,
char** argv)
96 catch (std::exception& e)
98 std::cout <<
"MRPT exception caught: " << e.what() << std::endl;
103 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::string videomode
(Default="", which means default) A string with a video mode, from the list available in FlyCapture2:...
bool getObservation(mrpt::obs::CObservationImage &out_observation)
Grab mono image from the camera.
void open(const TCaptureOptions_FlyCapture2 &options, const bool startCapture=true)
Tries to open the camera with the given options, and starts capture.
Options used when creating a camera capture object of type CImageGrabber_FlyCapture2.
Contains classes for various device interfaces.
This namespace contains representation of robot actions and observations.
double Tac() noexcept
Stops the stopwatch.
void TestCapture_FlyCapture2()
mrpt::gui::CDisplayWindow3D::Ptr win
Saves data to a file and transparently compress the data using the given compression level.
std::shared_ptr< CObservationImage > Ptr
std::string framerate
(Default="", which means default) A string with a framerate, from the list available in FlyCapture2::...
void Tic() noexcept
Starts the stopwatch.
This class creates a window as a graphical user interface (GUI) for displaying images to the user.
Classes for creating GUI windows for 2D and 3D visualization.
A wrapper for Point Gray Research (PGR) FlyCapture2 API for capturing images from Firewire,...
CArchiveStreamBase< STREAM > archiveFrom(STREAM &s)
Helper function to create a templatized wrapper CArchive object for a: MRPT's CStream,...
static std::string getFC2version()
Returns the PGR FlyCapture2 library version.
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 | |