Skip to content

Problem with Transformation constructor #17

Description

@pomerlef

Not sure if it's wanted, but:

lgmath::se3::Transformation test2(Eigen::Matrix4d::Identity());

won't compile and yield:

home/frank/research/code/lgmath/tests/TransformTests.cpp:59:66: error: call of overloaded ‘Transformation(const IdentityReturnType)’ is ambiguous
     lgmath::se3::Transformation test2(Eigen::Matrix4d::Identity());
                                                                  ^
/home/frank/research/code/lgmath/tests/TransformTests.cpp:59:66: note: candidates are:
In file included from /home/frank/research/code/lgmath/tests/TransformTests.cpp:20:0:
/home/frank/research/code/lgmath/include/lgmath/se3/Transformation.hpp:73:12: note: lgmath::se3::Transformation::Transformation(const VectorXd&)
   explicit Transformation(const Eigen::VectorXd& xi_ab);
            ^
/home/frank/research/code/lgmath/include/lgmath/se3/Transformation.hpp:67:3: note: lgmath::se3::Transformation::Transformation(const Eigen::Matrix<double, 6, 1>&, unsigned int)
   Transformation(const Eigen::Matrix<double,6,1>& xi_ab, unsigned int numTerms = 0);
   ^
/home/frank/research/code/lgmath/include/lgmath/se3/Transformation.hpp:57:12: note: lgmath::se3::Transformation::Transformation(const Matrix4d&)
   explicit Transformation(const Eigen::Matrix4d& T);

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions