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