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


zyonz_nbv_geometric_simple
Author(s): Sergi Foix
autogenerated on Fri Dec 6 2013 21:49:17