Template Function tf2::toMsg

Function Documentation

template<typename A, typename B>
B tf2::toMsg(const A &a)

Function that converts from one type to a ROS message type. It has to be implemented by each data type in tf2_* (except ROS messages) as it is used in the “convert” function.

Parameters:

a – an object of whatever type

Returns:

the conversion as a ROS message