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

Error in catkin_make #33

Open
rocker12121 opened this issue Mar 15, 2024 · 0 comments
Open

Error in catkin_make #33

rocker12121 opened this issue Mar 15, 2024 · 0 comments

Comments

@rocker12121
Copy link

Hello. I have installed gtsam and when i catkin_make this repository after installing the requirements, I get the following error. Please let me know how to solve this:

error: no matching function for call to ‘gtsam::PreintegratedImuMeasurements::PreintegratedImuMeasurements(boost::shared_ptrgtsam::PreintegrationParams&, gtsam::imuBias::ConstantBias&)’
226 | _ = new gtsam::PreintegratedImuMeasurements(p, prior_imu_bias); // setting up the IMU integration for optimization

| ^

In file included from /home/e/catkin_ws_liosam/src/SC-LIO-SAM/SC-LIO-SAM/src/imuPreintegration.cpp:8:
/usr/local/include/gtsam/navigation/ImuFactor.h:105:3: note: candidate: ‘gtsam::PreintegratedImuMeasurements::PreintegratedImuMeasurements(const PreintegrationType&, const Matrix9&)’
105 | PreintegratedImuMeasurements(const PreintegrationType& base, const Matrix9& preintMeasCov)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/gtsam/navigation/ImuFactor.h:105:58: note: no known conversion for argument 1 from ‘boost::shared_ptrgtsam::PreintegrationParams’ to ‘const PreintegrationType&’ {aka ‘const gtsam::TangentPreintegration&’}
105 | PreintegratedImuMeasurements(const PreintegrationType& base, const Matrix9& preintMeasCov)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
/usr/local/include/gtsam/navigation/ImuFactor.h:94:3: note: candidate: ‘gtsam::PreintegratedImuMeasurements::PreintegratedImuMeasurements(const std::shared_ptrgtsam::PreintegrationParams&, const gtsam::imuBias::ConstantBias&)’
94 | PreintegratedImuMeasurements(const std::shared_ptr& p,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/gtsam/navigation/ImuFactor.h:94:77: note: no known conversion for argument 1 from ‘boost::shared_ptrgtsam::PreintegrationParams’ to ‘const std::shared_ptrgtsam::PreintegrationParams&’
94 | PreintegratedImuMeasurements(const std::shared_ptr& p,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
/usr/local/include/gtsam/navigation/ImuFactor.h:85:3: note: candidate: ‘gtsam::PreintegratedImuMeasurements::PreintegratedImuMeasurements()’
85 | PreintegratedImuMeasurements() {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/gtsam/navigation/ImuFactor.h:85:3: note: candidate expects 0 arguments, 2 provided
/usr/local/include/gtsam/navigation/ImuFactor.h:72:20: note: candidate: ‘gtsam::PreintegratedImuMeasurements::PreintegratedImuMeasurements(const gtsam::PreintegratedImuMeasurements&)’
72 | class GTSAM_EXPORT PreintegratedImuMeasurements: public PreintegrationType {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/gtsam/navigation/ImuFactor.h:72:20: note: candidate expects 1 argument, 2 provided
/home/e/catkin_ws_liosam/src/SC-LIO-SAM/SC-LIO-SAM/src/mapOptmization.cpp: In constructor ‘mapOptimization::mapOptimization()’:
/home/e/catkin_ws_liosam/src/SC-LIO-SAM/SC-LIO-SAM/src/mapOptmization.cpp:254:13: warning: variable ‘unused’ set but not used [-Wunused-but-set-variable]
254 | int unused = system((std::string("exec rm -r ") + savePCDDirectory).c_str());
| ^~~~~~
/home/e/catkin_ws_liosam/src/SC-LIO-SAM/SC-LIO-SAM/src/mapOptmization.cpp: In member function ‘void mapOptimization::performSCLoopClosure()’:
/home/e/catkin_ws_liosam/src/SC-LIO-SAM/SC-LIO-SAM/src/mapOptmization.cpp:707:15: warning: unused variable ‘yawDiffRad’ [-Wunused-variable]
707 | float yawDiffRad = detectResult.second; // not use for v1 (because pcl icp withi initial somthing wrong...)
| ^~~~~~~~~~
make[2]: *** [SC-LIO-SAM/SC-LIO-SAM/CMakeFiles/lio_sam_imuPreintegration.dir/build.make:63: SC-LIO-SAM/SC-LIO-SAM/CMakeFiles/lio_sam_imuPreintegration.dir/src/imuPreintegration.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:789: SC-LIO-SAM/SC-LIO-SAM/CMakeFiles/lio_sam_imuPreintegration.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 75%] Linking CXX executable /home/e/catkin_ws_liosam/devel/lib/lio_sam/lio_sam_featureExtraction
[ 75%] Built target lio_sam_featureExtraction
[ 81%] Linking CXX executable /home/e/catkin_ws_liosam/devel/lib/lio_sam/lio_sam_imageProjection
[ 81%] Built target lio_sam_imageProjection
[ 87%] Linking CXX executable /home/e/catkin_ws_liosam/devel/lib/lio_sam/lio_sam_mapOptmization
[ 93%] Built target lio_sam_mapOptmization
make: *** [Makefile:141: all] Error 2
Invoking "make -j8 -l8" failed

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