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