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

missing header file causing" plotTrajectory.cpp:13:28: error: ‘Isometry3d’ was not declared in this scope" #314

Open
zylinux opened this issue Aug 9, 2024 · 0 comments

Comments

@zylinux
Copy link

zylinux commented Aug 9, 2024

mzhang@mzhang-XPS-9320:~/home_work/SLAM/slambook2/ch3/build$ make
[ 10%] Building CXX object useEigen/CMakeFiles/eigenMatrix.dir/eigenMatrix.cpp.o
[ 20%] Linking CXX executable eigenMatrix
[ 20%] Built target eigenMatrix
[ 30%] Building CXX object useGeometry/CMakeFiles/eigenGeometry.dir/eigenGeometry.cpp.o
[ 40%] Linking CXX executable eigenGeometry
[ 40%] Built target eigenGeometry
[ 50%] Building CXX object visualizeGeometry/CMakeFiles/visualizeGeometry.dir/visualizeGeometry.cpp.o
[ 60%] Linking CXX executable visualizeGeometry
[ 60%] Built target visualizeGeometry
[ 70%] Building CXX object examples/CMakeFiles/coordinateTransform.dir/coordinateTransform.cpp.o
[ 80%] Linking CXX executable coordinateTransform
[ 80%] Built target coordinateTransform
[ 90%] Building CXX object examples/CMakeFiles/plotTrajectory.dir/plotTrajectory.cpp.o
/home/mzhang/home_work/SLAM/slambook2/ch3/examples/plotTrajectory.cpp:13:28: error: ‘Isometry3d’ was not declared in this scope
13 | void DrawTrajectory(vector<Isometry3d, Eigen::aligned_allocator>);
| ^~~~~~~~~~
/home/mzhang/home_work/SLAM/slambook2/ch3/examples/plotTrajectory.cpp:13:65: error: ‘Isometry3d’ was not declared in this scope
13 | void DrawTrajectory(vector<Isometry3d, Eigen::aligned_allocator>);
| ^~~~~~~~~~
/home/mzhang/home_work/SLAM/slambook2/ch3/examples/plotTrajectory.cpp:13:65: error: template argument 1 is invalid
/home/mzhang/home_work/SLAM/slambook2/ch3/examples/plotTrajectory.cpp:13:75: error: template argument 1 is invalid

FIX is :
In order to solve this , please add a line "#include <Eigen/Geometry>" into plotTrajectory.cpp. you should be good.

looks like I don't have permission to create remote branch and do the PR. anyway. Hope this could help someone. There was another issue might related to this as well.

#308

@gaoxiang12

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