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

Define ambiguous of "Vector" #45

Open
Shawn-Tao opened this issue Jul 17, 2024 · 2 comments
Open

Define ambiguous of "Vector" #45

Shawn-Tao opened this issue Jul 17, 2024 · 2 comments

Comments

@Shawn-Tao
Copy link

ENV: ubuntu 22.04 | ros-humble | Eigen 3.4 | gtsam 4.2 from source(using system eigen)

In "gtsam 4.2", the author define in "Vector.h" as below:

38 typedef Eigen::VectorXd Vector;

which comflicted with the define in Eigen3.4-Eigen/src/core/Matrix.h

551 using Vector = Matrix<Type, Size, 1>;

This problem lead to a compile issues in "mapOptmization.cpp" - 1397 and 1401.
Change the Vector to Eigen::VectorXd can fix it

image

@Jcs0213
Copy link

Jcs0213 commented Nov 25, 2024

You can edit mapOptmization.cpp 1397 and 1401,change "Vector(6)" to "gtsam::Vector(6)"

@Shawn-Tao
Copy link
Author

You can edit mapOptmization.cpp 1397 and 1401,change "Vector(6)" to "gtsam::Vector(6)"

Got it! Thanks!

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

2 participants