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': 11, 'description': 'The maximum number of iterations the algorithm will run for', 'max': 100000, 'cconsttype': 'const int', 'ctype': 'int', 'srcfile': '/tmp/buildd/ros-diamondback-perception-pcl-0.10.0/debian/ros-diamondback-perception-pcl/opt/ros/diamondback/stacks/perception_pcl/pcl_ros/cfg/SACSegmentation_common.py', 'name': 'max_iterations', 'edit_method': '', 'default': 50, 'level': 0, 'min': 0, 'type': 'int'}, {'srcline': 12, 'description': 'The desired probability of choosing at least one sample free from outliers', 'max': 0.98999999999999999, '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/SACSegmentation_common.py', 'name': 'probability', 'edit_method': '', 'default': 0.98999999999999999, 'level': 0, 'min': 0.5, 'type': 'double'}, {'srcline': 13, 'description': 'The distance to model threshold', 'max': 1.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/SACSegmentation_common.py', 'name': 'distance_threshold', 'edit_method': '', 'default': 0.02, 'level': 0, 'min': 0.0, 'type': 'double'}, {'srcline': 14, 'description': 'Model coefficient refinement', '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/SACSegmentation_common.py', 'name': 'optimize_coefficients', 'edit_method': '', 'default': True, 'level': 0, 'min': False, 'type': 'bool'}, {'srcline': 15, 'description': 'The minimum allowed model radius (where applicable)', 'max': 1.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/SACSegmentation_common.py', 'name': 'radius_min', 'edit_method': '', 'default': 0.0, 'level': 0, 'min': 0.0, 'type': 'double'}, {'srcline': 16, 'description': 'The maximum allowed model radius (where applicable)', 'max': 1.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/SACSegmentation_common.py', 'name': 'radius_max', 'edit_method': '', 'default': 0.050000000000000003, 'level': 0, 'min': 0.0, 'type': 'double'}, {'srcline': 17, 'description': 'The maximum allowed difference between the model normal and the given axis in radians.', 'max': 1.5707, '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/SACSegmentation_common.py', 'name': 'eps_angle', 'edit_method': '', 'default': 0.17000000000000001, 'level': 0, 'min': 0.0, 'type': 'double'}, {'srcline': 18, 'description': 'The minimum number of inliers a model must have in order to be considered valid.', 'max': 100000, 'cconsttype': 'const int', 'ctype': 'int', 'srcfile': '/tmp/buildd/ros-diamondback-perception-pcl-0.10.0/debian/ros-diamondback-perception-pcl/opt/ros/diamondback/stacks/perception_pcl/pcl_ros/cfg/SACSegmentation_common.py', 'name': 'min_inliers', 'edit_method': '', 'default': 0, 'level': 0, 'min': 0, 'type': 'int'}, {'srcline': 19, 'description': 'The input TF frame the data should be transformed into, 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/SACSegmentation_common.py', 'name': 'input_frame', 'edit_method': '', 'default': '', 'level': 0, 'min': '', 'type': 'str'}, {'srcline': 20, 'description': 'The output TF frame the data should be transformed into, 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/SACSegmentation_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