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