Go to the documentation of this file.00001 """autogenerated by genpy from blort_ros/TrackerCommandRequest.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 TrackerCommandRequest(genpy.Message):
00009 _md5sum = "07f7598c0b15b556da58dbaee503e79b"
00010 _type = "blort_ros/TrackerCommandRequest"
00011 _has_header = False
00012 _full_text = """
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026 uint8 code
00027 uint8 param
00028
00029 """
00030 __slots__ = ['code','param']
00031 _slot_types = ['uint8','uint8']
00032
00033 def __init__(self, *args, **kwds):
00034 """
00035 Constructor. Any message fields that are implicitly/explicitly
00036 set to None will be assigned a default value. The recommend
00037 use is keyword arguments as this is more robust to future message
00038 changes. You cannot mix in-order arguments and keyword arguments.
00039
00040 The available fields are:
00041 code,param
00042
00043 :param args: complete set of field values, in .msg order
00044 :param kwds: use keyword arguments corresponding to message field names
00045 to set specific fields.
00046 """
00047 if args or kwds:
00048 super(TrackerCommandRequest, self).__init__(*args, **kwds)
00049
00050 if self.code is None:
00051 self.code = 0
00052 if self.param is None:
00053 self.param = 0
00054 else:
00055 self.code = 0
00056 self.param = 0
00057
00058 def _get_types(self):
00059 """
00060 internal API method
00061 """
00062 return self._slot_types
00063
00064 def serialize(self, buff):
00065 """
00066 serialize message into buffer
00067 :param buff: buffer, ``StringIO``
00068 """
00069 try:
00070 _x = self
00071 buff.write(_struct_2B.pack(_x.code, _x.param))
00072 except struct.error as se: self._check_types(se)
00073 except TypeError as te: self._check_types(te)
00074
00075 def deserialize(self, str):
00076 """
00077 unpack serialized message in str into this message instance
00078 :param str: byte array of serialized message, ``str``
00079 """
00080 try:
00081 end = 0
00082 _x = self
00083 start = end
00084 end += 2
00085 (_x.code, _x.param,) = _struct_2B.unpack(str[start:end])
00086 return self
00087 except struct.error as e:
00088 raise genpy.DeserializationError(e)
00089
00090
00091 def serialize_numpy(self, buff, numpy):
00092 """
00093 serialize message with numpy array types into buffer
00094 :param buff: buffer, ``StringIO``
00095 :param numpy: numpy python module
00096 """
00097 try:
00098 _x = self
00099 buff.write(_struct_2B.pack(_x.code, _x.param))
00100 except struct.error as se: self._check_types(se)
00101 except TypeError as te: self._check_types(te)
00102
00103 def deserialize_numpy(self, str, numpy):
00104 """
00105 unpack serialized message in str into this message instance using numpy for array types
00106 :param str: byte array of serialized message, ``str``
00107 :param numpy: numpy python module
00108 """
00109 try:
00110 end = 0
00111 _x = self
00112 start = end
00113 end += 2
00114 (_x.code, _x.param,) = _struct_2B.unpack(str[start:end])
00115 return self
00116 except struct.error as e:
00117 raise genpy.DeserializationError(e)
00118
00119 _struct_I = genpy.struct_I
00120 _struct_2B = struct.Struct("<2B")
00121 """autogenerated by genpy from blort_ros/TrackerCommandResponse.msg. Do not edit."""
00122 import sys
00123 python3 = True if sys.hexversion > 0x03000000 else False
00124 import genpy
00125 import struct
00126
00127
00128 class TrackerCommandResponse(genpy.Message):
00129 _md5sum = "d41d8cd98f00b204e9800998ecf8427e"
00130 _type = "blort_ros/TrackerCommandResponse"
00131 _has_header = False
00132 _full_text = """
00133
00134 """
00135 __slots__ = []
00136 _slot_types = []
00137
00138 def __init__(self, *args, **kwds):
00139 """
00140 Constructor. Any message fields that are implicitly/explicitly
00141 set to None will be assigned a default value. The recommend
00142 use is keyword arguments as this is more robust to future message
00143 changes. You cannot mix in-order arguments and keyword arguments.
00144
00145 The available fields are:
00146
00147
00148 :param args: complete set of field values, in .msg order
00149 :param kwds: use keyword arguments corresponding to message field names
00150 to set specific fields.
00151 """
00152 if args or kwds:
00153 super(TrackerCommandResponse, self).__init__(*args, **kwds)
00154
00155 def _get_types(self):
00156 """
00157 internal API method
00158 """
00159 return self._slot_types
00160
00161 def serialize(self, buff):
00162 """
00163 serialize message into buffer
00164 :param buff: buffer, ``StringIO``
00165 """
00166 try:
00167 pass
00168 except struct.error as se: self._check_types(se)
00169 except TypeError as te: self._check_types(te)
00170
00171 def deserialize(self, str):
00172 """
00173 unpack serialized message in str into this message instance
00174 :param str: byte array of serialized message, ``str``
00175 """
00176 try:
00177 end = 0
00178 return self
00179 except struct.error as e:
00180 raise genpy.DeserializationError(e)
00181
00182
00183 def serialize_numpy(self, buff, numpy):
00184 """
00185 serialize message with numpy array types into buffer
00186 :param buff: buffer, ``StringIO``
00187 :param numpy: numpy python module
00188 """
00189 try:
00190 pass
00191 except struct.error as se: self._check_types(se)
00192 except TypeError as te: self._check_types(te)
00193
00194 def deserialize_numpy(self, str, numpy):
00195 """
00196 unpack serialized message in str into this message instance using numpy for array types
00197 :param str: byte array of serialized message, ``str``
00198 :param numpy: numpy python module
00199 """
00200 try:
00201 end = 0
00202 return self
00203 except struct.error as e:
00204 raise genpy.DeserializationError(e)
00205
00206 _struct_I = genpy.struct_I
00207 class TrackerCommand(object):
00208 _type = 'blort_ros/TrackerCommand'
00209 _md5sum = '07f7598c0b15b556da58dbaee503e79b'
00210 _request_class = TrackerCommandRequest
00211 _response_class = TrackerCommandResponse