Template Function mavros::ftf::quaternion_to_mavlink
Defined in File frame_tf.hpp
Function Documentation
-
template<typename _Scalar, std::enable_if_t<std::is_floating_point<_Scalar>::value, bool> = true>
inline void mavros::ftf::quaternion_to_mavlink(const Eigen::Quaternion<_Scalar> &q, std::array<float, 4> &qmsg) Store Quaternion to MAVLink float[4] format.
MAVLink uses wxyz order, wile Eigen::Quaterniond uses xyzw internal order, so it can’t be stored to array using Eigen::Map.