_SetStaticTransform.py
Go to the documentation of this file.
00001 """autogenerated by genpy from static_transform_broadcaster/SetStaticTransformRequest.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 SetStaticTransformRequest(genpy.Message):
00011   _md5sum = "627ebb4e09bbb127f87308bbfdbaec08"
00012   _type = "static_transform_broadcaster/SetStaticTransformRequest"
00013   _has_header = False #flag to mark the presence of a Header object
00014   _full_text = """
00015 
00016 
00017 
00018 
00019 geometry_msgs/TransformStamped transform
00020 
00021 
00022 ================================================================================
00023 MSG: geometry_msgs/TransformStamped
00024 # This expresses a transform from coordinate frame header.frame_id
00025 # to the coordinate frame child_frame_id
00026 #
00027 # This message is mostly used by the 
00028 # <a href="http://www.ros.org/wiki/tf">tf</a> package. 
00029 # See its documentation for more information.
00030 
00031 Header header
00032 string child_frame_id # the frame id of the child frame
00033 Transform transform
00034 
00035 ================================================================================
00036 MSG: std_msgs/Header
00037 # Standard metadata for higher-level stamped data types.
00038 # This is generally used to communicate timestamped data 
00039 # in a particular coordinate frame.
00040 # 
00041 # sequence ID: consecutively increasing ID 
00042 uint32 seq
00043 #Two-integer timestamp that is expressed as:
00044 # * stamp.secs: seconds (stamp_secs) since epoch
00045 # * stamp.nsecs: nanoseconds since stamp_secs
00046 # time-handling sugar is provided by the client library
00047 time stamp
00048 #Frame this data is associated with
00049 # 0: no frame
00050 # 1: global frame
00051 string frame_id
00052 
00053 ================================================================================
00054 MSG: geometry_msgs/Transform
00055 # This represents the transform between two coordinate frames in free space.
00056 
00057 Vector3 translation
00058 Quaternion rotation
00059 
00060 ================================================================================
00061 MSG: geometry_msgs/Vector3
00062 # This represents a vector in free space. 
00063 
00064 float64 x
00065 float64 y
00066 float64 z
00067 ================================================================================
00068 MSG: geometry_msgs/Quaternion
00069 # This represents an orientation in free space in quaternion form.
00070 
00071 float64 x
00072 float64 y
00073 float64 z
00074 float64 w
00075 
00076 """
00077   __slots__ = ['transform']
00078   _slot_types = ['geometry_msgs/TransformStamped']
00079 
00080   def __init__(self, *args, **kwds):
00081     """
00082     Constructor. Any message fields that are implicitly/explicitly
00083     set to None will be assigned a default value. The recommend
00084     use is keyword arguments as this is more robust to future message
00085     changes.  You cannot mix in-order arguments and keyword arguments.
00086 
00087     The available fields are:
00088        transform
00089 
00090     :param args: complete set of field values, in .msg order
00091     :param kwds: use keyword arguments corresponding to message field names
00092     to set specific fields.
00093     """
00094     if args or kwds:
00095       super(SetStaticTransformRequest, self).__init__(*args, **kwds)
00096       #message fields cannot be None, assign default values for those that are
00097       if self.transform is None:
00098         self.transform = geometry_msgs.msg.TransformStamped()
00099     else:
00100       self.transform = geometry_msgs.msg.TransformStamped()
00101 
00102   def _get_types(self):
00103     """
00104     internal API method
00105     """
00106     return self._slot_types
00107 
00108   def serialize(self, buff):
00109     """
00110     serialize message into buffer
00111     :param buff: buffer, ``StringIO``
00112     """
00113     try:
00114       _x = self
00115       buff.write(_struct_3I.pack(_x.transform.header.seq, _x.transform.header.stamp.secs, _x.transform.header.stamp.nsecs))
00116       _x = self.transform.header.frame_id
00117       length = len(_x)
00118       if python3 or type(_x) == unicode:
00119         _x = _x.encode('utf-8')
00120         length = len(_x)
00121       buff.write(struct.pack('<I%ss'%length, length, _x))
00122       _x = self.transform.child_frame_id
00123       length = len(_x)
00124       if python3 or type(_x) == unicode:
00125         _x = _x.encode('utf-8')
00126         length = len(_x)
00127       buff.write(struct.pack('<I%ss'%length, length, _x))
00128       _x = self
00129       buff.write(_struct_7d.pack(_x.transform.transform.translation.x, _x.transform.transform.translation.y, _x.transform.transform.translation.z, _x.transform.transform.rotation.x, _x.transform.transform.rotation.y, _x.transform.transform.rotation.z, _x.transform.transform.rotation.w))
00130     except struct.error as se: self._check_types(se)
00131     except TypeError as te: self._check_types(te)
00132 
00133   def deserialize(self, str):
00134     """
00135     unpack serialized message in str into this message instance
00136     :param str: byte array of serialized message, ``str``
00137     """
00138     try:
00139       if self.transform is None:
00140         self.transform = geometry_msgs.msg.TransformStamped()
00141       end = 0
00142       _x = self
00143       start = end
00144       end += 12
00145       (_x.transform.header.seq, _x.transform.header.stamp.secs, _x.transform.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00146       start = end
00147       end += 4
00148       (length,) = _struct_I.unpack(str[start:end])
00149       start = end
00150       end += length
00151       if python3:
00152         self.transform.header.frame_id = str[start:end].decode('utf-8')
00153       else:
00154         self.transform.header.frame_id = str[start:end]
00155       start = end
00156       end += 4
00157       (length,) = _struct_I.unpack(str[start:end])
00158       start = end
00159       end += length
00160       if python3:
00161         self.transform.child_frame_id = str[start:end].decode('utf-8')
00162       else:
00163         self.transform.child_frame_id = str[start:end]
00164       _x = self
00165       start = end
00166       end += 56
00167       (_x.transform.transform.translation.x, _x.transform.transform.translation.y, _x.transform.transform.translation.z, _x.transform.transform.rotation.x, _x.transform.transform.rotation.y, _x.transform.transform.rotation.z, _x.transform.transform.rotation.w,) = _struct_7d.unpack(str[start:end])
00168       return self
00169     except struct.error as e:
00170       raise genpy.DeserializationError(e) #most likely buffer underfill
00171 
00172 
00173   def serialize_numpy(self, buff, numpy):
00174     """
00175     serialize message with numpy array types into buffer
00176     :param buff: buffer, ``StringIO``
00177     :param numpy: numpy python module
00178     """
00179     try:
00180       _x = self
00181       buff.write(_struct_3I.pack(_x.transform.header.seq, _x.transform.header.stamp.secs, _x.transform.header.stamp.nsecs))
00182       _x = self.transform.header.frame_id
00183       length = len(_x)
00184       if python3 or type(_x) == unicode:
00185         _x = _x.encode('utf-8')
00186         length = len(_x)
00187       buff.write(struct.pack('<I%ss'%length, length, _x))
00188       _x = self.transform.child_frame_id
00189       length = len(_x)
00190       if python3 or type(_x) == unicode:
00191         _x = _x.encode('utf-8')
00192         length = len(_x)
00193       buff.write(struct.pack('<I%ss'%length, length, _x))
00194       _x = self
00195       buff.write(_struct_7d.pack(_x.transform.transform.translation.x, _x.transform.transform.translation.y, _x.transform.transform.translation.z, _x.transform.transform.rotation.x, _x.transform.transform.rotation.y, _x.transform.transform.rotation.z, _x.transform.transform.rotation.w))
00196     except struct.error as se: self._check_types(se)
00197     except TypeError as te: self._check_types(te)
00198 
00199   def deserialize_numpy(self, str, numpy):
00200     """
00201     unpack serialized message in str into this message instance using numpy for array types
00202     :param str: byte array of serialized message, ``str``
00203     :param numpy: numpy python module
00204     """
00205     try:
00206       if self.transform is None:
00207         self.transform = geometry_msgs.msg.TransformStamped()
00208       end = 0
00209       _x = self
00210       start = end
00211       end += 12
00212       (_x.transform.header.seq, _x.transform.header.stamp.secs, _x.transform.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
00213       start = end
00214       end += 4
00215       (length,) = _struct_I.unpack(str[start:end])
00216       start = end
00217       end += length
00218       if python3:
00219         self.transform.header.frame_id = str[start:end].decode('utf-8')
00220       else:
00221         self.transform.header.frame_id = str[start:end]
00222       start = end
00223       end += 4
00224       (length,) = _struct_I.unpack(str[start:end])
00225       start = end
00226       end += length
00227       if python3:
00228         self.transform.child_frame_id = str[start:end].decode('utf-8')
00229       else:
00230         self.transform.child_frame_id = str[start:end]
00231       _x = self
00232       start = end
00233       end += 56
00234       (_x.transform.transform.translation.x, _x.transform.transform.translation.y, _x.transform.transform.translation.z, _x.transform.transform.rotation.x, _x.transform.transform.rotation.y, _x.transform.transform.rotation.z, _x.transform.transform.rotation.w,) = _struct_7d.unpack(str[start:end])
00235       return self
00236     except struct.error as e:
00237       raise genpy.DeserializationError(e) #most likely buffer underfill
00238 
00239 _struct_I = genpy.struct_I
00240 _struct_3I = struct.Struct("<3I")
00241 _struct_7d = struct.Struct("<7d")
00242 """autogenerated by genpy from static_transform_broadcaster/SetStaticTransformResponse.msg. Do not edit."""
00243 import sys
00244 python3 = True if sys.hexversion > 0x03000000 else False
00245 import genpy
00246 import struct
00247 
00248 
00249 class SetStaticTransformResponse(genpy.Message):
00250   _md5sum = "d41d8cd98f00b204e9800998ecf8427e"
00251   _type = "static_transform_broadcaster/SetStaticTransformResponse"
00252   _has_header = False #flag to mark the presence of a Header object
00253   _full_text = """
00254 
00255 
00256 """
00257   __slots__ = []
00258   _slot_types = []
00259 
00260   def __init__(self, *args, **kwds):
00261     """
00262     Constructor. Any message fields that are implicitly/explicitly
00263     set to None will be assigned a default value. The recommend
00264     use is keyword arguments as this is more robust to future message
00265     changes.  You cannot mix in-order arguments and keyword arguments.
00266 
00267     The available fields are:
00268        
00269 
00270     :param args: complete set of field values, in .msg order
00271     :param kwds: use keyword arguments corresponding to message field names
00272     to set specific fields.
00273     """
00274     if args or kwds:
00275       super(SetStaticTransformResponse, self).__init__(*args, **kwds)
00276 
00277   def _get_types(self):
00278     """
00279     internal API method
00280     """
00281     return self._slot_types
00282 
00283   def serialize(self, buff):
00284     """
00285     serialize message into buffer
00286     :param buff: buffer, ``StringIO``
00287     """
00288     try:
00289       pass
00290     except struct.error as se: self._check_types(se)
00291     except TypeError as te: self._check_types(te)
00292 
00293   def deserialize(self, str):
00294     """
00295     unpack serialized message in str into this message instance
00296     :param str: byte array of serialized message, ``str``
00297     """
00298     try:
00299       end = 0
00300       return self
00301     except struct.error as e:
00302       raise genpy.DeserializationError(e) #most likely buffer underfill
00303 
00304 
00305   def serialize_numpy(self, buff, numpy):
00306     """
00307     serialize message with numpy array types into buffer
00308     :param buff: buffer, ``StringIO``
00309     :param numpy: numpy python module
00310     """
00311     try:
00312       pass
00313     except struct.error as se: self._check_types(se)
00314     except TypeError as te: self._check_types(te)
00315 
00316   def deserialize_numpy(self, str, numpy):
00317     """
00318     unpack serialized message in str into this message instance using numpy for array types
00319     :param str: byte array of serialized message, ``str``
00320     :param numpy: numpy python module
00321     """
00322     try:
00323       end = 0
00324       return self
00325     except struct.error as e:
00326       raise genpy.DeserializationError(e) #most likely buffer underfill
00327 
00328 _struct_I = genpy.struct_I
00329 class SetStaticTransform(object):
00330   _type          = 'static_transform_broadcaster/SetStaticTransform'
00331   _md5sum = '627ebb4e09bbb127f87308bbfdbaec08'
00332   _request_class  = SetStaticTransformRequest
00333   _response_class = SetStaticTransformResponse
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties Friends


static_transform_broadcaster
Author(s): Matei Ciocarlie
autogenerated on Fri Jan 25 2013 15:02:59