Function tf2::toMsg(const tf2::Stamped<tf2::Transform>&)

Function Documentation

inline geometry_msgs::msg::TransformStamped tf2::toMsg(const tf2::Stamped<tf2::Transform> &in)

Convert as stamped tf2 Transform type to its equivalent geometry_msgs representation. This function is a specialization of the toMsg template defined in tf2/convert.h.

Parameters:

in – An instance of the tf2::Transform specialization of the tf2::Stamped template.

Returns:

The TransformStamped converted to a geometry_msgs TransformStamped message type.