## *********************************************************
##
## File autogenerated for the freenect_camera package
## by the dynamic_reconfigure package.
## Please do not edit.
##
## ********************************************************/

from dynamic_reconfigure.encoding import extract_params

inf = float('inf')

config_description = {'name': 'Default', 'type': '', 'state': True, 'cstate': 'true', 'id': 0, 'parent': 0, 'parameters': [{'name': 'image_mode', 'type': 'int', 'default': 2, 'level': 0, 'description': 'Image output mode', 'min': 1, 'max': 2, 'srcline': 291, 'srcfile': '/opt/ros/noetic/lib/python3/dist-packages/dynamic_reconfigure/parameter_generator_catkin.py', 'edit_method': "{'enum': [{'name': 'SXGA', 'type': 'int', 'value': 1, 'srcline': 8, 'srcfile': '/home/ma1/catkin_ws/src/freenect_stack/freenect_camera/cfg/Freenect.cfg', 'description': '1280x1024', 'ctype': 'int', 'cconsttype': 'const int'}, {'name': 'VGA', 'type': 'int', 'value': 2, 'srcline': 9, 'srcfile': '/home/ma1/catkin_ws/src/freenect_stack/freenect_camera/cfg/Freenect.cfg', 'description': '640x480', 'ctype': 'int', 'cconsttype': 'const int'}], 'enum_description': 'output mode'}", 'ctype': 'int', 'cconsttype': 'const int'}, {'name': 'depth_mode', 'type': 'int', 'default': 2, 'level': 0, 'description': 'Depth output mode', 'min': 1, 'max': 2, 'srcline': 291, 'srcfile': '/opt/ros/noetic/lib/python3/dist-packages/dynamic_reconfigure/parameter_generator_catkin.py', 'edit_method': "{'enum': [{'name': 'SXGA', 'type': 'int', 'value': 1, 'srcline': 8, 'srcfile': '/home/ma1/catkin_ws/src/freenect_stack/freenect_camera/cfg/Freenect.cfg', 'description': '1280x1024', 'ctype': 'int', 'cconsttype': 'const int'}, {'name': 'VGA', 'type': 'int', 'value': 2, 'srcline': 9, 'srcfile': '/home/ma1/catkin_ws/src/freenect_stack/freenect_camera/cfg/Freenect.cfg', 'description': '640x480', 'ctype': 'int', 'cconsttype': 'const int'}], 'enum_description': 'output mode'}", 'ctype': 'int', 'cconsttype': 'const int'}, {'name': 'depth_registration', 'type': 'bool', 'default': True, 'level': 0, 'description': 'Depth data registration', 'min': False, 'max': True, 'srcline': 291, 'srcfile': '/opt/ros/noetic/lib/python3/dist-packages/dynamic_reconfigure/parameter_generator_catkin.py', 'edit_method': '', 'ctype': 'bool', 'cconsttype': 'const bool'}, {'name': 'data_skip', 'type': 'int', 'default': 0, 'level': 0, 'description': 'Skip N images for every image published (rgb/depth/depth_registered/ir)', 'min': 0, 'max': 10, 'srcline': 291, 'srcfile': '/opt/ros/noetic/lib/python3/dist-packages/dynamic_reconfigure/parameter_generator_catkin.py', 'edit_method': '', 'ctype': 'int', 'cconsttype': 'const int'}, {'name': 'depth_time_offset', 'type': 'double', 'default': 0.0, 'level': 0, 'description': 'depth image time offset in seconds', 'min': -1.0, 'max': 1.0, 'srcline': 291, 'srcfile': '/opt/ros/noetic/lib/python3/dist-packages/dynamic_reconfigure/parameter_generator_catkin.py', 'edit_method': '', 'ctype': 'double', 'cconsttype': 'const double'}, {'name': 'image_time_offset', 'type': 'double', 'default': 0.0, 'level': 0, 'description': 'image time offset in seconds', 'min': -1.0, 'max': 1.0, 'srcline': 291, 'srcfile': '/opt/ros/noetic/lib/python3/dist-packages/dynamic_reconfigure/parameter_generator_catkin.py', 'edit_method': '', 'ctype': 'double', 'cconsttype': 'const double'}, {'name': 'depth_ir_offset_x', 'type': 'double', 'default': 5.0, 'level': 0, 'description': 'X offset between IR and depth images', 'min': -10.0, 'max': 10.0, 'srcline': 291, 'srcfile': '/opt/ros/noetic/lib/python3/dist-packages/dynamic_reconfigure/parameter_generator_catkin.py', 'edit_method': '', 'ctype': 'double', 'cconsttype': 'const double'}, {'name': 'depth_ir_offset_y', 'type': 'double', 'default': 4.0, 'level': 0, 'description': 'Y offset between IR and depth images', 'min': -10.0, 'max': 10.0, 'srcline': 291, 'srcfile': '/opt/ros/noetic/lib/python3/dist-packages/dynamic_reconfigure/parameter_generator_catkin.py', 'edit_method': '', 'ctype': 'double', 'cconsttype': 'const double'}, {'name': 'z_offset_mm', 'type': 'int', 'default': 0, 'level': 0, 'description': 'Z offset in mm', 'min': -50, 'max': 50, 'srcline': 291, 'srcfile': '/opt/ros/noetic/lib/python3/dist-packages/dynamic_reconfigure/parameter_generator_catkin.py', 'edit_method': '', 'ctype': 'int', 'cconsttype': 'const int'}], 'groups': [], 'srcline': 246, 'srcfile': '/opt/ros/noetic/lib/python3/dist-packages/dynamic_reconfigure/parameter_generator_catkin.py', 'class': 'DEFAULT', 'parentclass': '', 'parentname': 'Default', 'field': 'default', 'upper': 'DEFAULT', 'lower': 'groups'}

min = {}
max = {}
defaults = {}
level = {}
type = {}
all_level = 0

#def extract_params(config):
#    params = []
#    params.extend(config['parameters'])
#    for group in config['groups']:
#        params.extend(extract_params(group))
#    return params

for param in extract_params(config_description):
    min[param['name']] = param['min']
    max[param['name']] = param['max']
    defaults[param['name']] = param['default']
    level[param['name']] = param['level']
    type[param['name']] = param['type']
    all_level = all_level | param['level']

Freenect_SXGA = 1
Freenect_VGA = 2
