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': 13, 'description': 'The size of a leaf (on x,y,z) used for downsampling.', 'max': 1.0, 'cconsttype': 'const double', 'ctype': 'double', 'srcfile': '../cfg/VoxelGrid.cfg', 'name': 'leaf_size', 'edit_method': '', 'default': 0.01, 'level': 0, 'min': 0.0, 'type': 'double'}, {'srcline': 12, 'description': 'The field name used for filtering', 'max': '', 'cconsttype': 'const char * const', 'ctype': 'std::string', 'srcfile': '/tmp/buildd/ros-diamondback-perception-pcl-0.10.0/debian/ros-diamondback-perception-pcl/opt/ros/diamondback/stacks/perception_pcl/pcl_ros/cfg/Filter_common.py', 'name': 'filter_field_name', 'edit_method': '', 'default': 'z', 'level': 0, 'min': '', 'type': 'str'}, {'srcline': 13, 'description': 'The minimum allowed field value a point will be considered from', 'max': 5.0, 'cconsttype': 'const double', 'ctype': 'double', 'srcfile': '/tmp/buildd/ros-diamondback-perception-pcl-0.10.0/debian/ros-diamondback-perception-pcl/opt/ros/diamondback/stacks/perception_pcl/pcl_ros/cfg/Filter_common.py', 'name': 'filter_limit_min', 'edit_method': '', 'default': 0.0, 'level': 0, 'min': -5.0, 'type': 'double'}, {'srcline': 14, 'description': 'The maximum allowed field value a point will be considered from', 'max': 5.0, 'cconsttype': 'const double', 'ctype': 'double', 'srcfile': '/tmp/buildd/ros-diamondback-perception-pcl-0.10.0/debian/ros-diamondback-perception-pcl/opt/ros/diamondback/stacks/perception_pcl/pcl_ros/cfg/Filter_common.py', 'name': 'filter_limit_max', 'edit_method': '', 'default': 1.0, 'level': 0, 'min': -5.0, 'type': 'double'}, {'srcline': 15, 'description': 'Set to true if we want to return the data outside [filter_limit_min; filter_limit_max].', 'max': True, 'cconsttype': 'const bool', 'ctype': 'bool', 'srcfile': '/tmp/buildd/ros-diamondback-perception-pcl-0.10.0/debian/ros-diamondback-perception-pcl/opt/ros/diamondback/stacks/perception_pcl/pcl_ros/cfg/Filter_common.py', 'name': 'filter_limit_negative', 'edit_method': '', 'default': False, 'level': 0, 'min': False, 'type': 'bool'}, {'srcline': 16, 'description': 'The input TF frame the data should be transformed into before processing, if input.header.frame_id is different.', 'max': '', 'cconsttype': 'const char * const', 'ctype': 'std::string', 'srcfile': '/tmp/buildd/ros-diamondback-perception-pcl-0.10.0/debian/ros-diamondback-perception-pcl/opt/ros/diamondback/stacks/perception_pcl/pcl_ros/cfg/Filter_common.py', 'name': 'input_frame', 'edit_method': '', 'default': '', 'level': 0, 'min': '', 'type': 'str'}, {'srcline': 17, 'description': 'The output TF frame the data should be transformed into after processing, if input.header.frame_id is different.', 'max': '', 'cconsttype': 'const char * const', 'ctype': 'std::string', 'srcfile': '/tmp/buildd/ros-diamondback-perception-pcl-0.10.0/debian/ros-diamondback-perception-pcl/opt/ros/diamondback/stacks/perception_pcl/pcl_ros/cfg/Filter_common.py', 'name': 'output_frame', 'edit_method': '', 'default': '', 'level': 0, 'min': '', 'type': 'str'}]
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