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 when running the quickstart using Noetic #57

Closed
natik-bw opened this issue Apr 20, 2024 · 1 comment
Closed

Error when running the quickstart using Noetic #57

natik-bw opened this issue Apr 20, 2024 · 1 comment

Comments

@natik-bw
Copy link

natik-bw commented Apr 20, 2024

Interested in reopening issue #48 (comment), as the solution didn't resolve my error.

  • I am using ros-noetic, with Opencv-4.5.5 (due to other project dependencies)
  • Changing #include <opencv/cv.hpp>' to '#include <opencv2/opencv.hpp>' in optimiser.h. It didn't resolve the problem, since it caused the following error when executing catkin build`:
    image

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 #48 (comment)

@jclinton830
Copy link
Member

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

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

2 participants