Main MRPT website > C++ reference for MRPT 1.9.9
test.cpp
Go to the documentation of this file.
1 /* +------------------------------------------------------------------------+
2  | Mobile Robot Programming Toolkit (MRPT) |
3  | http://www.mrpt.org/ |
4  | |
5  | Copyright (c) 2005-2018, Individual contributors, see AUTHORS file |
6  | See: http://www.mrpt.org/Authors - All rights reserved. |
7  | Released under BSD License. See details in http://www.mrpt.org/License |
8  +------------------------------------------------------------------------+ */
9 
11 #include <iostream>
12 
13 using namespace mrpt::hwdrivers;
14 using namespace mrpt::obs;
15 using namespace std;
16 
17 //#define DO_CAPTURE 1
18 #define DO_CAPTURE 0
19 
20 // ------------------------------------------------------
21 // TestEnumerate_1394
22 // ------------------------------------------------------
23 void TestEnumerate_1394()
24 {
26 
27  cout << "Enumerating cameras..." << endl;
28 
30 
31  cout << "Found " << lstCams.size() << " cameras." << endl;
32 
34  lstCams.begin();
35  it != lstCams.end(); it++)
36  {
37  cout << "======= CAMERA =========" << endl;
38  cout << " GUID : " << it->guid << endl;
39  cout << " Unit : " << it->unit << endl;
40  cout << " Vendor: " << it->vendor << endl;
41  cout << " Model : " << it->model << endl;
42  cout << endl;
43  }
44 }
45 
46 int main(int argc, char** argv)
47 {
48  try
49  {
51 
52  return 0;
53  }
54  catch (std::exception& e)
55  {
56  std::cout << "MRPT exception caught: " << e.what() << std::endl;
57  return -1;
58  }
59  catch (...)
60  {
61  printf("Another exception!!");
62  return -1;
63  }
64 }
mrpt::hwdrivers::CImageGrabber_dc1394::enumerateCameras
static void enumerateCameras(TCameraInfoList &out_list)
Generates a list with the information on all the existing (Firewire) cameras in the system.
Definition: CImageGrabber_dc1394.cpp:778
const_iterator
const Scalar * const_iterator
Definition: eigen_plugins.h:27
TestEnumerate_1394
void TestEnumerate_1394()
Definition: vision_stereo_rectify/test.cpp:23
mrpt::hwdrivers
Contains classes for various device interfaces.
Definition: C2DRangeFinderAbstract.h:22
mrpt::obs
This namespace contains representation of robot actions and observations.
Definition: CParticleFilter.h:17
main
int main()
Definition: vision_stereo_rectify/test.cpp:78
CImageGrabber_dc1394.h
mrpt::hwdrivers::CImageGrabber_dc1394::TCameraInfoList
std::list< TCameraInfo > TCameraInfoList
Definition: CImageGrabber_dc1394.h:249



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