19 #ifndef FF_UTIL_CONVERSION_H_
20 #define FF_UTIL_CONVERSION_H_
22 #include <tf2_geometry_msgs/tf2_geometry_msgs.h>
23 #include <geometry_msgs/Quaternion.h>
24 #include <geometry_msgs/Vector3.h>
25 #include <geometry_msgs/Point.h>
31 static void Convert(
const geometry_msgs::Point &in, tf2::Vector3 &out) {
32 out = tf2::Vector3(in.x, in.y, in.z);
34 static void Convert(
const geometry_msgs::Vector3 &in, tf2::Vector3 &out) {
35 out = tf2::Vector3(in.x, in.y, in.z);
37 static void Convert(
const geometry_msgs::Quaternion &in, tf2::Quaternion &out) {
38 out = tf2::Quaternion(in.x, in.y, in.z, in.w);
40 static void Convert(
const tf2::Vector3 &in, geometry_msgs::Point &out) {
45 static void Convert(
const tf2::Vector3 &in, geometry_msgs::Vector3 &out) {
50 static void Convert(
const tf2::Quaternion &in, geometry_msgs::Quaternion &out) {
60 #endif // FF_UTIL_CONVERSION_H_