_xsens_state_message.py
Go to the documentation of this file.
00001 """autogenerated by genpy from tulip_gazebo/xsens_state_message.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 genpy
00009 
00010 class xsens_state_message(genpy.Message):
00011   _md5sum = "07deb68b3aeac7002d1c041ea95ffeb8"
00012   _type = "tulip_gazebo/xsens_state_message"
00013   _has_header = False #flag to mark the presence of a Header object
00014   _full_text = """time time
00015 geometry_msgs/Pose pose
00016 geometry_msgs/Twist twist
00017 ================================================================================
00018 MSG: geometry_msgs/Pose
00019 # A representation of pose in free space, composed of postion and orientation. 
00020 Point position
00021 Quaternion orientation
00022 
00023 ================================================================================
00024 MSG: geometry_msgs/Point
00025 # This contains the position of a point in free space
00026 float64 x
00027 float64 y
00028 float64 z
00029 
00030 ================================================================================
00031 MSG: geometry_msgs/Quaternion
00032 # This represents an orientation in free space in quaternion form.
00033 
00034 float64 x
00035 float64 y
00036 float64 z
00037 float64 w
00038 
00039 ================================================================================
00040 MSG: geometry_msgs/Twist
00041 # This expresses velocity in free space broken into its linear and angular parts.
00042 Vector3  linear
00043 Vector3  angular
00044 
00045 ================================================================================
00046 MSG: geometry_msgs/Vector3
00047 # This represents a vector in free space. 
00048 
00049 float64 x
00050 float64 y
00051 float64 z
00052 """
00053   __slots__ = ['time','pose','twist']
00054   _slot_types = ['time','geometry_msgs/Pose','geometry_msgs/Twist']
00055 
00056   def __init__(self, *args, **kwds):
00057     """
00058     Constructor. Any message fields that are implicitly/explicitly
00059     set to None will be assigned a default value. The recommend
00060     use is keyword arguments as this is more robust to future message
00061     changes.  You cannot mix in-order arguments and keyword arguments.
00062 
00063     The available fields are:
00064        time,pose,twist
00065 
00066     :param args: complete set of field values, in .msg order
00067     :param kwds: use keyword arguments corresponding to message field names
00068     to set specific fields.
00069     """
00070     if args or kwds:
00071       super(xsens_state_message, self).__init__(*args, **kwds)
00072       #message fields cannot be None, assign default values for those that are
00073       if self.time is None:
00074         self.time = genpy.Time()
00075       if self.pose is None:
00076         self.pose = geometry_msgs.msg.Pose()
00077       if self.twist is None:
00078         self.twist = geometry_msgs.msg.Twist()
00079     else:
00080       self.time = genpy.Time()
00081       self.pose = geometry_msgs.msg.Pose()
00082       self.twist = geometry_msgs.msg.Twist()
00083 
00084   def _get_types(self):
00085     """
00086     internal API method
00087     """
00088     return self._slot_types
00089 
00090   def serialize(self, buff):
00091     """
00092     serialize message into buffer
00093     :param buff: buffer, ``StringIO``
00094     """
00095     try:
00096       _x = self
00097       buff.write(_struct_2I13d.pack(_x.time.secs, _x.time.nsecs, _x.pose.position.x, _x.pose.position.y, _x.pose.position.z, _x.pose.orientation.x, _x.pose.orientation.y, _x.pose.orientation.z, _x.pose.orientation.w, _x.twist.linear.x, _x.twist.linear.y, _x.twist.linear.z, _x.twist.angular.x, _x.twist.angular.y, _x.twist.angular.z))
00098     except struct.error as se: self._check_types(se)
00099     except TypeError as te: self._check_types(te)
00100 
00101   def deserialize(self, str):
00102     """
00103     unpack serialized message in str into this message instance
00104     :param str: byte array of serialized message, ``str``
00105     """
00106     try:
00107       if self.time is None:
00108         self.time = genpy.Time()
00109       if self.pose is None:
00110         self.pose = geometry_msgs.msg.Pose()
00111       if self.twist is None:
00112         self.twist = geometry_msgs.msg.Twist()
00113       end = 0
00114       _x = self
00115       start = end
00116       end += 112
00117       (_x.time.secs, _x.time.nsecs, _x.pose.position.x, _x.pose.position.y, _x.pose.position.z, _x.pose.orientation.x, _x.pose.orientation.y, _x.pose.orientation.z, _x.pose.orientation.w, _x.twist.linear.x, _x.twist.linear.y, _x.twist.linear.z, _x.twist.angular.x, _x.twist.angular.y, _x.twist.angular.z,) = _struct_2I13d.unpack(str[start:end])
00118       self.time.canon()
00119       return self
00120     except struct.error as e:
00121       raise genpy.DeserializationError(e) #most likely buffer underfill
00122 
00123 
00124   def serialize_numpy(self, buff, numpy):
00125     """
00126     serialize message with numpy array types into buffer
00127     :param buff: buffer, ``StringIO``
00128     :param numpy: numpy python module
00129     """
00130     try:
00131       _x = self
00132       buff.write(_struct_2I13d.pack(_x.time.secs, _x.time.nsecs, _x.pose.position.x, _x.pose.position.y, _x.pose.position.z, _x.pose.orientation.x, _x.pose.orientation.y, _x.pose.orientation.z, _x.pose.orientation.w, _x.twist.linear.x, _x.twist.linear.y, _x.twist.linear.z, _x.twist.angular.x, _x.twist.angular.y, _x.twist.angular.z))
00133     except struct.error as se: self._check_types(se)
00134     except TypeError as te: self._check_types(te)
00135 
00136   def deserialize_numpy(self, str, numpy):
00137     """
00138     unpack serialized message in str into this message instance using numpy for array types
00139     :param str: byte array of serialized message, ``str``
00140     :param numpy: numpy python module
00141     """
00142     try:
00143       if self.time is None:
00144         self.time = genpy.Time()
00145       if self.pose is None:
00146         self.pose = geometry_msgs.msg.Pose()
00147       if self.twist is None:
00148         self.twist = geometry_msgs.msg.Twist()
00149       end = 0
00150       _x = self
00151       start = end
00152       end += 112
00153       (_x.time.secs, _x.time.nsecs, _x.pose.position.x, _x.pose.position.y, _x.pose.position.z, _x.pose.orientation.x, _x.pose.orientation.y, _x.pose.orientation.z, _x.pose.orientation.w, _x.twist.linear.x, _x.twist.linear.y, _x.twist.linear.z, _x.twist.angular.x, _x.twist.angular.y, _x.twist.angular.z,) = _struct_2I13d.unpack(str[start:end])
00154       self.time.canon()
00155       return self
00156     except struct.error as e:
00157       raise genpy.DeserializationError(e) #most likely buffer underfill
00158 
00159 _struct_I = genpy.struct_I
00160 _struct_2I13d = struct.Struct("<2I13d")


tulip_gazebo
Author(s): Tim Assman, Pieter van Zutven
autogenerated on Sun Jan 26 2014 21:00:10