00001 """autogenerated by genmsg_py from SensorLevels.msg. Do not edit."""
00002 import roslib.message
00003 import struct
00004
00005
00006 class SensorLevels(roslib.message.Message):
00007 _md5sum = "6322637bee96d5489db6e2127c47602c"
00008 _type = "driver_base/SensorLevels"
00009 _has_header = False
00010 _full_text = """byte RECONFIGURE_CLOSE = 3 # Parameters that need a sensor to be stopped completely when changed
00011 byte RECONFIGURE_STOP = 1 # Parameters that need a sensor to stop streaming when changed
00012 byte RECONFIGURE_RUNNING = 0 # Parameters that can be changed while a sensor is streaming
00013
00014 """
00015
00016 RECONFIGURE_CLOSE = 3
00017 RECONFIGURE_STOP = 1
00018 RECONFIGURE_RUNNING = 0
00019
00020 __slots__ = []
00021 _slot_types = []
00022
00023 def __init__(self, *args, **kwds):
00024 """
00025 Constructor. Any message fields that are implicitly/explicitly
00026 set to None will be assigned a default value. The recommend
00027 use is keyword arguments as this is more robust to future message
00028 changes. You cannot mix in-order arguments and keyword arguments.
00029
00030 The available fields are:
00031
00032
00033 @param args: complete set of field values, in .msg order
00034 @param kwds: use keyword arguments corresponding to message field names
00035 to set specific fields.
00036 """
00037 if args or kwds:
00038 super(SensorLevels, self).__init__(*args, **kwds)
00039
00040 def _get_types(self):
00041 """
00042 internal API method
00043 """
00044 return self._slot_types
00045
00046 def serialize(self, buff):
00047 """
00048 serialize message into buffer
00049 @param buff: buffer
00050 @type buff: StringIO
00051 """
00052 try:
00053 pass
00054 except struct.error, se: self._check_types(se)
00055 except TypeError, te: self._check_types(te)
00056
00057 def deserialize(self, str):
00058 """
00059 unpack serialized message in str into this message instance
00060 @param str: byte array of serialized message
00061 @type str: str
00062 """
00063 try:
00064 end = 0
00065 return self
00066 except struct.error, e:
00067 raise roslib.message.DeserializationError(e)
00068
00069
00070 def serialize_numpy(self, buff, numpy):
00071 """
00072 serialize message with numpy array types into buffer
00073 @param buff: buffer
00074 @type buff: StringIO
00075 @param numpy: numpy python module
00076 @type numpy module
00077 """
00078 try:
00079 pass
00080 except struct.error, se: self._check_types(se)
00081 except TypeError, te: self._check_types(te)
00082
00083 def deserialize_numpy(self, str, numpy):
00084 """
00085 unpack serialized message in str into this message instance using numpy for array types
00086 @param str: byte array of serialized message
00087 @type str: str
00088 @param numpy: numpy python module
00089 @type numpy: module
00090 """
00091 try:
00092 end = 0
00093 return self
00094 except struct.error, e:
00095 raise roslib.message.DeserializationError(e)
00096
00097 _struct_I = roslib.message.struct_I