ethz-asl / hand_eye_calibration

Python tools to perform time-synchronization and hand-eye calibration.
BSD 3-Clause "New" or "Revised" License
429 stars 115 forks source link

catkin build error: aslam optimizer/sparse_block_matrix #102

Open rohun-kulkarni opened 3 years ago

rohun-kulkarni commented 3 years ago

Hello,

I've been unable to install on an Ubuntu 16.04 / ROS Kinetic. I think the issue is with the suiteparse and aslam optimizer dependency.

Running catkin build hand_eye_calibration hand_eye_calibration_target_extractor hand_eye_calibration_batch_estimation results in the following error: cholmod.h: No such file or directory

When I searched for the error, this PR came up which appears to fix the issue. Would appreciate any assistance you can offer.

Thanks!

Error message:

Errors     << sparse_block_matrix:make /home/robot/catkin_ws/logs/sparse_block_matrix/build.make.001.log
In file included from /home/robot/catkin_ws/src/aslam_optimizer/sparse_block_matrix/src/sparse_helper.cpp:1:0:
/home/robot/catkin_ws/src/aslam_optimizer/sparse_block_matrix/include/sparse_block_matrix/sparse_helper.h:27:21: fatal error: cholmod.h: No such file or directory
compilation terminated.
make[2]: *** [CMakeFiles/sparse_block_matrix.dir/src/sparse_helper.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from /home/robot/catkin_ws/src/aslam_optimizer/sparse_block_matrix/include/sparse_block_matrix/sparse_block_matrix.h:30:0,
                 from /home/robot/catkin_ws/src/aslam_optimizer/sparse_block_matrix/include/sparse_block_matrix/marginal_covariance_cholesky.h:21,
                 from /home/robot/catkin_ws/src/aslam_optimizer/sparse_block_matrix/src/marginal_covariance_cholesky.cpp:17:
/home/robot/catkin_ws/src/aslam_optimizer/sparse_block_matrix/include/sparse_block_matrix/sparse_helper.h:27:21: fatal error: cholmod.h: No such file or directory
compilation terminated.
make[2]: *** [CMakeFiles/sparse_block_matrix.dir/src/marginal_covariance_cholesky.cpp.o] Error 1
make[1]: *** [CMakeFiles/sparse_block_matrix.dir/all] Error 2
make: *** [all] Error 2
specarmi commented 2 years ago

Were you able to get past this issue? I'm having the same problem

fishmarch commented 2 years ago

I managed to compile it by adding the following into sparse_block_matrix/package.xml. Hope it works for you.

suitesparse suitesparse