Specialized Template Function tf2::doTransform(const Eigen::Affine3d&, Eigen::Affine3d&, const geometry_msgs::msg::TransformStamped&)

Function Documentation

template<>
inline void tf2::doTransform(const Eigen::Affine3d &t_in, Eigen::Affine3d &t_out, const geometry_msgs::msg::TransformStamped &transform)

Apply a geometry_msgs Transform to an Eigen Affine3d transform. This function is a specialization of the doTransform template defined in tf2/convert.h, although it can not be used in tf2_ros::BufferInterface::transform because this function relies on the existence of a time stamp and a frame id in the type which should get transformed.

Parameters:
  • t_in – The frame to transform, as a Eigen Affine3d transform.

  • t_out – The transformed frame, as a Eigen Affine3d transform.

  • transform – The timestamped transform to apply, as a TransformStamped message.