Function tf2::fromMsg(const geometry_msgs::msg::Quaternion&, Eigen::Quaterniond&)

Function Documentation

inline void tf2::fromMsg(const geometry_msgs::msg::Quaternion &msg, Eigen::Quaterniond &out)

Convert a Quaternion message type to a Eigen-specific Quaterniond type. This function is a specialization of the fromMsg template defined in tf2/convert.h.

Parameters:
  • msg – The Quaternion message to convert.

  • out – The quaternion converted to a Eigen Quaterniond.