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
26using namespace std;
27using namespace firevision;
28
29int
30main(int argc, char **argv)
31{
32 CameraArgumentParser *cap = new CameraArgumentParser("bumblebee2:Bumblebee2 BB2-03S2C");
33
34 Bumblebee2Camera *bb2 = new Bumblebee2Camera(cap);
35 bb2->open();
36 bb2->print_info();
37 bb2->close();
38
39 delete bb2;
40 delete cap;
41
42 return 0;
43}
Bumblebee2 camera.
Definition: bumblebee2.h:35
virtual void close()
Close camera.
Definition: bumblebee2.cpp:393
virtual void open()
Open the camera.
Definition: bumblebee2.cpp:345
virtual void print_info()
Print out camera information.
Definition: bumblebee2.cpp:300
Camera argument parser.
Definition: camargp.h:36