parameters: (self, buff, numpy)
docstring: serialize message with numpy array types into buffer
      :param buff: buffer, ``StringIO``
      :param numpy: numpy python module
docstring_summary: serialize message with numpy array types into buffer
      :param buff: buffer, ``StringIO``
      :param numpy: numpy python module
docstring_tokens: serialize message with numpy array types into buffer : param buff : buffer StringIO : param numpy : numpy python module
function: 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.updates.header.seq, _x.updates.header.stamp.secs, _x.updates.header.stamp.nsecs))
        _x = self.updates.header.frame_id
        length = len(_x)
        if python3 or type(_x) == unicode:
          _x = _x.encode('utf-8')
          length = len(_x)
        if python3:
          buff.write(struct.pack('<I%sB'%length, length, *_x))
        else:
          buff.write(struct.pack('<I%ss'%length, length, _x))
        _x = self
        buff.write(_struct_3I.pack(_x.updates.diffs.header.seq, _x.updates.diffs.header.stamp.secs, _x.updates.diffs.header.stamp.nsecs))
        _x = self.updates.diffs.header.frame_id
        length = len(_x)
        if python3 or type(_x) == unicode:
          _x = _x.encode('utf-8')
          length = len(_x)
        if python3:
          buff.write(struct.pack('<I%sB'%length, length, *_x))
        else:
          buff.write(struct.pack('<I%ss'%length, length, _x))
        _x = self.updates.diffs.id.uuid
        # - if encoded as a list instead, serialize as bytes instead of string
        if type(_x) in [list, tuple]:
          buff.write(_struct_16B.pack(*_x))
        else:
          buff.write(_struct_16s.pack(_x))
        _x = self
        buff.write(_struct_6d.pack(_x.updates.diffs.bounds.min_pt.latitude, _x.updates.diffs.bounds.min_pt.longitude, _x.updates.diffs.bounds.min_pt.altitude, _x.updates.diffs.bounds.max_pt.latitude, _x.updates.diffs.bounds.max_pt.longitude, _x.updates.diffs.bounds.max_pt.altitude))
        length = len(self.updates.diffs.points)
        buff.write(_struct_I.pack(length))
        for val1 in self.updates.diffs.points:
          _v7 = val1.id
          _x = _v7.uuid
          # - if encoded as a list instead, serialize as bytes instead of string
          if type(_x) in [list, tuple]:
            buff.write(_struct_16B.pack(*_x))
          else:
            buff.write(_struct_16s.pack(_x))
          _v8 = val1.position
          _x = _v8
          buff.write(_struct_3d.pack(_x.latitude, _x.longitude, _x.altitude))
          length = len(val1.props)
          buff.write(_struct_I.pack(length))
          for val2 in val1.props:
            _x = val2.key
            length = len(_x)
            if python3 or type(_x) == unicode:
              _x = _x.encode('utf-8')
              length = len(_x)
            if python3:
              buff.write(struct.pack('<I%sB'%length, length, *_x))
            else:
              buff.write(struct.pack('<I%ss'%length, length, _x))
            _x = val2.value
            length = len(_x)
            if python3 or type(_x) == unicode:
              _x = _x.encode('utf-8')
              length = len(_x)
            if python3:
              buff.write(struct.pack('<I%sB'%length, length, *_x))
            else:
              buff.write(struct.pack('<I%ss'%length, length, _x))
        length = len(self.updates.diffs.features)
        buff.write(_struct_I.pack(length))
        for val1 in self.updates.diffs.features:
          _v9 = val1.id
          _x = _v9.uuid
          # - if encoded as a list instead, serialize as bytes instead of string
          if type(_x) in [list, tuple]:
            buff.write(_struct_16B.pack(*_x))
          else:
            buff.write(_struct_16s.pack(_x))
          length = len(val1.components)
          buff.write(_struct_I.pack(length))
          for val2 in val1.components:
            _x = val2.uuid
            # - if encoded as a list instead, serialize as bytes instead of string
            if type(_x) in [list, tuple]:
              buff.write(_struct_16B.pack(*_x))
            else:
              buff.write(_struct_16s.pack(_x))
          length = len(val1.props)
          buff.write(_struct_I.pack(length))
          for val2 in val1.props:
            _x = val2.key
            length = len(_x)
            if python3 or type(_x) == unicode:
              _x = _x.encode('utf-8')
              length = len(_x)
            if python3:
              buff.write(struct.pack('<I%sB'%length, length, *_x))
            else:
              buff.write(struct.pack('<I%ss'%length, length, _x))
            _x = val2.value
            length = len(_x)
            if python3 or type(_x) == unicode:
              _x = _x.encode('utf-8')
              length = len(_x)
            if python3:
              buff.write(struct.pack('<I%sB'%length, length, *_x))
            else:
              buff.write(struct.pack('<I%ss'%length, length, _x))
        length = len(self.updates.diffs.props)
        buff.write(_struct_I.pack(length))
        for val1 in self.updates.diffs.props:
          _x = val1.key
          length = len(_x)
          if python3 or type(_x) == unicode:
            _x = _x.encode('utf-8')
            length = len(_x)
          if python3:
            buff.write(struct.pack('<I%sB'%length, length, *_x))
          else:
            buff.write(struct.pack('<I%ss'%length, length, _x))
          _x = val1.value
          length = len(_x)
          if python3 or type(_x) == unicode:
            _x = _x.encode('utf-8')
            length = len(_x)
          if python3:
            buff.write(struct.pack('<I%sB'%length, length, *_x))
          else:
            buff.write(struct.pack('<I%ss'%length, length, _x))
        length = len(self.updates.deletes)
        buff.write(_struct_I.pack(length))
        for val1 in self.updates.deletes:
          _x = val1.uuid
          # - if encoded as a list instead, serialize as bytes instead of string
          if type(_x) in [list, tuple]:
            buff.write(_struct_16B.pack(*_x))
          else:
            buff.write(_struct_16s.pack(_x))
      except struct.error as se: self._check_types(struct.error("%s: '%s' when writing '%s'" % (type(se), str(se), str(_x))))
      except TypeError as te: self._check_types(ValueError("%s: '%s' when writing '%s'" % (type(te), str(te), str(_x))))
function_tokens: def serialize_numpy ( self , buff , numpy ) : try : _x = self buff . write ( _struct_3I . pack ( _x . updates . header . seq , _x . updates . header . stamp . secs , _x . updates . header . stamp . nsecs ) ) _x = self . updates . header . frame_id length = len ( _x ) if python3 or type ( _x ) == unicode : _x = _x . encode ( 'utf-8' ) length = len ( _x ) if python3 : buff . write ( struct . pack ( '<I%sB' % length , length , * _x ) ) else : buff . write ( struct . pack ( '<I%ss' % length , length , _x ) ) _x = self buff . write ( _struct_3I . pack ( _x . updates . diffs . header . seq , _x . updates . diffs . header . stamp . secs , _x . updates . diffs . header . stamp . nsecs ) ) _x = self . updates . diffs . header . frame_id length = len ( _x ) if python3 or type ( _x ) == unicode : _x = _x . encode ( 'utf-8' ) length = len ( _x ) if python3 : buff . write ( struct . pack ( '<I%sB' % length , length , * _x ) ) else : buff . write ( struct . pack ( '<I%ss' % length , length , _x ) ) _x = self . updates . diffs . id . uuid # - if encoded as a list instead, serialize as bytes instead of string if type ( _x ) in [ list , tuple ] : buff . write ( _struct_16B . pack ( * _x ) ) else : buff . write ( _struct_16s . pack ( _x ) ) _x = self buff . write ( _struct_6d . pack ( _x . updates . diffs . bounds . min_pt . latitude , _x . updates . diffs . bounds . min_pt . longitude , _x . updates . diffs . bounds . min_pt . altitude , _x . updates . diffs . bounds . max_pt . latitude , _x . updates . diffs . bounds . max_pt . longitude , _x . updates . diffs . bounds . max_pt . altitude ) ) length = len ( self . updates . diffs . points ) buff . write ( _struct_I . pack ( length ) ) for val1 in self . updates . diffs . points : _v7 = val1 . id _x = _v7 . uuid # - if encoded as a list instead, serialize as bytes instead of string if type ( _x ) in [ list , tuple ] : buff . write ( _struct_16B . pack ( * _x ) ) else : buff . write ( _struct_16s . pack ( _x ) ) _v8 = val1 . position _x = _v8 buff . write ( _struct_3d . pack ( _x . latitude , _x . longitude , _x . altitude ) ) length = len ( val1 . props ) buff . write ( _struct_I . pack ( length ) ) for val2 in val1 . props : _x = val2 . key length = len ( _x ) if python3 or type ( _x ) == unicode : _x = _x . encode ( 'utf-8' ) length = len ( _x ) if python3 : buff . write ( struct . pack ( '<I%sB' % length , length , * _x ) ) else : buff . write ( struct . pack ( '<I%ss' % length , length , _x ) ) _x = val2 . value length = len ( _x ) if python3 or type ( _x ) == unicode : _x = _x . encode ( 'utf-8' ) length = len ( _x ) if python3 : buff . write ( struct . pack ( '<I%sB' % length , length , * _x ) ) else : buff . write ( struct . pack ( '<I%ss' % length , length , _x ) ) length = len ( self . updates . diffs . features ) buff . write ( _struct_I . pack ( length ) ) for val1 in self . updates . diffs . features : _v9 = val1 . id _x = _v9 . uuid # - if encoded as a list instead, serialize as bytes instead of string if type ( _x ) in [ list , tuple ] : buff . write ( _struct_16B . pack ( * _x ) ) else : buff . write ( _struct_16s . pack ( _x ) ) length = len ( val1 . components ) buff . write ( _struct_I . pack ( length ) ) for val2 in val1 . components : _x = val2 . uuid # - if encoded as a list instead, serialize as bytes instead of string if type ( _x ) in [ list , tuple ] : buff . write ( _struct_16B . pack ( * _x ) ) else : buff . write ( _struct_16s . pack ( _x ) ) length = len ( val1 . props ) buff . write ( _struct_I . pack ( length ) ) for val2 in val1 . props : _x = val2 . key length = len ( _x ) if python3 or type ( _x ) == unicode : _x = _x . encode ( 'utf-8' ) length = len ( _x ) if python3 : buff . write ( struct . pack ( '<I%sB' % length , length , * _x ) ) else : buff . write ( struct . pack ( '<I%ss' % length , length , _x ) ) _x = val2 . value length = len ( _x ) if python3 or type ( _x ) == unicode : _x = _x . encode ( 'utf-8' ) length = len ( _x ) if python3 : buff . write ( struct . pack ( '<I%sB' % length , length , * _x ) ) else : buff . write ( struct . pack ( '<I%ss' % length , length , _x ) ) length = len ( self . updates . diffs . props ) buff . write ( _struct_I . pack ( length ) ) for val1 in self . updates . diffs . props : _x = val1 . key length = len ( _x ) if python3 or type ( _x ) == unicode : _x = _x . encode ( 'utf-8' ) length = len ( _x ) if python3 : buff . write ( struct . pack ( '<I%sB' % length , length , * _x ) ) else : buff . write ( struct . pack ( '<I%ss' % length , length , _x ) ) _x = val1 . value length = len ( _x ) if python3 or type ( _x ) == unicode : _x = _x . encode ( 'utf-8' ) length = len ( _x ) if python3 : buff . write ( struct . pack ( '<I%sB' % length , length , * _x ) ) else : buff . write ( struct . pack ( '<I%ss' % length , length , _x ) ) length = len ( self . updates . deletes ) buff . write ( _struct_I . pack ( length ) ) for val1 in self . updates . deletes : _x = val1 . uuid # - if encoded as a list instead, serialize as bytes instead of string if type ( _x ) in [ list , tuple ] : buff . write ( _struct_16B . pack ( * _x ) ) else : buff . write ( _struct_16s . pack ( _x ) ) except struct . error as se : self . _check_types ( struct . error ( "%s: '%s' when writing '%s'" % ( type ( se ) , str ( se ) , str ( _x ) ) ) ) except TypeError as te : self . _check_types ( ValueError ( "%s: '%s' when writing '%s'" % ( type ( te ) , str ( te ) , str ( _x ) ) ) )