0

How can i convert between types in eigen and tf2 ?

Eigen::Transform Tf2ToEigen(const tf2::Transform& in)
{
    eigen::Transform out;
    tf2::convert(in, out);
    return out;
}

tf2::Transform EigenToTf2(const Eigen::Transform& in)
{
    tf2::Transform out;
    tf2::convert(in, out);
    return out;
}

tf2::convert above doesn't seem to work.

Bader
  • 46
  • 3
  • Is this just a typo? Did you try `Eigen` instead of `eigen`? Also provide a [mre], you may be missing some includes. – chtz May 22 '21 at 17:15
  • yep thanks! its just a typo, it tried both but no luck.. – Bader May 22 '21 at 17:22
  • @Bader Which dependencies have you added to your `CMakeLists.txt`? Which headers are you including? – 2b-t May 24 '21 at 17:38

0 Answers0