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': 12, 'description': 'Cut off depth readings beyond this range', 'max': 10.0, 'cconsttype': 'const double', 'ctype': 'double', 'srcfile': '../cfg/Kinect.cfg', 'name': 'max_range', 'edit_method': '', 'default': 5.0, 'level': 0, 'min': 1.0, 'type': 'double'}, {'srcline': 18, 'description': 'Encoding of the raw image', 'max': 2, 'cconsttype': 'const int', 'ctype': 'int', 'srcfile': '../cfg/Kinect.cfg', 'name': 'color_format', 'edit_method': "{'enum_description': 'Enum to set the color image format', 'enum': [{'srcline': 14, 'description': 'RGB color', 'srcfile': '../cfg/Kinect.cfg', 'cconsttype': 'const int', 'value': 0, 'ctype': 'int', 'type': 'int', 'name': 'RGB'}, {'srcline': 15, 'description': 'Raw Bayer data', 'srcfile': '../cfg/Kinect.cfg', 'cconsttype': 'const int', 'value': 1, 'ctype': 'int', 'type': 'int', 'name': 'Bayer'}, {'srcline': 16, 'description': 'Raw IR data', 'srcfile': '../cfg/Kinect.cfg', 'cconsttype': 'const int', 'value': 2, 'ctype': 'int', 'type': 'int', 'name': 'IR'}]}", 'default': 0, 'level': 0, 'min': 0, 'type': 'int'}, {'srcline': 28, 'description': 'LED mode', 'max': 6, 'cconsttype': 'const int', 'ctype': 'int', 'srcfile': '../cfg/Kinect.cfg', 'name': 'led', 'edit_method': "{'enum_description': 'Enum to set the LED mode', 'enum': [{'srcline': 20, 'description': 'Off', 'srcfile': '../cfg/Kinect.cfg', 'cconsttype': 'const int', 'value': 0, 'ctype': 'int', 'type': 'int', 'name': 'Off'}, {'srcline': 21, 'description': 'Green', 'srcfile': '../cfg/Kinect.cfg', 'cconsttype': 'const int', 'value': 1, 'ctype': 'int', 'type': 'int', 'name': 'Green'}, {'srcline': 22, 'description': 'Red', 'srcfile': '../cfg/Kinect.cfg', 'cconsttype': 'const int', 'value': 2, 'ctype': 'int', 'type': 'int', 'name': 'Red'}, {'srcline': 23, 'description': 'Yellow', 'srcfile': '../cfg/Kinect.cfg', 'cconsttype': 'const int', 'value': 3, 'ctype': 'int', 'type': 'int', 'name': 'Yellow'}, {'srcline': 24, 'description': 'Blink yellow', 'srcfile': '../cfg/Kinect.cfg', 'cconsttype': 'const int', 'value': 4, 'ctype': 'int', 'type': 'int', 'name': 'BlinkYellow'}, {'srcline': 25, 'description': 'Blink green', 'srcfile': '../cfg/Kinect.cfg', 'cconsttype': 'const int', 'value': 5, 'ctype': 'int', 'type': 'int', 'name': 'BlinkGreen'}, {'srcline': 26, 'description': 'Blink red and yellow', 'srcfile': '../cfg/Kinect.cfg', 'cconsttype': 'const int', 'value': 6, 'ctype': 'int', 'type': 'int', 'name': 'BlinkRedYellow'}]}", 'default': 5, 'level': 0, 'min': 0, 'type': 'int'}, {'srcline': 30, 'description': 'Control the tilt motor, degrees', 'max': 31.0, 'cconsttype': 'const double', 'ctype': 'double', 'srcfile': '../cfg/Kinect.cfg', 'name': 'tilt', 'edit_method': '', 'default': 0.0, 'level': 0, 'min': -31.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
00060 Kinect_RGB = 0
00061 Kinect_Bayer = 1
00062 Kinect_IR = 2
00063 Kinect_Off = 0
00064 Kinect_Green = 1
00065 Kinect_Red = 2
00066 Kinect_Yellow = 3
00067 Kinect_BlinkYellow = 4
00068 Kinect_BlinkGreen = 5
00069 Kinect_BlinkRedYellow = 6