Template Function tf2::convert(const A&, B&)
Defined in File convert.h
Function Documentation
-
template<class A, class B>
void tf2::convert(const A &a, B &b) Function that converts any type to any type (messages or not). Matching toMsg and from Msg conversion functions need to exist. If they don’t exist or do not apply (for example, if your two classes are ROS messages), just write a specialization of the function.
- Parameters:
a – an object to convert from
b – the object to convert to