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': 42, 'description': 'Required distance to avoid collision with a closed door', 'max': 3.0, 'cconsttype': 'const double', 'ctype': 'double', 'srcfile': '../cfg/door_detector_actions_alg_config.cfg', 'name': 'base_distance_before_closed_door', 'edit_method': '', 'default': 0.35999999999999999, 'level': 0, 'min': 0.10000000000000001, 'type': 'double'}, {'srcline': 43, 'description': 'Required distance to avoid collision with an open door', 'max': 3.0, 'cconsttype': 'const double', 'ctype': 'double', 'srcfile': '../cfg/door_detector_actions_alg_config.cfg', 'name': 'base_distance_after_open_door', 'edit_method': '', 'default': 1.0, 'level': 0, 'min': 0.10000000000000001, 'type': 'double'}, {'srcline': 44, 'description': 'Required distance to avoid collision with a closed door', 'max': 1.0, 'cconsttype': 'const double', 'ctype': 'double', 'srcfile': '../cfg/door_detector_actions_alg_config.cfg', 'name': 'arm_distance_before_closed_door', 'edit_method': '', 'default': 0.25, 'level': 0, 'min': 0.01, 'type': 'double'}, {'srcline': 45, 'description': 'Z-axis Arm offset to adjust target pose', 'max': 1.0, 'cconsttype': 'const double', 'ctype': 'double', 'srcfile': '../cfg/door_detector_actions_alg_config.cfg', 'name': 'z_arm_offset', 'edit_method': '', 'default': 0.040000000000000001, 'level': 0, 'min': -1.0, 'type': 'double'}, {'srcline': 46, 'description': 'Y-axis offset to adjust target pose', 'max': 1.0, 'cconsttype': 'const double', 'ctype': 'double', 'srcfile': '../cfg/door_detector_actions_alg_config.cfg', 'name': 'y_offset', 'edit_method': '', 'default': 0.0, 'level': 0, 'min': -1.0, 'type': 'double'}, {'srcline': 47, 'description': 'Run without simulation', 'max': True, 'cconsttype': 'const bool', 'ctype': 'bool', 'srcfile': '../cfg/door_detector_actions_alg_config.cfg', 'name': 'no_simulator', 'edit_method': '', 'default': True, 'level': 0, 'min': False, 'type': 'bool'}]
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