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.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)
        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_H16d.pack(_x.loop_rate, _x.voltage, _x.orientation.x, _x.orientation.y, _x.orientation.z, _x.orientation.w, _x.angular_velocity.x, _x.angular_velocity.y, _x.angular_velocity.z, _x.linear_acceleration.x, _x.linear_acceleration.y, _x.linear_acceleration.z, _x.pressure_dheight, _x.pressure_height, _x.magnetic_field.x, _x.magnetic_field.y, _x.magnetic_field.z))
        _x = self.radio_channel
        # - if encoded as a list instead, serialize as bytes instead of string
        if type(_x) in [list, tuple]:
          buff.write(_struct_8B.pack(*_x))
        else:
          buff.write(_struct_8s.pack(_x))
        buff.write(_struct_B.pack(self.seq))
      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 . 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 ) 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_H16d . pack ( _x . loop_rate , _x . voltage , _x . orientation . x , _x . orientation . y , _x . orientation . z , _x . orientation . w , _x . angular_velocity . x , _x . angular_velocity . y , _x . angular_velocity . z , _x . linear_acceleration . x , _x . linear_acceleration . y , _x . linear_acceleration . z , _x . pressure_dheight , _x . pressure_height , _x . magnetic_field . x , _x . magnetic_field . y , _x . magnetic_field . z ) ) _x = self . radio_channel # - if encoded as a list instead, serialize as bytes instead of string if type ( _x ) in [ list , tuple ] : buff . write ( _struct_8B . pack ( * _x ) ) else : buff . write ( _struct_8s . pack ( _x ) ) buff . write ( _struct_B . pack ( self . seq ) ) 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 ) ) ) )