00001 """autogenerated by genpy from srs_assisted_arm_navigation_msgs/ArmNavRemoveCollObjectsRequest.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 ArmNavRemoveCollObjectsRequest(genpy.Message):
00009 _md5sum = "d41d8cd98f00b204e9800998ecf8427e"
00010 _type = "srs_assisted_arm_navigation_msgs/ArmNavRemoveCollObjectsRequest"
00011 _has_header = False
00012 _full_text = """
00013 """
00014 __slots__ = []
00015 _slot_types = []
00016
00017 def __init__(self, *args, **kwds):
00018 """
00019 Constructor. Any message fields that are implicitly/explicitly
00020 set to None will be assigned a default value. The recommend
00021 use is keyword arguments as this is more robust to future message
00022 changes. You cannot mix in-order arguments and keyword arguments.
00023
00024 The available fields are:
00025
00026
00027 :param args: complete set of field values, in .msg order
00028 :param kwds: use keyword arguments corresponding to message field names
00029 to set specific fields.
00030 """
00031 if args or kwds:
00032 super(ArmNavRemoveCollObjectsRequest, self).__init__(*args, **kwds)
00033
00034 def _get_types(self):
00035 """
00036 internal API method
00037 """
00038 return self._slot_types
00039
00040 def serialize(self, buff):
00041 """
00042 serialize message into buffer
00043 :param buff: buffer, ``StringIO``
00044 """
00045 try:
00046 pass
00047 except struct.error as se: self._check_types(struct.error("%s: '%s' when writing '%s'" % (type(se), str(se), str(_x))))
00048 except TypeError as te: self._check_types(ValueError("%s: '%s' when writing '%s'" % (type(te), str(te), str(_x))))
00049
00050 def deserialize(self, str):
00051 """
00052 unpack serialized message in str into this message instance
00053 :param str: byte array of serialized message, ``str``
00054 """
00055 try:
00056 end = 0
00057 return self
00058 except struct.error as e:
00059 raise genpy.DeserializationError(e)
00060
00061
00062 def serialize_numpy(self, buff, numpy):
00063 """
00064 serialize message with numpy array types into buffer
00065 :param buff: buffer, ``StringIO``
00066 :param numpy: numpy python module
00067 """
00068 try:
00069 pass
00070 except struct.error as se: self._check_types(struct.error("%s: '%s' when writing '%s'" % (type(se), str(se), str(_x))))
00071 except TypeError as te: self._check_types(ValueError("%s: '%s' when writing '%s'" % (type(te), str(te), str(_x))))
00072
00073 def deserialize_numpy(self, str, numpy):
00074 """
00075 unpack serialized message in str into this message instance using numpy for array types
00076 :param str: byte array of serialized message, ``str``
00077 :param numpy: numpy python module
00078 """
00079 try:
00080 end = 0
00081 return self
00082 except struct.error as e:
00083 raise genpy.DeserializationError(e)
00084
00085 _struct_I = genpy.struct_I
00086 """autogenerated by genpy from srs_assisted_arm_navigation_msgs/ArmNavRemoveCollObjectsResponse.msg. Do not edit."""
00087 import sys
00088 python3 = True if sys.hexversion > 0x03000000 else False
00089 import genpy
00090 import struct
00091
00092 import geometry_msgs.msg
00093 import srs_assisted_arm_navigation_msgs.msg
00094 import std_msgs.msg
00095
00096 class ArmNavRemoveCollObjectsResponse(genpy.Message):
00097 _md5sum = "60f3515a4f43a52c1d9b2b6dddaf2949"
00098 _type = "srs_assisted_arm_navigation_msgs/ArmNavRemoveCollObjectsResponse"
00099 _has_header = False
00100 _full_text = """CollisionObject[] objects
00101
00102
00103 ================================================================================
00104 MSG: srs_assisted_arm_navigation_msgs/CollisionObject
00105 string name
00106 string id
00107 geometry_msgs/PoseStamped pose
00108 geometry_msgs/Point bb_lwh
00109 bool allow_collision
00110 bool attached
00111 bool allow_pregrasps
00112
00113 ================================================================================
00114 MSG: geometry_msgs/PoseStamped
00115 # A Pose with reference coordinate frame and timestamp
00116 Header header
00117 Pose pose
00118
00119 ================================================================================
00120 MSG: std_msgs/Header
00121 # Standard metadata for higher-level stamped data types.
00122 # This is generally used to communicate timestamped data
00123 # in a particular coordinate frame.
00124 #
00125 # sequence ID: consecutively increasing ID
00126 uint32 seq
00127 #Two-integer timestamp that is expressed as:
00128 # * stamp.secs: seconds (stamp_secs) since epoch
00129 # * stamp.nsecs: nanoseconds since stamp_secs
00130 # time-handling sugar is provided by the client library
00131 time stamp
00132 #Frame this data is associated with
00133 # 0: no frame
00134 # 1: global frame
00135 string frame_id
00136
00137 ================================================================================
00138 MSG: geometry_msgs/Pose
00139 # A representation of pose in free space, composed of postion and orientation.
00140 Point position
00141 Quaternion orientation
00142
00143 ================================================================================
00144 MSG: geometry_msgs/Point
00145 # This contains the position of a point in free space
00146 float64 x
00147 float64 y
00148 float64 z
00149
00150 ================================================================================
00151 MSG: geometry_msgs/Quaternion
00152 # This represents an orientation in free space in quaternion form.
00153
00154 float64 x
00155 float64 y
00156 float64 z
00157 float64 w
00158
00159 """
00160 __slots__ = ['objects']
00161 _slot_types = ['srs_assisted_arm_navigation_msgs/CollisionObject[]']
00162
00163 def __init__(self, *args, **kwds):
00164 """
00165 Constructor. Any message fields that are implicitly/explicitly
00166 set to None will be assigned a default value. The recommend
00167 use is keyword arguments as this is more robust to future message
00168 changes. You cannot mix in-order arguments and keyword arguments.
00169
00170 The available fields are:
00171 objects
00172
00173 :param args: complete set of field values, in .msg order
00174 :param kwds: use keyword arguments corresponding to message field names
00175 to set specific fields.
00176 """
00177 if args or kwds:
00178 super(ArmNavRemoveCollObjectsResponse, self).__init__(*args, **kwds)
00179
00180 if self.objects is None:
00181 self.objects = []
00182 else:
00183 self.objects = []
00184
00185 def _get_types(self):
00186 """
00187 internal API method
00188 """
00189 return self._slot_types
00190
00191 def serialize(self, buff):
00192 """
00193 serialize message into buffer
00194 :param buff: buffer, ``StringIO``
00195 """
00196 try:
00197 length = len(self.objects)
00198 buff.write(_struct_I.pack(length))
00199 for val1 in self.objects:
00200 _x = val1.name
00201 length = len(_x)
00202 if python3 or type(_x) == unicode:
00203 _x = _x.encode('utf-8')
00204 length = len(_x)
00205 buff.write(struct.pack('<I%ss'%length, length, _x))
00206 _x = val1.id
00207 length = len(_x)
00208 if python3 or type(_x) == unicode:
00209 _x = _x.encode('utf-8')
00210 length = len(_x)
00211 buff.write(struct.pack('<I%ss'%length, length, _x))
00212 _v1 = val1.pose
00213 _v2 = _v1.header
00214 buff.write(_struct_I.pack(_v2.seq))
00215 _v3 = _v2.stamp
00216 _x = _v3
00217 buff.write(_struct_2I.pack(_x.secs, _x.nsecs))
00218 _x = _v2.frame_id
00219 length = len(_x)
00220 if python3 or type(_x) == unicode:
00221 _x = _x.encode('utf-8')
00222 length = len(_x)
00223 buff.write(struct.pack('<I%ss'%length, length, _x))
00224 _v4 = _v1.pose
00225 _v5 = _v4.position
00226 _x = _v5
00227 buff.write(_struct_3d.pack(_x.x, _x.y, _x.z))
00228 _v6 = _v4.orientation
00229 _x = _v6
00230 buff.write(_struct_4d.pack(_x.x, _x.y, _x.z, _x.w))
00231 _v7 = val1.bb_lwh
00232 _x = _v7
00233 buff.write(_struct_3d.pack(_x.x, _x.y, _x.z))
00234 _x = val1
00235 buff.write(_struct_3B.pack(_x.allow_collision, _x.attached, _x.allow_pregrasps))
00236 except struct.error as se: self._check_types(struct.error("%s: '%s' when writing '%s'" % (type(se), str(se), str(_x))))
00237 except TypeError as te: self._check_types(ValueError("%s: '%s' when writing '%s'" % (type(te), str(te), str(_x))))
00238
00239 def deserialize(self, str):
00240 """
00241 unpack serialized message in str into this message instance
00242 :param str: byte array of serialized message, ``str``
00243 """
00244 try:
00245 if self.objects is None:
00246 self.objects = None
00247 end = 0
00248 start = end
00249 end += 4
00250 (length,) = _struct_I.unpack(str[start:end])
00251 self.objects = []
00252 for i in range(0, length):
00253 val1 = srs_assisted_arm_navigation_msgs.msg.CollisionObject()
00254 start = end
00255 end += 4
00256 (length,) = _struct_I.unpack(str[start:end])
00257 start = end
00258 end += length
00259 if python3:
00260 val1.name = str[start:end].decode('utf-8')
00261 else:
00262 val1.name = str[start:end]
00263 start = end
00264 end += 4
00265 (length,) = _struct_I.unpack(str[start:end])
00266 start = end
00267 end += length
00268 if python3:
00269 val1.id = str[start:end].decode('utf-8')
00270 else:
00271 val1.id = str[start:end]
00272 _v8 = val1.pose
00273 _v9 = _v8.header
00274 start = end
00275 end += 4
00276 (_v9.seq,) = _struct_I.unpack(str[start:end])
00277 _v10 = _v9.stamp
00278 _x = _v10
00279 start = end
00280 end += 8
00281 (_x.secs, _x.nsecs,) = _struct_2I.unpack(str[start:end])
00282 start = end
00283 end += 4
00284 (length,) = _struct_I.unpack(str[start:end])
00285 start = end
00286 end += length
00287 if python3:
00288 _v9.frame_id = str[start:end].decode('utf-8')
00289 else:
00290 _v9.frame_id = str[start:end]
00291 _v11 = _v8.pose
00292 _v12 = _v11.position
00293 _x = _v12
00294 start = end
00295 end += 24
00296 (_x.x, _x.y, _x.z,) = _struct_3d.unpack(str[start:end])
00297 _v13 = _v11.orientation
00298 _x = _v13
00299 start = end
00300 end += 32
00301 (_x.x, _x.y, _x.z, _x.w,) = _struct_4d.unpack(str[start:end])
00302 _v14 = val1.bb_lwh
00303 _x = _v14
00304 start = end
00305 end += 24
00306 (_x.x, _x.y, _x.z,) = _struct_3d.unpack(str[start:end])
00307 _x = val1
00308 start = end
00309 end += 3
00310 (_x.allow_collision, _x.attached, _x.allow_pregrasps,) = _struct_3B.unpack(str[start:end])
00311 val1.allow_collision = bool(val1.allow_collision)
00312 val1.attached = bool(val1.attached)
00313 val1.allow_pregrasps = bool(val1.allow_pregrasps)
00314 self.objects.append(val1)
00315 return self
00316 except struct.error as e:
00317 raise genpy.DeserializationError(e)
00318
00319
00320 def serialize_numpy(self, buff, numpy):
00321 """
00322 serialize message with numpy array types into buffer
00323 :param buff: buffer, ``StringIO``
00324 :param numpy: numpy python module
00325 """
00326 try:
00327 length = len(self.objects)
00328 buff.write(_struct_I.pack(length))
00329 for val1 in self.objects:
00330 _x = val1.name
00331 length = len(_x)
00332 if python3 or type(_x) == unicode:
00333 _x = _x.encode('utf-8')
00334 length = len(_x)
00335 buff.write(struct.pack('<I%ss'%length, length, _x))
00336 _x = val1.id
00337 length = len(_x)
00338 if python3 or type(_x) == unicode:
00339 _x = _x.encode('utf-8')
00340 length = len(_x)
00341 buff.write(struct.pack('<I%ss'%length, length, _x))
00342 _v15 = val1.pose
00343 _v16 = _v15.header
00344 buff.write(_struct_I.pack(_v16.seq))
00345 _v17 = _v16.stamp
00346 _x = _v17
00347 buff.write(_struct_2I.pack(_x.secs, _x.nsecs))
00348 _x = _v16.frame_id
00349 length = len(_x)
00350 if python3 or type(_x) == unicode:
00351 _x = _x.encode('utf-8')
00352 length = len(_x)
00353 buff.write(struct.pack('<I%ss'%length, length, _x))
00354 _v18 = _v15.pose
00355 _v19 = _v18.position
00356 _x = _v19
00357 buff.write(_struct_3d.pack(_x.x, _x.y, _x.z))
00358 _v20 = _v18.orientation
00359 _x = _v20
00360 buff.write(_struct_4d.pack(_x.x, _x.y, _x.z, _x.w))
00361 _v21 = val1.bb_lwh
00362 _x = _v21
00363 buff.write(_struct_3d.pack(_x.x, _x.y, _x.z))
00364 _x = val1
00365 buff.write(_struct_3B.pack(_x.allow_collision, _x.attached, _x.allow_pregrasps))
00366 except struct.error as se: self._check_types(struct.error("%s: '%s' when writing '%s'" % (type(se), str(se), str(_x))))
00367 except TypeError as te: self._check_types(ValueError("%s: '%s' when writing '%s'" % (type(te), str(te), str(_x))))
00368
00369 def deserialize_numpy(self, str, numpy):
00370 """
00371 unpack serialized message in str into this message instance using numpy for array types
00372 :param str: byte array of serialized message, ``str``
00373 :param numpy: numpy python module
00374 """
00375 try:
00376 if self.objects is None:
00377 self.objects = None
00378 end = 0
00379 start = end
00380 end += 4
00381 (length,) = _struct_I.unpack(str[start:end])
00382 self.objects = []
00383 for i in range(0, length):
00384 val1 = srs_assisted_arm_navigation_msgs.msg.CollisionObject()
00385 start = end
00386 end += 4
00387 (length,) = _struct_I.unpack(str[start:end])
00388 start = end
00389 end += length
00390 if python3:
00391 val1.name = str[start:end].decode('utf-8')
00392 else:
00393 val1.name = str[start:end]
00394 start = end
00395 end += 4
00396 (length,) = _struct_I.unpack(str[start:end])
00397 start = end
00398 end += length
00399 if python3:
00400 val1.id = str[start:end].decode('utf-8')
00401 else:
00402 val1.id = str[start:end]
00403 _v22 = val1.pose
00404 _v23 = _v22.header
00405 start = end
00406 end += 4
00407 (_v23.seq,) = _struct_I.unpack(str[start:end])
00408 _v24 = _v23.stamp
00409 _x = _v24
00410 start = end
00411 end += 8
00412 (_x.secs, _x.nsecs,) = _struct_2I.unpack(str[start:end])
00413 start = end
00414 end += 4
00415 (length,) = _struct_I.unpack(str[start:end])
00416 start = end
00417 end += length
00418 if python3:
00419 _v23.frame_id = str[start:end].decode('utf-8')
00420 else:
00421 _v23.frame_id = str[start:end]
00422 _v25 = _v22.pose
00423 _v26 = _v25.position
00424 _x = _v26
00425 start = end
00426 end += 24
00427 (_x.x, _x.y, _x.z,) = _struct_3d.unpack(str[start:end])
00428 _v27 = _v25.orientation
00429 _x = _v27
00430 start = end
00431 end += 32
00432 (_x.x, _x.y, _x.z, _x.w,) = _struct_4d.unpack(str[start:end])
00433 _v28 = val1.bb_lwh
00434 _x = _v28
00435 start = end
00436 end += 24
00437 (_x.x, _x.y, _x.z,) = _struct_3d.unpack(str[start:end])
00438 _x = val1
00439 start = end
00440 end += 3
00441 (_x.allow_collision, _x.attached, _x.allow_pregrasps,) = _struct_3B.unpack(str[start:end])
00442 val1.allow_collision = bool(val1.allow_collision)
00443 val1.attached = bool(val1.attached)
00444 val1.allow_pregrasps = bool(val1.allow_pregrasps)
00445 self.objects.append(val1)
00446 return self
00447 except struct.error as e:
00448 raise genpy.DeserializationError(e)
00449
00450 _struct_I = genpy.struct_I
00451 _struct_3B = struct.Struct("<3B")
00452 _struct_4d = struct.Struct("<4d")
00453 _struct_2I = struct.Struct("<2I")
00454 _struct_3d = struct.Struct("<3d")
00455 class ArmNavRemoveCollObjects(object):
00456 _type = 'srs_assisted_arm_navigation_msgs/ArmNavRemoveCollObjects'
00457 _md5sum = '60f3515a4f43a52c1d9b2b6dddaf2949'
00458 _request_class = ArmNavRemoveCollObjectsRequest
00459 _response_class = ArmNavRemoveCollObjectsResponse