37 lines
2.1 KiB
Python
37 lines
2.1 KiB
Python
## *********************************************************
|
|
##
|
|
## File autogenerated for the Steve package
|
|
## by the dynamic_reconfigure package.
|
|
## Please do not edit.
|
|
##
|
|
## ********************************************************/
|
|
|
|
from dynamic_reconfigure.encoding import extract_params
|
|
|
|
inf = float('inf')
|
|
|
|
config_description = {'upper': 'DEFAULT', 'lower': 'groups', 'srcline': 246, 'name': 'Default', 'parent': 0, 'srcfile': '/home/pi/ros_catkin_ws/src/dynamic_reconfigure/src/dynamic_reconfigure/parameter_generator.py', 'cstate': 'true', 'parentname': 'Default', 'class': 'DEFAULT', 'field': 'default', 'state': True, 'parentclass': '', 'groups': [], 'parameters': [{'srcline': 274, 'description': 'The message.', 'max': '', 'cconsttype': 'const char * const', 'ctype': 'std::string', 'srcfile': '/home/pi/ros_catkin_ws/src/dynamic_reconfigure/src/dynamic_reconfigure/parameter_generator.py', 'name': 'message', 'edit_method': '', 'default': 'hello', 'level': 0, 'min': '', 'type': 'str'}, {'srcline': 274, 'description': 'First number.', 'max': 100, 'cconsttype': 'const int', 'ctype': 'int', 'srcfile': '/home/pi/ros_catkin_ws/src/dynamic_reconfigure/src/dynamic_reconfigure/parameter_generator.py', 'name': 'a', 'edit_method': '', 'default': 1, 'level': 0, 'min': -100, 'type': 'int'}, {'srcline': 274, 'description': 'First number.', 'max': 100, 'cconsttype': 'const int', 'ctype': 'int', 'srcfile': '/home/pi/ros_catkin_ws/src/dynamic_reconfigure/src/dynamic_reconfigure/parameter_generator.py', 'name': 'b', 'edit_method': '', 'default': 2, 'level': 0, 'min': -100, 'type': 'int'}], 'type': '', 'id': 0}
|
|
|
|
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']
|
|
|