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': 46, 'description': 'The angle of the first range measurement. The unit depends on ~ang_radians.', 'max': 3.1415926535897931, 'cconsttype': 'const double', 'ctype': 'double', 'srcfile': '../cfg/Hokuyo.cfg', 'name': 'min_ang', 'edit_method': '', 'default': -1.5707963267948966, 'level': 1, 'min': -3.1415926535897931, 'type': 'double'}, {'srcline': 47, 'description': 'The angle of the first range measurement. The unit depends on ~ang_radians.', 'max': 3.1415926535897931, 'cconsttype': 'const double', 'ctype': 'double', 'srcfile': '../cfg/Hokuyo.cfg', 'name': 'max_ang', 'edit_method': '', 'default': 1.5707963267948966, 'level': 1, 'min': -3.1415926535897931, 'type': 'double'}, {'srcline': 48, 'description': 'Whether or not the hokuyo returns intensity values.', 'max': True, 'cconsttype': 'const bool', 'ctype': 'bool', 'srcfile': '../cfg/Hokuyo.cfg', 'name': 'intensity', 'edit_method': '', 'default': False, 'level': 1, 'min': False, 'type': 'bool'}, {'srcline': 49, 'description': 'The number of adjacent range measurements to cluster into a single reading', 'max': 99, 'cconsttype': 'const int', 'ctype': 'int', 'srcfile': '../cfg/Hokuyo.cfg', 'name': 'cluster', 'edit_method': '', 'default': 1, 'level': 1, 'min': 0, 'type': 'int'}, {'srcline': 50, 'description': 'The number of scans to skip between each measured scan', 'max': 9, 'cconsttype': 'const int', 'ctype': 'int', 'srcfile': '../cfg/Hokuyo.cfg', 'name': 'skip', 'edit_method': '', 'default': 0, 'level': 1, 'min': 0, 'type': 'int'}, {'srcline': 51, 'description': 'The serial port where the hokuyo device can be found', 'max': '', 'cconsttype': 'const char * const', 'ctype': 'std::string', 'srcfile': '../cfg/Hokuyo.cfg', 'name': 'port', 'edit_method': '', 'default': '/dev/ttyACM0', 'level': 3, 'min': '', 'type': 'str'}, {'srcline': 52, 'description': "Whether the node should calibrate the hokuyo's time offset", 'max': True, 'cconsttype': 'const bool', 'ctype': 'bool', 'srcfile': '../cfg/Hokuyo.cfg', 'name': 'calibrate_time', 'edit_method': '', 'default': True, 'level': 3, 'min': False, 'type': 'bool'}, {'srcline': 53, 'description': 'The frame in which laser scans will be returned', 'max': '', 'cconsttype': 'const char * const', 'ctype': 'std::string', 'srcfile': '../cfg/Hokuyo.cfg', 'name': 'frame_id', 'edit_method': '', 'default': 'laser', 'level': 0, 'min': '', 'type': 'str'}, {'srcline': 54, 'description': 'An offet to add to the timestamp before publication of a scan', 'max': 0.25, 'cconsttype': 'const double', 'ctype': 'double', 'srcfile': '../cfg/Hokuyo.cfg', 'name': 'time_offset', 'edit_method': '', 'default': 0.0, 'level': 0, 'min': -0.25, 'type': 'double'}, {'srcline': 55, 'description': 'Turn this on if you wish to use the UTM-30LX with an unsafe angular range. Turning this option on may cause occasional crashes or bad data. This option is a tempory workaround that will hopefully be removed in an upcoming driver version.', 'max': True, 'cconsttype': 'const bool', 'ctype': 'bool', 'srcfile': '../cfg/Hokuyo.cfg', 'name': 'allow_unsafe_settings', 'edit_method': '', 'default': False, 'level': 3, '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