text: """autogenerated by genpy from arm/cartesian_moves.msg. Do not edit."""
  import sys
  python3 = True if sys.hexversion > 0x03000000 else False
  import genpy
  import struct
  
  import arm.msg
  import genpy
  import std_msgs.msg
  
  class cartesian_moves(genpy.Message):
    _md5sum = "56c11a250225b8cc4f58b0e6670caaa1"
    _type = "arm/cartesian_moves"
    _has_header = True #flag to mark the presence of a Header object
    _full_text = """# Cartesian movement sequence message
  Header header
  time end
  cartesian_move[] moves
  ================================================================================
  MSG: std_msgs/Header
  # Standard metadata for higher-level stamped data types.
  # This is generally used to communicate timestamped data 
  # in a particular coordinate frame.
  # 
  # sequence ID: consecutively increasing ID 
  uint32 seq
  #Two-integer timestamp that is expressed as:
  # * stamp.secs: seconds (stamp_secs) since epoch
  # * stamp.nsecs: nanoseconds since stamp_secs
  # time-handling sugar is provided by the client library
  time stamp
  #Frame this data is associated with
  # 0: no frame
  # 1: global frame
  string frame_id
  
  ================================================================================
  MSG: arm/cartesian_move
  # Cartesian movement message
  Header header
  float32[7] positions
  int8[7] speeds
  """
    __slots__ = ['header','end','moves']
    _slot_types = ['std_msgs/Header','time','arm/cartesian_move[]']
  
    def __init__(self, *args, **kwds):
      """
      Constructor. Any message fields that are implicitly/explicitly
      set to None will be assigned a default value. The recommend
      use is keyword arguments as this is more robust to future message
      changes.  You cannot mix in-order arguments and keyword arguments.
  
      The available fields are:
         header,end,moves
  
      :param args: complete set of field values, in .msg order
      :param kwds: use keyword arguments corresponding to message field names
      to set specific fields.
      """
      if args or kwds:
        super(cartesian_moves, self).__init__(*args, **kwds)
        #message fields cannot be None, assign default values for those that are
        if self.header is None:
          self.header = std_msgs.msg.Header()
        if self.end is None:
          self.end = genpy.Time()
        if self.moves is None:
          self.moves = []
      else:
        self.header = std_msgs.msg.Header()
        self.end = genpy.Time()
        self.moves = []
  
    def _get_types(self):
      """
      internal API method
      """
      return self._slot_types
  
    def serialize(self, buff):
      """
      serialize message into buffer
      :param buff: buffer, ``StringIO``
      """
      try:
        _x = self
        buff.write(_struct_3I.pack(_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs))
        _x = self.header.frame_id
        length = len(_x)
        if python3 or type(_x) == unicode:
          _x = _x.encode('utf-8')
          length = len(_x)
        buff.write(struct.pack('<I%ss'%length, length, _x))
        _x = self
        buff.write(_struct_2I.pack(_x.end.secs, _x.end.nsecs))
        length = len(self.moves)
        buff.write(_struct_I.pack(length))
        for val1 in self.moves:
          _v1 = val1.header
          buff.write(_struct_I.pack(_v1.seq))
          _v2 = _v1.stamp
          _x = _v2
          buff.write(_struct_2I.pack(_x.secs, _x.nsecs))
          _x = _v1.frame_id
          length = len(_x)
          if python3 or type(_x) == unicode:
            _x = _x.encode('utf-8')
            length = len(_x)
          buff.write(struct.pack('<I%ss'%length, length, _x))
          buff.write(_struct_7f.pack(*val1.positions))
          buff.write(_struct_7b.pack(*val1.speeds))
      except struct.error as se: self._check_types(se)
      except TypeError as te: self._check_types(te)
  
    def deserialize(self, str):
      """
      unpack serialized message in str into this message instance
      :param str: byte array of serialized message, ``str``
      """
      try:
        if self.header is None:
          self.header = std_msgs.msg.Header()
        if self.end is None:
          self.end = genpy.Time()
        if self.moves is None:
          self.moves = None
        end = 0
        _x = self
        start = end
        end += 12
        (_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
        start = end
        end += 4
        (length,) = _struct_I.unpack(str[start:end])
        start = end
        end += length
        if python3:
          self.header.frame_id = str[start:end].decode('utf-8')
        else:
          self.header.frame_id = str[start:end]
        _x = self
        start = end
        end += 8
        (_x.end.secs, _x.end.nsecs,) = _struct_2I.unpack(str[start:end])
        start = end
        end += 4
        (length,) = _struct_I.unpack(str[start:end])
        self.moves = []
        for i in range(0, length):
          val1 = arm.msg.cartesian_move()
          _v3 = val1.header
          start = end
          end += 4
          (_v3.seq,) = _struct_I.unpack(str[start:end])
          _v4 = _v3.stamp
          _x = _v4
          start = end
          end += 8
          (_x.secs, _x.nsecs,) = _struct_2I.unpack(str[start:end])
          start = end
          end += 4
          (length,) = _struct_I.unpack(str[start:end])
          start = end
          end += length
          if python3:
            _v3.frame_id = str[start:end].decode('utf-8')
          else:
            _v3.frame_id = str[start:end]
          start = end
          end += 28
          val1.positions = _struct_7f.unpack(str[start:end])
          start = end
          end += 7
          val1.speeds = _struct_7b.unpack(str[start:end])
          self.moves.append(val1)
        self.end.canon()
        return self
      except struct.error as e:
        raise genpy.DeserializationError(e) #most likely buffer underfill
  
  
    def serialize_numpy(self, buff, numpy):
      """
      serialize message with numpy array types into buffer
      :param buff: buffer, ``StringIO``
      :param numpy: numpy python module
      """
      try:
        _x = self
        buff.write(_struct_3I.pack(_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs))
        _x = self.header.frame_id
        length = len(_x)
        if python3 or type(_x) == unicode:
          _x = _x.encode('utf-8')
          length = len(_x)
        buff.write(struct.pack('<I%ss'%length, length, _x))
        _x = self
        buff.write(_struct_2I.pack(_x.end.secs, _x.end.nsecs))
        length = len(self.moves)
        buff.write(_struct_I.pack(length))
        for val1 in self.moves:
          _v5 = val1.header
          buff.write(_struct_I.pack(_v5.seq))
          _v6 = _v5.stamp
          _x = _v6
          buff.write(_struct_2I.pack(_x.secs, _x.nsecs))
          _x = _v5.frame_id
          length = len(_x)
          if python3 or type(_x) == unicode:
            _x = _x.encode('utf-8')
            length = len(_x)
          buff.write(struct.pack('<I%ss'%length, length, _x))
          buff.write(val1.positions.tostring())
          buff.write(val1.speeds.tostring())
      except struct.error as se: self._check_types(se)
      except TypeError as te: self._check_types(te)
  
    def deserialize_numpy(self, str, numpy):
      """
      unpack serialized message in str into this message instance using numpy for array types
      :param str: byte array of serialized message, ``str``
      :param numpy: numpy python module
      """
      try:
        if self.header is None:
          self.header = std_msgs.msg.Header()
        if self.end is None:
          self.end = genpy.Time()
        if self.moves is None:
          self.moves = None
        end = 0
        _x = self
        start = end
        end += 12
        (_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end])
        start = end
        end += 4
        (length,) = _struct_I.unpack(str[start:end])
        start = end
        end += length
        if python3:
          self.header.frame_id = str[start:end].decode('utf-8')
        else:
          self.header.frame_id = str[start:end]
        _x = self
        start = end
        end += 8
        (_x.end.secs, _x.end.nsecs,) = _struct_2I.unpack(str[start:end])
        start = end
        end += 4
        (length,) = _struct_I.unpack(str[start:end])
        self.moves = []
        for i in range(0, length):
          val1 = arm.msg.cartesian_move()
          _v7 = val1.header
          start = end
          end += 4
          (_v7.seq,) = _struct_I.unpack(str[start:end])
          _v8 = _v7.stamp
          _x = _v8
          start = end
          end += 8
          (_x.secs, _x.nsecs,) = _struct_2I.unpack(str[start:end])
          start = end
          end += 4
          (length,) = _struct_I.unpack(str[start:end])
          start = end
          end += length
          if python3:
            _v7.frame_id = str[start:end].decode('utf-8')
          else:
            _v7.frame_id = str[start:end]
          start = end
          end += 28
          val1.positions = numpy.frombuffer(str[start:end], dtype=numpy.float32, count=7)
          start = end
          end += 7
          val1.speeds = numpy.frombuffer(str[start:end], dtype=numpy.int8, count=7)
          self.moves.append(val1)
        self.end.canon()
        return self
      except struct.error as e:
        raise genpy.DeserializationError(e) #most likely buffer underfill
  
  _struct_I = genpy.struct_I
  _struct_7f = struct.Struct("<7f")
  _struct_3I = struct.Struct("<3I")
  _struct_2I = struct.Struct("<2I")
  _struct_7b = struct.Struct("<7b")
  