GithubHelp home page GithubHelp logo

Comments (3)

YHuniv avatar YHuniv commented on July 2, 2024

This resolved my problem, because i am using opencv 4.2.0 :
change #include <opencv/cv.hpp> to #include <opencv2/opencv.hpp>
in optimiser.h.
(/catkin_ws/src/cam_lidar_calibration/include/cam_lidar_calibration/optimiser.h)
and change optimiser.cpp:
from
// cv::reduce(trans_diff, summed_diff, 1, CV_REDUCE_SUM, CV_64F);

// to
cv::reduce(trans_diff, summed_diff, 1, cv::REDUCE_SUM, CV_64F);

(/catkin_ws/src/cam_lidar_calibration/src/optimiser.cpp)

from cam_lidar_calibration.

jclinton830 avatar jclinton830 commented on July 2, 2024

@YHuniv thanks for your input to the issue.

If that does not work, please feel free to reopen this issue. I am closing it as done for now.

from cam_lidar_calibration.

natik-bw avatar natik-bw commented on July 2, 2024

Reopening this topic, 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. 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, still got the same 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.

from cam_lidar_calibration.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.