Fawkes API  Fawkes Development Version
bb2info.cpp
1 
2 /***************************************************************************
3  * bb2info.cpp - Print BB2 to stdout
4  *
5  * Created: Fri Nov 02 19:03:00 2007
6  * Copyright 2007 Tim Niemueller [www.niemueller.de]
7  *
8  ****************************************************************************/
9 
10 /* This program is free software; you can redistribute it and/or modify
11  * it under the terms of the GNU General Public License as published by
12  * the Free Software Foundation; either version 2 of the License, or
13  * (at your option) any later version.
14  *
15  * This program is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18  * GNU Library General Public License for more details.
19  *
20  * Read the full text in the LICENSE.GPL file in the doc directory.
21  */
22 
23 #include <fvcams/bumblebee2.h>
24 #include <fvutils/system/camargp.h>
25 #include <fvstereo/triclops.h>
26 
27 using namespace std;
28 using namespace firevision;
29 
30 int
31 main(int argc, char **argv)
32 {
33 
34  CameraArgumentParser *cap = new CameraArgumentParser("bumblebee2:Bumblebee2 BB2-03S2C");
35 
36  Bumblebee2Camera *bb2 = new Bumblebee2Camera(cap);
37  bb2->open();
38  bb2->print_info();
39  bb2->close();
40 
41  delete bb2;
42  delete cap;
43 
44  return 0;
45 }
46 
virtual void open()
Open the camera.
Definition: bumblebee2.cpp:243
STL namespace.
Camera argument parser.
Definition: camargp.h:38
Bumblebee2 camera.
Definition: bumblebee2.h:37
virtual void print_info()
Print out camera information.
Definition: bumblebee2.cpp:230
virtual void close()
Close camera.
Definition: bumblebee2.cpp:290