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

‘Vector’ in namespace ‘Eigen’ does not name a template type; did you mean ‘VectorXd’? #1

Open
YuanwenFu opened this issue Nov 5, 2024 · 1 comment

Comments

@YuanwenFu
Copy link

YuanwenFu commented Nov 5, 2024

Ubuntu18.04
When I execute the following command,

mkdir build
cd build
cmake ..
make

something went wrong. The error information is as follows.

In file included from /home/fyw/similarity-transformation/similarity-transformation-main/tests/test.cc:2:
/home/fyw/similarity-transformation/similarity-transformation-main/similarity_transformation.h:12:23: error: ‘Vector’ in namespace ‘Eigen’ does not name a template type; did you mean ‘VectorXd’?
   12 |   using VecN = Eigen::Vector<double, DimN>;
      |                       ^~~~~~
      |                       VectorXd
/home/fyw/similarity-transformation/similarity-transformation-main/similarity_transformation.h:13:23: error: ‘Vector’ in namespace ‘Eigen’ does not name a template type; did you mean ‘VectorXd’?
   13 |   using VecM = Eigen::Vector<double, DimM>;
      |                       ^~~~~~
      |                       VectorXd
/home/fyw/similarity-transformation/similarity-transformation-main/similarity_transformation.h:49:27: error: ‘VecN’ does not name a type; did you mean ‘Vec3’?
   49 |     State operator+(const VecN& rhs) const {
      |                           ^~~~
      |                           Vec3
@YuanwenFu
Copy link
Author

YuanwenFu commented Nov 5, 2024

I changed the code from

  using VecN = Eigen::Vector<double, DimN>;
  using VecM = Eigen::Vector<double, DimM>;

to

  using VecN = Eigen::Matrix<double, DimN, 1>;
  using VecM = Eigen::Matrix<double, DimM, 1>;

Then the make instruction executes successfully!

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