Function tf2::toMsg(const tf2::Quaternion&)

Function Documentation

inline geometry_msgs::msg::Quaternion tf2::toMsg(const tf2::Quaternion &in)

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

Quaternion

Parameters:

in – A tf2 Quaternion object.

Returns:

The Quaternion converted to a geometry_msgs message type.