ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

This compiles:

#include <tf/transform_datatypes.h>

tf::Quaternion a, b, c;
c = b * a.inverse();

I assume it will do what you're asking for, but you should double-check that.

Try using tf::Quaterion. You need to include the following line in the manifest.xml file of your pacakge:

<depend package="tf"/>

This compiles:should compile:

#include <tf/transform_datatypes.h>

tf::Quaternion a, b, c;
c = b * a.inverse();

I assume it will do what you're asking for, but you should double-check that.