acfr / cam_lidar_calibration

(ITSC 2021) Optimising the selection of samples for robust lidar camera calibration. This package estimates the calibration parameters from camera to lidar frame.
Apache License 2.0
436 stars 102 forks source link

Error when running the quickstart using Noetic #57

Closed natik-bw closed 2 months ago

natik-bw commented 4 months ago

Interested in reopening issue https://github.com/acfr/cam_lidar_calibration/issues/48#issuecomment-1851148486, as the solution didn't resolve my error.

I was able to successfully build when I replaced `#include <opencv/cv.hpp>' to:

#include <opencv2/core/core.hpp>
#include <opencv2/imgcodecs.hpp>
#include <opencv2/calib3d.hpp>

But then, I still got a runtime error when executing the quick start roslaunch cam_lidar_calibration run_optimiser.launch import_samples:=true

image

logs rosout-1-stdout.log rosout.log roslaunch-netanel-Precision-5560-26735.log master.log

NOTE I don't know if this is correct, but I used the calib_v2 branch, and there cv::reduce(...) under optimiser.cpp here was not commented out (all I had to do was replace CV_REDUCE_SUM by cv::REDUCE_SUM for proper compatibility), so I wasn't sure whether I missed an additional change I had to do. It wasn't clear to me from @YHuniv 's instructions.

_Originally posted by @natik-bw in https://github.com/acfr/cam_lidar_calibration/issues/48#issuecomment-2067573817_

jclinton830 commented 2 months ago

Please update your local copy of the repo by checking out noetic_v2 and then doing a git pull. This was fixed recently.