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 from dynamic_reconfigure.encoding import extract_params
00044
00045 inf = float('inf')
00046
00047 config_description = {'upper': 'DEFAULT', 'lower': 'groups', 'srcline': 233, 'name': 'Default', 'parent': 0, 'srcfile': '/opt/ros/fuerte/stacks/dynamic_reconfigure/src/dynamic_reconfigure/parameter_generator.py', 'cstate': 'true', 'parentname': 'Default', 'class': 'DEFAULT', 'field': 'default', 'state': True, 'parentclass': '', 'groups': [], 'parameters': [{'srcline': 259, 'description': 'The acceleration limit of the robot in the x direction', 'max': 20.0, 'cconsttype': 'const double', 'ctype': 'double', 'srcfile': '/opt/ros/fuerte/stacks/dynamic_reconfigure/src/dynamic_reconfigure/parameter_generator.py', 'name': 'acc_lim_x', 'edit_method': '', 'default': 1.0, 'level': 0, 'min': 0.0, 'type': 'double'}, {'srcline': 259, 'description': 'The acceleration limit of the robot in the y direction', 'max': 20.0, 'cconsttype': 'const double', 'ctype': 'double', 'srcfile': '/opt/ros/fuerte/stacks/dynamic_reconfigure/src/dynamic_reconfigure/parameter_generator.py', 'name': 'acc_lim_y', 'edit_method': '', 'default': 1.0, 'level': 0, 'min': 0.0, 'type': 'double'}, {'srcline': 259, 'description': 'The acceleration limit of the robot in the theta direction', 'max': 20.0, 'cconsttype': 'const double', 'ctype': 'double', 'srcfile': '/opt/ros/fuerte/stacks/dynamic_reconfigure/src/dynamic_reconfigure/parameter_generator.py', 'name': 'acc_lim_theta', 'edit_method': '', 'default': 1.0, 'level': 0, 'min': 0.0, 'type': 'double'}, {'srcline': 259, 'description': 'The maximum x velocity for the robot in m/s', 'max': 20.0, 'cconsttype': 'const double', 'ctype': 'double', 'srcfile': '/opt/ros/fuerte/stacks/dynamic_reconfigure/src/dynamic_reconfigure/parameter_generator.py', 'name': 'max_vel_x', 'edit_method': '', 'default': 0.55000000000000004, 'level': 0, 'min': 0.0, 'type': 'double'}, {'srcline': 259, 'description': 'The minimum x velocity for the robot in m/s', 'max': 20.0, 'cconsttype': 'const double', 'ctype': 'double', 'srcfile': '/opt/ros/fuerte/stacks/dynamic_reconfigure/src/dynamic_reconfigure/parameter_generator.py', 'name': 'min_vel_x', 'edit_method': '', 'default': 0.0, 'level': 0, 'min': 0.0, 'type': 'double'}, {'srcline': 259, 'description': 'The absolute value of the maximum rotational velocity for the robot in rad/s', 'max': 20.0, 'cconsttype': 'const double', 'ctype': 'double', 'srcfile': '/opt/ros/fuerte/stacks/dynamic_reconfigure/src/dynamic_reconfigure/parameter_generator.py', 'name': 'max_vel_theta', 'edit_method': '', 'default': 1.0, 'level': 0, 'min': 0.0, 'type': 'double'}, {'srcline': 259, 'description': 'The absolute value of the minimum rotational velocity for the robot in rad/s', 'max': 0.0, 'cconsttype': 'const double', 'ctype': 'double', 'srcfile': '/opt/ros/fuerte/stacks/dynamic_reconfigure/src/dynamic_reconfigure/parameter_generator.py', 'name': 'min_vel_theta', 'edit_method': '', 'default': -1.0, 'level': 0, 'min': -20.0, 'type': 'double'}, {'srcline': 259, 'description': 'The absolute value of the minimum in-place rotational velocity the controller will explore', 'max': 20.0, 'cconsttype': 'const double', 'ctype': 'double', 'srcfile': '/opt/ros/fuerte/stacks/dynamic_reconfigure/src/dynamic_reconfigure/parameter_generator.py', 'name': 'min_in_place_vel_theta', 'edit_method': '', 'default': 0.40000000000000002, 'level': 0, 'min': 0.0, 'type': 'double'}, {'srcline': 259, 'description': 'The amount of time to roll trajectories out for in seconds', 'max': 10.0, 'cconsttype': 'const double', 'ctype': 'double', 'srcfile': '/opt/ros/fuerte/stacks/dynamic_reconfigure/src/dynamic_reconfigure/parameter_generator.py', 'name': 'sim_time', 'edit_method': '', 'default': 1.7, 'level': 0, 'min': 0.0, 'type': 'double'}, {'srcline': 259, 'description': 'The granularity with which to check for collisions along each trajectory in meters', 'max': 5.0, 'cconsttype': 'const double', 'ctype': 'double', 'srcfile': '/opt/ros/fuerte/stacks/dynamic_reconfigure/src/dynamic_reconfigure/parameter_generator.py', 'name': 'sim_granularity', 'edit_method': '', 'default': 0.025000000000000001, 'level': 0, 'min': 0.0, 'type': 'double'}, {'srcline': 259, 'description': 'The weight for the path distance part of the cost function', 'max': 5.0, 'cconsttype': 'const double', 'ctype': 'double', 'srcfile': '/opt/ros/fuerte/stacks/dynamic_reconfigure/src/dynamic_reconfigure/parameter_generator.py', 'name': 'pdist_scale', 'edit_method': '', 'default': 0.59999999999999998, 'level': 0, 'min': 0.0, 'type': 'double'}, {'srcline': 259, 'description': 'The weight for the goal distance part of the cost function', 'max': 5.0, 'cconsttype': 'const double', 'ctype': 'double', 'srcfile': '/opt/ros/fuerte/stacks/dynamic_reconfigure/src/dynamic_reconfigure/parameter_generator.py', 'name': 'gdist_scale', 'edit_method': '', 'default': 0.80000000000000004, 'level': 0, 'min': 0.0, 'type': 'double'}, {'srcline': 259, 'description': 'The weight for the obstacle distance part of the cost function', 'max': 5.0, 'cconsttype': 'const double', 'ctype': 'double', 'srcfile': '/opt/ros/fuerte/stacks/dynamic_reconfigure/src/dynamic_reconfigure/parameter_generator.py', 'name': 'occdist_scale', 'edit_method': '', 'default': 0.01, 'level': 0, 'min': 0.0, 'type': 'double'}, {'srcline': 259, 'description': 'The distance the robot must travel before oscillation flags are reset, in meters', 'max': 5.0, 'cconsttype': 'const double', 'ctype': 'double', 'srcfile': '/opt/ros/fuerte/stacks/dynamic_reconfigure/src/dynamic_reconfigure/parameter_generator.py', 'name': 'oscillation_reset_dist', 'edit_method': '', 'default': 0.050000000000000003, 'level': 0, 'min': 0.0, 'type': 'double'}, {'srcline': 259, 'description': 'The distance the robot must travel before oscillation flags are reset, in meters', 'max': 5.0, 'cconsttype': 'const double', 'ctype': 'double', 'srcfile': '/opt/ros/fuerte/stacks/dynamic_reconfigure/src/dynamic_reconfigure/parameter_generator.py', 'name': 'escape_reset_dist', 'edit_method': '', 'default': 0.10000000000000001, 'level': 0, 'min': 0.0, 'type': 'double'}, {'srcline': 259, 'description': 'The distance the robot must travel before oscillation flags are reset, in meters', 'max': 5.0, 'cconsttype': 'const double', 'ctype': 'double', 'srcfile': '/opt/ros/fuerte/stacks/dynamic_reconfigure/src/dynamic_reconfigure/parameter_generator.py', 'name': 'escape_reset_theta', 'edit_method': '', 'default': 1.5707963267948966, 'level': 0, 'min': 0.0, 'type': 'double'}, {'srcline': 259, 'description': 'The number of samples to use when exploring the x velocity space', 'max': 300, 'cconsttype': 'const int', 'ctype': 'int', 'srcfile': '/opt/ros/fuerte/stacks/dynamic_reconfigure/src/dynamic_reconfigure/parameter_generator.py', 'name': 'vx_samples', 'edit_method': '', 'default': 20, 'level': 0, 'min': 1, 'type': 'int'}, {'srcline': 259, 'description': 'The number of samples to use when exploring the theta velocity space', 'max': 300, 'cconsttype': 'const int', 'ctype': 'int', 'srcfile': '/opt/ros/fuerte/stacks/dynamic_reconfigure/src/dynamic_reconfigure/parameter_generator.py', 'name': 'vtheta_samples', 'edit_method': '', 'default': 20, 'level': 0, 'min': 1, 'type': 'int'}, {'srcline': 259, 'description': 'How far the robot should look ahead of itself when differentiating between different rotational velocities', 'max': 5.0, 'cconsttype': 'const double', 'ctype': 'double', 'srcfile': '/opt/ros/fuerte/stacks/dynamic_reconfigure/src/dynamic_reconfigure/parameter_generator.py', 'name': 'heading_lookahead', 'edit_method': '', 'default': 0.32500000000000001, 'level': 0, 'min': 0.0, 'type': 'double'}, {'srcline': 259, 'description': 'Set this to true if the robot being controlled can take y velocities and false otherwise', 'max': True, 'cconsttype': 'const bool', 'ctype': 'bool', 'srcfile': '/opt/ros/fuerte/stacks/dynamic_reconfigure/src/dynamic_reconfigure/parameter_generator.py', 'name': 'holonomic_robot', 'edit_method': '', 'default': True, 'level': 0, 'min': False, 'type': 'bool'}, {'srcline': 259, 'description': 'The velocity to use while backing up', 'max': 2.0, 'cconsttype': 'const double', 'ctype': 'double', 'srcfile': '/opt/ros/fuerte/stacks/dynamic_reconfigure/src/dynamic_reconfigure/parameter_generator.py', 'name': 'escape_vel', 'edit_method': '', 'default': -0.10000000000000001, 'level': 0, 'min': -2.0, 'type': 'double'}, {'srcline': 259, 'description': 'Set this to true to use the Dynamic Window Approach, false to use acceleration limits', 'max': True, 'cconsttype': 'const bool', 'ctype': 'bool', 'srcfile': '/opt/ros/fuerte/stacks/dynamic_reconfigure/src/dynamic_reconfigure/parameter_generator.py', 'name': 'dwa', 'edit_method': '', 'default': False, 'level': 0, 'min': False, 'type': 'bool'}, {'srcline': 259, 'description': 'Set this to true to use the Dynamic Window Approach, false to use acceleration limits', 'max': True, 'cconsttype': 'const bool', 'ctype': 'bool', 'srcfile': '/opt/ros/fuerte/stacks/dynamic_reconfigure/src/dynamic_reconfigure/parameter_generator.py', 'name': 'heading_scoring', 'edit_method': '', 'default': False, 'level': 0, 'min': False, 'type': 'bool'}, {'srcline': 259, 'description': 'How far to look ahead in time when we score heading based trajectories', 'max': 1.0, 'cconsttype': 'const double', 'ctype': 'double', 'srcfile': '/opt/ros/fuerte/stacks/dynamic_reconfigure/src/dynamic_reconfigure/parameter_generator.py', 'name': 'heading_scoring_timestep', 'edit_method': '', 'default': 0.10000000000000001, 'level': 0, 'min': 0.0, 'type': 'double'}, {'srcline': 259, 'description': 'Set this to true to allow simple attraction to a goal point instead of intelligent cost propagation', 'max': True, 'cconsttype': 'const bool', 'ctype': 'bool', 'srcfile': '/opt/ros/fuerte/stacks/dynamic_reconfigure/src/dynamic_reconfigure/parameter_generator.py', 'name': 'simple_attractor', 'edit_method': '', 'default': False, 'level': 0, 'min': False, 'type': 'bool'}, {'srcline': 259, 'description': "The distance between simulation points for angular velocity should be small enough that the robot doesn't hit things", 'max': 1.5707963267948966, 'cconsttype': 'const double', 'ctype': 'double', 'srcfile': '/opt/ros/fuerte/stacks/dynamic_reconfigure/src/dynamic_reconfigure/parameter_generator.py', 'name': 'angular_sim_granularity', 'edit_method': '', 'default': 0.025000000000000001, 'level': 0, 'min': 0.0, 'type': 'double'}, {'srcline': 259, 'description': 'A comma delimited list of the y velocities the controller will explore', 'max': '', 'cconsttype': 'const char * const', 'ctype': 'std::string', 'srcfile': '/opt/ros/fuerte/stacks/dynamic_reconfigure/src/dynamic_reconfigure/parameter_generator.py', 'name': 'y_vels', 'edit_method': '', 'default': '-0.3,-0.1,0.1,-0.3', 'level': 0, 'min': '', 'type': 'str'}, {'srcline': 259, 'description': 'Retore to the default configuration', 'max': True, 'cconsttype': 'const bool', 'ctype': 'bool', 'srcfile': '/opt/ros/fuerte/stacks/dynamic_reconfigure/src/dynamic_reconfigure/parameter_generator.py', 'name': 'restore_defaults', 'edit_method': '', 'default': False, 'level': 0, 'min': False, 'type': 'bool'}], 'type': '', 'id': 0}
00048
00049 min = {}
00050 max = {}
00051 defaults = {}
00052 level = {}
00053 type = {}
00054 all_level = 0
00055
00056
00057
00058
00059
00060
00061
00062
00063 for param in extract_params(config_description):
00064 min[param['name']] = param['min']
00065 max[param['name']] = param['max']
00066 defaults[param['name']] = param['default']
00067 level[param['name']] = param['level']
00068 type[param['name']] = param['type']
00069 all_level = all_level | param['level']
00070