snark
types.h
1 // This file is part of snark, a generic and flexible library
2 // for robotics research.
3 //
4 // Copyright (C) 2011 The University of Sydney
5 //
6 // snark is free software; you can redistribute it and/or
7 // modify it under the terms of the GNU Lesser General Public
8 // License as published by the Free Software Foundation; either
9 // version 3 of the License, or (at your option) any later version.
10 //
11 // snark is distributed in the hope that it will be useful, but WITHOUT ANY
12 // WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
13 // FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
14 // for more details.
15 //
16 // You should have received a copy of the GNU Lesser General Public
17 // License along with snark. If not, see <http://www.gnu.org/licenses/>.
18 
19 #ifndef SNARK_SENSORS_DC1394_TYPES_H_
20 #define SNARK_SENSORS_DC1394_TYPES_H_
21 
22 #include <dc1394/dc1394.h>
23 #include <string>
24 
25 namespace snark { namespace camera {
26 
27 std::string video_mode_to_string( dc1394video_mode_t mode );
28 std::string operation_mode_to_string( dc1394operation_mode_t mode );
29 std::string iso_speed_to_string( dc1394speed_t speed );
30 std::string frame_rate_to_string( dc1394framerate_t frame_rate );
31 
32 dc1394video_mode_t video_mode_from_string( const std::string& mode );
33 dc1394operation_mode_t operation_mode_from_string( const std::string& mode );
34 dc1394speed_t iso_speed_from_string( const std::string& speed );
35 dc1394framerate_t frame_rate_from_string( const std::string& frame_rate );
36 
37 void print_video_modes();
38 void print_operation_modes();
39 void print_iso_speeds();
40 void print_frame_rates();
41 
42 } } // namespace snark { namespace camera {
43 
44 
45 #endif // SNARK_SENSORS_DC1394_TYPES_H_