1 #ifndef GEOLIB_ROS_TF2_CONVERSIONS_H_
2 #define GEOLIB_ROS_TF2_CONVERSIONS_H_
6 #include <tf2/LinearMath/Matrix3x3.h>
7 #include <tf2/LinearMath/Quaternion.h>
8 #include <tf2/LinearMath/Transform.h>
9 #include <tf2/LinearMath/Vector3.h>
16 tf.setValue(v.
x, v.
y, v.
z);
20 tf.setValue(q.
x, q.
y, q.
z, q.
w);
28 convert(
t.getOrigin(), tf.getOrigin());
29 convert(
t.getBasis(), tf.getBasis());
35 v.
x = tf.getX(); v.
y = tf.getY(); v.
z = tf.getZ();
39 q.
x = tf.getX(); q.
y = tf.getY(); q.
z = tf.getZ(); q.
w = tf.getW();
44 tf[1][0], tf[1][1], tf[1][2],
45 tf[2][0], tf[2][1], tf[2][2]);