Function as2::frame::transform(const geometry_msgs::msg::Quaternion&, const Eigen::Vector3d&)

Function Documentation

Eigen::Vector3d as2::frame::transform(const geometry_msgs::msg::Quaternion &quaternion, const Eigen::Vector3d &vector)

Apply a quaternion rotation to a vector.

Parameters:
  • quaternion – geometry_msgs::Quaternion to apply.

  • vector – Eigen::Vector3d Vector to rotate.

Returns:

Returns:

Eigen::Vector3d Rotated vector.