Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with Transformation constructor #17

Open
pomerlef opened this issue Aug 19, 2016 · 1 comment
Open

Problem with Transformation constructor #17

pomerlef opened this issue Aug 19, 2016 · 1 comment

Comments

@pomerlef
Copy link
Contributor

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);
@pomerlef
Copy link
Contributor Author

A temporary workaround is to force the constructor using vector by doing:

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

The function tran2vec transform the 4x4 to a 6x1, which seems to be better accepted by the constructor.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant