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

Function Documentation

inline geometry_msgs::msg::QuaternionStamped tf2::toMsg(const tf2::Stamped<tf2::Quaternion> &in)

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

Parameters:

in – A instance of the tf2::Quaternion specialization of the tf2::Stamped template.

Returns:

The QuaternionStamped converted to a geometry_msgs QuaternionStamped message type.