-
Notifications
You must be signed in to change notification settings - Fork 480
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
I build this on Ubuntu20.04 ROS noetic, and get error... #39
Comments
Maybe you need to compile with the correct version like 2.0.0 of Ceres-solver. |
I have installed Ceres2.0.0 when build cartographer, but it was in the workspace of cartographer, does it matter? |
Yes, in your case the compiler will only compile There are 2 ways to solve this problem:
$ sudo updatedb
$ locate CeresConfig.cmake Find the installation path for Ceres-Solver 2.0, like ...
find_package(OpenCV REQUIRED)
# HACK add here
# HACK begin
set(Ceres_DIR "/home/robot/Libraries/Install/Ceres/2.0.0/lib/cmake/Ceres/CeresConfig.cmake")
# HACK end
find_package(Ceres REQUIRED)
find_package(Eigen3 REQUIRED) Be sure clean folders |
Hi,I meet the same problem but the error still exits after I follow your second way to solve the problem: |
error: no type named ‘Parameters’ in ‘class ceres::internal::ParameterDims<false, 5>’
315 | using Parameters = typename ParameterDims::Parameters;
| ^~~~~~~~~~
/home/slam/cartographer_ws/install_isolated/include/ceres/internal/autodiff.h:348:47: error: no type named ‘Parameters’ in ‘class ceres::internal::ParameterDims<false, 5>’
348 | Make1stOrderPerturbations::Apply(parameters,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
349 | parameters_as_jets.data());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/slam/cartographer_ws/install_isolated/include/ceres/internal/autodiff.h:357:39: error: no type named ‘Parameters’ in ‘class ceres::internal::ParameterDims<false, 5>’
357 | Take1stOrderParts::Apply(
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
358 | num_outputs, residuals_as_jets.data(), jacobians);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The text was updated successfully, but these errors were encountered: