Fawkes API  Fawkes Development Version
listsrcams.cpp
00001 
00002 /***************************************************************************
00003  *  listsrcams.cpp - List available SwissRanger cameras
00004  *
00005  *  Created: Wed Jan 13 18:24:39 2010
00006  *  Copyright  2007-2010  Tim Niemueller [www.niemueller.de]
00007  *
00008  ****************************************************************************/
00009 
00010 /*  This program is free software; you can redistribute it and/or modify
00011  *  it under the terms of the GNU General Public License as published by
00012  *  the Free Software Foundation; either version 2 of the License, or
00013  *  (at your option) any later version.
00014  *
00015  *  This program is distributed in the hope that it will be useful,
00016  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00017  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00018  *  GNU Library General Public License for more details.
00019  *
00020  *  Read the full text in the LICENSE.GPL file in the doc directory.
00021  */
00022 
00023 #include <fvutils/system/camargp.h>
00024 #include <fvcams/swissranger.h>
00025 
00026 using namespace firevision;
00027 
00028 int
00029 main(int argc, char **argv)
00030 {
00031   SwissRangerCamera::print_available_cams();
00032 
00033   CameraArgumentParser cap("");
00034   SwissRangerCamera *cam = new SwissRangerCamera(&cap);
00035   cam->open();
00036   cam->print_info();
00037   cam->close();
00038   delete cam;
00039 
00040   return 0;
00041 }