00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043 config_description = [{'srcline': 19, 'description': 'Camera Trigger mode', 'max': '', 'cconsttype': 'const char * const', 'ctype': 'std::string', 'srcfile': '../cfg/ProsilicaCamera.cfg', 'name': 'trigger_mode', 'edit_method': "{'enum_description': 'Enum to set the trigger mode', 'enum': [{'srcline': 11, 'description': 'Run at maximum frame rate', 'srcfile': '../cfg/ProsilicaCamera.cfg', 'cconsttype': 'const char * const', 'value': 'streaming', 'ctype': 'std::string', 'type': 'str', 'name': 'StreamingMode'}, {'srcline': 12, 'description': 'Capture frame in response to service call', 'srcfile': '../cfg/ProsilicaCamera.cfg', 'cconsttype': 'const char * const', 'value': 'polled', 'ctype': 'std::string', 'type': 'str', 'name': 'PolledMode'}, {'srcline': 14, 'description': 'External trigger on SyncIn1 line', 'srcfile': '../cfg/ProsilicaCamera.cfg', 'cconsttype': 'const char * const', 'value': 'syncin1', 'ctype': 'std::string', 'type': 'str', 'name': 'External1Mode'}, {'srcline': 15, 'description': 'External trigger on SyncIn2 line', 'srcfile': '../cfg/ProsilicaCamera.cfg', 'cconsttype': 'const char * const', 'value': 'syncin2', 'ctype': 'std::string', 'type': 'str', 'name': 'External2Mode'}]}", 'default': 'streaming', 'level': 1, 'min': '', 'type': 'str'}, {'srcline': 20, 'description': 'Sets the camera exposure duration to automatic. Causes the @b exposure setting to be ignored.', 'max': True, 'cconsttype': 'const bool', 'ctype': 'bool', 'srcfile': '../cfg/ProsilicaCamera.cfg', 'name': 'auto_exposure', 'edit_method': '', 'default': True, 'level': 0, 'min': False, 'type': 'bool'}, {'srcline': 21, 'description': 'Camera exposure time in seconds.', 'max': 60.0, 'cconsttype': 'const double', 'ctype': 'double', 'srcfile': '../cfg/ProsilicaCamera.cfg', 'name': 'exposure', 'edit_method': '', 'default': 0.025000000000000001, 'level': 0, 'min': 2.5000000000000001e-05, 'type': 'double'}, {'srcline': 22, 'description': 'Sets the analog gain to automatic. Causes the @b gain setting to be ignored.', 'max': True, 'cconsttype': 'const bool', 'ctype': 'bool', 'srcfile': '../cfg/ProsilicaCamera.cfg', 'name': 'auto_gain', 'edit_method': '', 'default': True, 'level': 0, 'min': False, 'type': 'bool'}, {'srcline': 23, 'description': 'The gain level in dB.', 'max': 24, 'cconsttype': 'const int', 'ctype': 'int', 'srcfile': '../cfg/ProsilicaCamera.cfg', 'name': 'gain', 'edit_method': '', 'default': 0, 'level': 0, 'min': 0, 'type': 'int'}, {'srcline': 24, 'description': 'Whether whitebalance will continuously adjust to the current scene. Causes the @b whitebalance_red and @b whitebalance_blue settings to be ignored.', 'max': True, 'cconsttype': 'const bool', 'ctype': 'bool', 'srcfile': '../cfg/ProsilicaCamera.cfg', 'name': 'auto_whitebalance', 'edit_method': '', 'default': True, 'level': 0, 'min': False, 'type': 'bool'}, {'srcline': 25, 'description': 'Red gain as a percentage of the camera default setting.', 'max': 300, 'cconsttype': 'const int', 'ctype': 'int', 'srcfile': '../cfg/ProsilicaCamera.cfg', 'name': 'whitebalance_red', 'edit_method': '', 'default': 100, 'level': 0, 'min': 80, 'type': 'int'}, {'srcline': 26, 'description': 'Blue gain as a percentage of the camera default setting.', 'max': 300, 'cconsttype': 'const int', 'ctype': 'int', 'srcfile': '../cfg/ProsilicaCamera.cfg', 'name': 'whitebalance_blue', 'edit_method': '', 'default': 100, 'level': 0, 'min': 80, 'type': 'int'}, {'srcline': 27, 'description': 'Number of pixels to bin together horizontally.', 'max': 8, 'cconsttype': 'const int', 'ctype': 'int', 'srcfile': '../cfg/ProsilicaCamera.cfg', 'name': 'binning_x', 'edit_method': '', 'default': 1, 'level': 0, 'min': 1, 'type': 'int'}, {'srcline': 28, 'description': 'Number of pixels to bin together vertically.', 'max': 14, 'cconsttype': 'const int', 'ctype': 'int', 'srcfile': '../cfg/ProsilicaCamera.cfg', 'name': 'binning_y', 'edit_method': '', 'default': 1, 'level': 0, 'min': 1, 'type': 'int'}, {'srcline': 29, 'description': 'X offset of the region of interest.', 'max': 2447, 'cconsttype': 'const int', 'ctype': 'int', 'srcfile': '../cfg/ProsilicaCamera.cfg', 'name': 'x_offset', 'edit_method': '', 'default': 0, 'level': 0, 'min': 0, 'type': 'int'}, {'srcline': 30, 'description': 'Y offset of the region of interest.', 'max': 2049, 'cconsttype': 'const int', 'ctype': 'int', 'srcfile': '../cfg/ProsilicaCamera.cfg', 'name': 'y_offset', 'edit_method': '', 'default': 0, 'level': 0, 'min': 0, 'type': 'int'}, {'srcline': 31, 'description': 'Width of the region of interest (0 for automatic).', 'max': 2448, 'cconsttype': 'const int', 'ctype': 'int', 'srcfile': '../cfg/ProsilicaCamera.cfg', 'name': 'width', 'edit_method': '', 'default': 0, 'level': 0, 'min': 0, 'type': 'int'}, {'srcline': 32, 'description': 'Height of the region of interest (0 for automatic).', 'max': 2050, 'cconsttype': 'const int', 'ctype': 'int', 'srcfile': '../cfg/ProsilicaCamera.cfg', 'name': 'height', 'edit_method': '', 'default': 0, 'level': 0, 'min': 0, 'type': 'int'}, {'srcline': 33, 'description': 'The optical camera TF frame set in message headers.', 'max': '', 'cconsttype': 'const char * const', 'ctype': 'std::string', 'srcfile': '../cfg/ProsilicaCamera.cfg', 'name': 'frame_id', 'edit_method': '', 'default': '', 'level': 0, 'min': '', 'type': 'str'}, {'srcline': 34, 'description': 'Sets the topic from which an externally trigged camera receives its trigger timestamps.', 'max': '', 'cconsttype': 'const char * const', 'ctype': 'std::string', 'srcfile': '../cfg/ProsilicaCamera.cfg', 'name': 'trig_timestamp_topic', 'edit_method': '', 'default': '', 'level': 1, 'min': '', 'type': 'str'}, {'srcline': 35, 'description': 'Sets the expected triggering rate in externally triggered mode.', 'max': 100.0, 'cconsttype': 'const double', 'ctype': 'double', 'srcfile': '../cfg/ProsilicaCamera.cfg', 'name': 'trig_rate', 'edit_method': '', 'default': 15.0, 'level': 0, 'min': 1.0, 'type': 'double'}]
00044
00045 min = {}
00046 max = {}
00047 defaults = {}
00048 level = {}
00049 type = {}
00050 all_level = 0
00051
00052 for param in config_description:
00053 min[param['name']] = param['min']
00054 max[param['name']] = param['max']
00055 defaults[param['name']] = param['default']
00056 level[param['name']] = param['level']
00057 type[param['name']] = param['type']
00058 all_level = all_level | param['level']
00059
00060 ProsilicaCamera_StreamingMode = 'streaming'
00061 ProsilicaCamera_PolledMode = 'polled'
00062 ProsilicaCamera_External1Mode = 'syncin1'
00063 ProsilicaCamera_External2Mode = 'syncin2'