00001 """autogenerated by genpy from hrl_haptic_manipulation_in_clutter_srvs/HapticMPCLogAndMonitorInfoRequest.msg. Do not edit."""
00002 import sys
00003 python3 = True if sys.hexversion > 0x03000000 else False
00004 import genpy
00005 import struct
00006
00007 import geometry_msgs.msg
00008
00009 class HapticMPCLogAndMonitorInfoRequest(genpy.Message):
00010 _md5sum = "c43bc9a70f4b8b5cc63764450ecb6254"
00011 _type = "hrl_haptic_manipulation_in_clutter_srvs/HapticMPCLogAndMonitorInfoRequest"
00012 _has_header = False
00013 _full_text = """
00014
00015
00016
00017
00018 string logging_name
00019
00020
00021
00022
00023
00024
00025 geometry_msgs/Point local_goal
00026
00027
00028 ================================================================================
00029 MSG: geometry_msgs/Point
00030 # This contains the position of a point in free space
00031 float64 x
00032 float64 y
00033 float64 z
00034
00035 """
00036 __slots__ = ['logging_name','local_goal']
00037 _slot_types = ['string','geometry_msgs/Point']
00038
00039 def __init__(self, *args, **kwds):
00040 """
00041 Constructor. Any message fields that are implicitly/explicitly
00042 set to None will be assigned a default value. The recommend
00043 use is keyword arguments as this is more robust to future message
00044 changes. You cannot mix in-order arguments and keyword arguments.
00045
00046 The available fields are:
00047 logging_name,local_goal
00048
00049 :param args: complete set of field values, in .msg order
00050 :param kwds: use keyword arguments corresponding to message field names
00051 to set specific fields.
00052 """
00053 if args or kwds:
00054 super(HapticMPCLogAndMonitorInfoRequest, self).__init__(*args, **kwds)
00055
00056 if self.logging_name is None:
00057 self.logging_name = ''
00058 if self.local_goal is None:
00059 self.local_goal = geometry_msgs.msg.Point()
00060 else:
00061 self.logging_name = ''
00062 self.local_goal = geometry_msgs.msg.Point()
00063
00064 def _get_types(self):
00065 """
00066 internal API method
00067 """
00068 return self._slot_types
00069
00070 def serialize(self, buff):
00071 """
00072 serialize message into buffer
00073 :param buff: buffer, ``StringIO``
00074 """
00075 try:
00076 _x = self.logging_name
00077 length = len(_x)
00078 if python3 or type(_x) == unicode:
00079 _x = _x.encode('utf-8')
00080 length = len(_x)
00081 buff.write(struct.pack('<I%ss'%length, length, _x))
00082 _x = self
00083 buff.write(_struct_3d.pack(_x.local_goal.x, _x.local_goal.y, _x.local_goal.z))
00084 except struct.error as se: self._check_types(se)
00085 except TypeError as te: self._check_types(te)
00086
00087 def deserialize(self, str):
00088 """
00089 unpack serialized message in str into this message instance
00090 :param str: byte array of serialized message, ``str``
00091 """
00092 try:
00093 if self.local_goal is None:
00094 self.local_goal = geometry_msgs.msg.Point()
00095 end = 0
00096 start = end
00097 end += 4
00098 (length,) = _struct_I.unpack(str[start:end])
00099 start = end
00100 end += length
00101 if python3:
00102 self.logging_name = str[start:end].decode('utf-8')
00103 else:
00104 self.logging_name = str[start:end]
00105 _x = self
00106 start = end
00107 end += 24
00108 (_x.local_goal.x, _x.local_goal.y, _x.local_goal.z,) = _struct_3d.unpack(str[start:end])
00109 return self
00110 except struct.error as e:
00111 raise genpy.DeserializationError(e)
00112
00113
00114 def serialize_numpy(self, buff, numpy):
00115 """
00116 serialize message with numpy array types into buffer
00117 :param buff: buffer, ``StringIO``
00118 :param numpy: numpy python module
00119 """
00120 try:
00121 _x = self.logging_name
00122 length = len(_x)
00123 if python3 or type(_x) == unicode:
00124 _x = _x.encode('utf-8')
00125 length = len(_x)
00126 buff.write(struct.pack('<I%ss'%length, length, _x))
00127 _x = self
00128 buff.write(_struct_3d.pack(_x.local_goal.x, _x.local_goal.y, _x.local_goal.z))
00129 except struct.error as se: self._check_types(se)
00130 except TypeError as te: self._check_types(te)
00131
00132 def deserialize_numpy(self, str, numpy):
00133 """
00134 unpack serialized message in str into this message instance using numpy for array types
00135 :param str: byte array of serialized message, ``str``
00136 :param numpy: numpy python module
00137 """
00138 try:
00139 if self.local_goal is None:
00140 self.local_goal = geometry_msgs.msg.Point()
00141 end = 0
00142 start = end
00143 end += 4
00144 (length,) = _struct_I.unpack(str[start:end])
00145 start = end
00146 end += length
00147 if python3:
00148 self.logging_name = str[start:end].decode('utf-8')
00149 else:
00150 self.logging_name = str[start:end]
00151 _x = self
00152 start = end
00153 end += 24
00154 (_x.local_goal.x, _x.local_goal.y, _x.local_goal.z,) = _struct_3d.unpack(str[start:end])
00155 return self
00156 except struct.error as e:
00157 raise genpy.DeserializationError(e)
00158
00159 _struct_I = genpy.struct_I
00160 _struct_3d = struct.Struct("<3d")
00161 """autogenerated by genpy from hrl_haptic_manipulation_in_clutter_srvs/HapticMPCLogAndMonitorInfoResponse.msg. Do not edit."""
00162 import sys
00163 python3 = True if sys.hexversion > 0x03000000 else False
00164 import genpy
00165 import struct
00166
00167
00168 class HapticMPCLogAndMonitorInfoResponse(genpy.Message):
00169 _md5sum = "d41d8cd98f00b204e9800998ecf8427e"
00170 _type = "hrl_haptic_manipulation_in_clutter_srvs/HapticMPCLogAndMonitorInfoResponse"
00171 _has_header = False
00172 _full_text = """
00173
00174
00175 """
00176 __slots__ = []
00177 _slot_types = []
00178
00179 def __init__(self, *args, **kwds):
00180 """
00181 Constructor. Any message fields that are implicitly/explicitly
00182 set to None will be assigned a default value. The recommend
00183 use is keyword arguments as this is more robust to future message
00184 changes. You cannot mix in-order arguments and keyword arguments.
00185
00186 The available fields are:
00187
00188
00189 :param args: complete set of field values, in .msg order
00190 :param kwds: use keyword arguments corresponding to message field names
00191 to set specific fields.
00192 """
00193 if args or kwds:
00194 super(HapticMPCLogAndMonitorInfoResponse, self).__init__(*args, **kwds)
00195
00196 def _get_types(self):
00197 """
00198 internal API method
00199 """
00200 return self._slot_types
00201
00202 def serialize(self, buff):
00203 """
00204 serialize message into buffer
00205 :param buff: buffer, ``StringIO``
00206 """
00207 try:
00208 pass
00209 except struct.error as se: self._check_types(se)
00210 except TypeError as te: self._check_types(te)
00211
00212 def deserialize(self, str):
00213 """
00214 unpack serialized message in str into this message instance
00215 :param str: byte array of serialized message, ``str``
00216 """
00217 try:
00218 end = 0
00219 return self
00220 except struct.error as e:
00221 raise genpy.DeserializationError(e)
00222
00223
00224 def serialize_numpy(self, buff, numpy):
00225 """
00226 serialize message with numpy array types into buffer
00227 :param buff: buffer, ``StringIO``
00228 :param numpy: numpy python module
00229 """
00230 try:
00231 pass
00232 except struct.error as se: self._check_types(se)
00233 except TypeError as te: self._check_types(te)
00234
00235 def deserialize_numpy(self, str, numpy):
00236 """
00237 unpack serialized message in str into this message instance using numpy for array types
00238 :param str: byte array of serialized message, ``str``
00239 :param numpy: numpy python module
00240 """
00241 try:
00242 end = 0
00243 return self
00244 except struct.error as e:
00245 raise genpy.DeserializationError(e)
00246
00247 _struct_I = genpy.struct_I
00248 class HapticMPCLogAndMonitorInfo(object):
00249 _type = 'hrl_haptic_manipulation_in_clutter_srvs/HapticMPCLogAndMonitorInfo'
00250 _md5sum = 'c43bc9a70f4b8b5cc63764450ecb6254'
00251 _request_class = HapticMPCLogAndMonitorInfoRequest
00252 _response_class = HapticMPCLogAndMonitorInfoResponse