## *********************************************************
##
## File autogenerated for the laser_filters 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': 'min_angle', 'type': 'double', 'default': 10.0, 'level': 0, 'description': 'Minimum perpendicular angle', 'min': 0.0, 'max': 360.0, 'srcline': 291, 'srcfile': '/usr/lib/python3.7/site-packages/dynamic_reconfigure/parameter_generator_catkin.py', 'edit_method': '', 'ctype': 'double', 'cconsttype': 'const double'}, {'name': 'max_angle', 'type': 'double', 'default': 170.0, 'level': 0, 'description': 'Maximum perpendicular angle', 'min': 0.0, 'max': 360.0, 'srcline': 291, 'srcfile': '/usr/lib/python3.7/site-packages/dynamic_reconfigure/parameter_generator_catkin.py', 'edit_method': '', 'ctype': 'double', 'cconsttype': 'const double'}, {'name': 'window', 'type': 'int', 'default': 1, 'level': 0, 'description': 'Number of consecutive measurements to consider angles inside of', 'min': 0, 'max': 100, 'srcline': 291, 'srcfile': '/usr/lib/python3.7/site-packages/dynamic_reconfigure/parameter_generator_catkin.py', 'edit_method': '', 'ctype': 'int', 'cconsttype': 'const int'}, {'name': 'neighbors', 'type': 'int', 'default': 20, 'level': 0, 'description': 'Number of further-away neighbors to remove', 'min': 0, 'max': 100, 'srcline': 291, 'srcfile': '/usr/lib/python3.7/site-packages/dynamic_reconfigure/parameter_generator_catkin.py', 'edit_method': '', 'ctype': 'int', 'cconsttype': 'const int'}, {'name': 'remove_shadow_start_point', 'type': 'bool', 'default': False, 'level': 0, 'description': 'Whether to remove the shadow start point', 'min': False, 'max': True, 'srcline': 291, 'srcfile': '/usr/lib/python3.7/site-packages/dynamic_reconfigure/parameter_generator_catkin.py', 'edit_method': '', 'ctype': 'bool', 'cconsttype': 'const bool'}], 'groups': [], 'srcline': 246, 'srcfile': '/usr/lib/python3.7/site-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']

