ankitdhall / lidar_camera_calibration

ROS package to find a rigid-body transformation between a LiDAR and a camera for "LiDAR-Camera Calibration using 3D-3D Point correspondences"
http://arxiv.org/abs/1705.09785
GNU General Public License v3.0
1.52k stars 461 forks source link

Fatal error: lidar_camera_calibration/marker_6dof.h: No such file or directory #104

Closed NoRomantic closed 5 years ago

NoRomantic commented 5 years ago

When I run the commond 'catkin_make -DCATKIN_WHITELIST_PACKAGES="aruco_mapping;lidar_camera_calibration" ' as README said, the following error occured. What should I do, please?

home/.../calibrate_ws/src/lidar_camera_calibration/src/find_velodyne_points.cpp:34:50: fatal error: lidar_camera_calibration/marker_6dof.h: No such file or directory compilation terminated. lidar_camera_calibration/CMakeFiles/find_transform.dir/build.make:62: recipe for target 'lidar_camera_calibration/CMakeFiles/find_transform.dir/src/find_velodyne_points.o' failed make[2]: *** [lidar_camera_calibration/CMakeFiles/find_transform.dir/src/find_velodyne_points.o] Error 1 make[2]: *** Waiting for unfinished jobs.... CMakeFiles/Makefile2:518: recipe for target 'lidar_camera_calibration/CMakeFiles/find_transform.dir/all' failed make[1]: *** [lidar_camera_calibration/CMakeFiles/find_transform.dir/all] Error 2 Makefile:138: recipe for target 'all' failed make: *** [all] Error 2 Invoking "make -j4 -l4" failed

NoRomantic commented 5 years ago

After three days of google and baidu, I finally make it build with no error. The key problem here is that the recommended build commads catkin_make -DCATKIN_WHITELIST_PACKAGES="aruco_mapping;lidar_camera_calibration went wrong, because before building aruco_mapping you must build lidar_camera_calibration first(but still, aruco_ros should be built before lidar_camera_calibration). So the right build order is aruco_ros, lidar_camera_calibration, and last the aruco_mapping.

================================================================================================= UPDATE: This is the second time I use this package, thanks for this open-source project. I decide to write a post to record how I successfully build this project.

  1. clone this pakcage cd ~/catkin_ws/src && git clone https://github.com/ankitdhall/lidar_camera_calibration.git

  2. copy two directories "aruco_ros" and "aruco_mapping" in directory "dependencies" to directory "~/catkin_ws/src" cp ~/catkin_ws/src/lidar_camera_calibration/dependencies/aruco_ros ~/catkin_ws/src/lidar_camera_calibration dependencies/aruco_mapping ~/catkin_ws/src

  3. change CMakeLists.txt file in aruco_mapping package, add this code to line 18 set(CMAKE_CXX_FLAGS "-std=c++11 ${CMAKE_CXX_FLAGS}") to support c++ 11.

  4. build aruco_ros, lidar_camera_calibration, aruco_mapping. Note that you must build these packages in this order. catkin_make -DCATKIN_WHITELIST_PACKAGES="aruco;aruco_msgs;aruco_ros" catkin_make -DCATKIN_WHITELIST_PACKAGES="lidar_camera_calibration" catkin_make -DCATKIN_WHITELIST_PACKAGES="aruco_mapping"

Wish this post may help you. Thanks.

ankitdhall commented 5 years ago

@karnikram suggested adding that to the README.md. Maybe he can be of help with that one? @karnikram