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': 41, 'description': 'Frame in which the target vector is specified. Empty means the input frame.', 'max': '', 'cconsttype': 'const char * const', 'ctype': 'std::string', 'srcfile': '../cfg/ImageRotate.cfg', 'name': 'target_frame_id', 'edit_method': '', 'default': 'base_link', 'level': 0, 'min': '', 'type': 'str'}, {'srcline': 42, 'description': 'X coordinate of the target vector', 'max': 10.0, 'cconsttype': 'const double', 'ctype': 'double', 'srcfile': '../cfg/ImageRotate.cfg', 'name': 'target_x', 'edit_method': '', 'default': 0.0, 'level': 0, 'min': -10.0, 'type': 'double'}, {'srcline': 43, 'description': 'Y coordinate of the target vector', 'max': 10.0, 'cconsttype': 'const double', 'ctype': 'double', 'srcfile': '../cfg/ImageRotate.cfg', 'name': 'target_y', 'edit_method': '', 'default': 0.0, 'level': 0, 'min': -10.0, 'type': 'double'}, {'srcline': 44, 'description': 'Z coordinate of the target vector', 'max': 10.0, 'cconsttype': 'const double', 'ctype': 'double', 'srcfile': '../cfg/ImageRotate.cfg', 'name': 'target_z', 'edit_method': '', 'default': 1.0, 'level': 0, 'min': -10.0, 'type': 'double'}, {'srcline': 46, 'description': 'Frame in which the source vector is specified. Empty means the input frame.', 'max': '', 'cconsttype': 'const char * const', 'ctype': 'std::string', 'srcfile': '../cfg/ImageRotate.cfg', 'name': 'source_frame_id', 'edit_method': '', 'default': '', 'level': 0, 'min': '', 'type': 'str'}, {'srcline': 47, 'description': 'X coordinate of the direction the target should be aligned with.', 'max': 10.0, 'cconsttype': 'const double', 'ctype': 'double', 'srcfile': '../cfg/ImageRotate.cfg', 'name': 'source_x', 'edit_method': '', 'default': 0.0, 'level': 0, 'min': -10.0, 'type': 'double'}, {'srcline': 48, 'description': 'Y coordinate of the direction the target should be aligned with.', 'max': 10.0, 'cconsttype': 'const double', 'ctype': 'double', 'srcfile': '../cfg/ImageRotate.cfg', 'name': 'source_y', 'edit_method': '', 'default': -1.0, 'level': 0, 'min': -10.0, 'type': 'double'}, {'srcline': 49, 'description': 'Z coordinate of the direction the target should be aligned with.', 'max': 10.0, 'cconsttype': 'const double', 'ctype': 'double', 'srcfile': '../cfg/ImageRotate.cfg', 'name': 'source_z', 'edit_method': '', 'default': 0.0, 'level': 0, 'min': -10.0, 'type': 'double'}, {'srcline': 51, 'description': "Frame to publish for the image's new orientation. Empty means add '_rotated' suffix to the image frame.", 'max': '', 'cconsttype': 'const char * const', 'ctype': 'std::string', 'srcfile': '../cfg/ImageRotate.cfg', 'name': 'output_frame_id', 'edit_method': '', 'default': '', 'level': 0, 'min': '', 'type': 'str'}, {'srcline': 52, 'description': 'Frame to use for the original camera image. Empty means that the frame in the image or camera_info should be used depending on use_camera_info.', 'max': '', 'cconsttype': 'const char * const', 'ctype': 'std::string', 'srcfile': '../cfg/ImageRotate.cfg', 'name': 'input_frame_id', 'edit_method': '', 'default': '', 'level': 0, 'min': '', 'type': 'str'}, {'srcline': 54, 'description': 'Indicates that the camera_info topic should be subscribed to to get the default input_frame_id. Otherwise the frame from the image message will be used.', 'max': True, 'cconsttype': 'const bool', 'ctype': 'bool', 'srcfile': '../cfg/ImageRotate.cfg', 'name': 'use_camera_info', 'edit_method': '', 'default': True, 'level': 0, 'min': False, 'type': 'bool'}, {'srcline': 56, 'description': 'Limits the rate at which the image can rotate (rad/s). Zero means no limit.', 'max': 100.0, 'cconsttype': 'const double', 'ctype': 'double', 'srcfile': '../cfg/ImageRotate.cfg', 'name': 'max_angular_rate', 'edit_method': '', 'default': 10.0, 'level': 0, 'min': 0.0, 'type': 'double'}, {'srcline': 58, 'description': 'Size of the output image as a function of the input image size. Can be varied continuously between the following special settings: 0 ensures no black ever appears, 1 is small image dimension, 2 is large image dimension, 3 is image diagonal.', 'max': 3.0, 'cconsttype': 'const double', 'ctype': 'double', 'srcfile': '../cfg/ImageRotate.cfg', 'name': 'output_image_size', 'edit_method': '', 'default': 2.0, 'level': 0, 'min': 0.0, 'type': 'double'}]
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