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

Issue with Ceres Solver functions #4

Open
sushrutsurve opened this issue Jun 28, 2023 · 0 comments
Open

Issue with Ceres Solver functions #4

sushrutsurve opened this issue Jun 28, 2023 · 0 comments

Comments

@sushrutsurve
Copy link

sushrutsurve commented Jun 28, 2023

Hi !

I have been trying to compile this project. In this process, I am getting an error while compiling the pnec_ceres and nec_seres code. Some ceres functions are not recognized and hence the compile fails. I am using the ceres 1.13.0 version (as mentioned in the docker file) and Ubuntu 18.04.5. I made sure that ceres is correctly installed by running make test as mentioned in the ceres installation directions. The following is the output of my terminal.

(base) sush@lisc-redbarn-desktop:/data/dnls_covs/pnec/build$ make
[ 42%] Built target opengv
[ 57%] Built target rosbag
[ 64%] Built target apriltag
[ 78%] Built target basalt
Consolidate compiler generated dependencies of target pnec
[ 78%] Building CXX object CMakeFiles/pnec.dir/src/optimization/nec_ceres.cc.o
/data/dnls_covs/pnec/src/optimization/nec_ceres.cc:90:10: error: no type named 'Manifold' in namespace 'ceres'
  ceres::Manifold *quaternion_manifold = new ceres::EigenQuaternionManifold;
  ~~~~~~~^
/data/dnls_covs/pnec/src/optimization/nec_ceres.cc:90:53: error: no type named 'EigenQuaternionManifold' in namespace 'ceres'
  ceres::Manifold *quaternion_manifold = new ceres::EigenQuaternionManifold;
                                             ~~~~~~~^
/data/dnls_covs/pnec/src/optimization/nec_ceres.cc:93:11: error: no member named 'SetManifold' in 'ceres::Problem'
  problem.SetManifold(orientation_.coeffs().data(), quaternion_manifold);
  ~~~~~~~ ^
3 errors generated.
CMakeFiles/pnec.dir/build.make:285: recipe for target 'CMakeFiles/pnec.dir/src/optimization/nec_ceres.cc.o' failed
make[2]: *** [CMakeFiles/pnec.dir/src/optimization/nec_ceres.cc.o] Error 1
CMakeFiles/Makefile2:710: recipe for target 'CMakeFiles/pnec.dir/all' failed
make[1]: *** [CMakeFiles/pnec.dir/all] Error 2
Makefile:165: recipe for target 'all' failed
make: *** [all] Error 2

Any help or guidance will be greatly appreciated.

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