Comments (3)
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.
@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.
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 executingcatkin build
:
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
*** 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)
- openCV issue with new cv version
- The chessboard has been filtered success. But the RANSAC unsuccessful occurs if i click capture sample HOT 6
- Maximum Value of Feature Extraction
- Reprojection Image Seems Strange HOT 2
- tf static_transform_broadcaster does not fit calibration result HOT 3
- Help me please. HOT 1
- Does it creaate a problem with ros distriubutions. HOT 2
- The chessboard has been filtered success. But the RANSAC unsuccessful occurs if i click capture sample HOT 1
- I am getting pcl::PCLBase<pcl::PointXYZIR> and undefined reference to `pcl::KdTreeFLANN<pcl::PointXYZIR, flann::L2_Simple<float> >::KdTreeFLANN(bool) while library linking HOT 2
- transforming results to lidar to camera frame
- Question about the paper HOT 1
- frame_id error Causing RViz Freeze During Background Capture HOT 2
- How the 'pose.csv' file in the article was obtained?
- Problem about `distance_from_origin` HOT 2
- Error when running the quickstart using Noetic HOT 1
- Strange calibration results and reprojection HOT 7
- why the data/vlp files in calib-v2 branches don't have pcd files? HOT 1
- Strange issue when using my own data. HOT 2
- checkerboard is not found HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cam_lidar_calibration.