VINS-Fisheye icon indicating copy to clipboard operation
VINS-Fisheye copied to clipboard

Problem with the definition

Open Gatsby23 opened this issue 3 years ago • 7 comments

Sorry for troubing you, but when I complie the code, I met this error:

/usr/bin/ld: warning: libopencv_core.so.3.4, needed by /home/robotics/project_comment/VIO_Study/VINSFishEye_WorkSpace/devel/lib/libcamera_models.so, may conflict with libopencv_core.so.3.2
/home/robotics/project_comment/VIO_Study/VINSFishEye_WorkSpace/devel/lib/libestimator_lib.so: undefined reference to `FeatureTracker::PinholeFeatureTracker<cv::Mat>::undistortedPts(std::vector<cv::Point_<float>, std::allocator<cv::Point_<float> > >&, boost::shared_ptr<camodocal::Camera>)'
collect2: error: ld returned 1 exit status
VINS-Fisheye/vins_estimator/CMakeFiles/vins_node.dir/build.make:297: recipe for target '/home/robotics/project_comment/VIO_Study/VINSFishEye_WorkSpace/devel/lib/vins/vins_node' failed
make[2]: *** [/home/robotics/project_comment/VIO_Study/VINSFishEye_WorkSpace/devel/lib/vins/vins_node] Error 1
CMakeFiles/Makefile2:952: recipe for target 'VINS-Fisheye/vins_estimator/CMakeFiles/vins_node.dir/all' failed
make[1]: *** [VINS-Fisheye/vins_estimator/CMakeFiles/vins_node.dir/all] Error 2
Makefile:145: recipe for target 'all' failed
make: *** [all] Error 2

I have found the code at src, but don't know why it still show this error

Gatsby23 avatar Oct 27 '22 14:10 Gatsby23

@Gatsby23 You are mixing the different OpenCV version. Try to clone vision_opencv in your workspace and rebuild

xuhao1 avatar Dec 15 '22 20:12 xuhao1

@Gatsby23 You are mixing the different OpenCV version. Try to clone vision_opencv in your workspace and rebuild

Thank you for your reply. Recently, I'm researching at the dual fisheye and the calibration is bothering me a lot. Sorry for bothering you again, which calibration tools have you test?

Gatsby23 avatar Dec 16 '22 04:12 Gatsby23

@Gatsby23 you may take a look at this file https://github.com/HKUST-Swarm/camera_model/blob/master/scripts/calib_bag.py

xuhao1 avatar Dec 16 '22 18:12 xuhao1

sorry to bother you, what about this Error? /home/tacs/vins_fisheye_ws/devel/lib/libestimator_lib.so: undefined reference to FeatureTracker::PinholeFeatureTracker<cv::cuda::GpuMat>::addPoints() /home/tacs/vins_fisheye_ws/devel/lib/libestimator_lib.so: undefined reference to FeatureTracker::PinholeFeatureTracker<cv::Mat>::addPoints() collect2: error: ld returned 1 exit status VINS-Fisheye/vins_estimator/CMakeFiles/vins_node.dir/build.make:302: recipe for target '/home/tacs/vins_fisheye_ws/devel/lib/vins/vins_node' failed make[2]: *** [/home/tacs/vins_fisheye_ws/devel/lib/vins/vins_node] Error 1 CMakeFiles/Makefile2:3692: recipe for target 'VINS-Fisheye/vins_estimator/CMakeFiles/vins_node.dir/all' failed make[1]: *** [VINS-Fisheye/vins_estimator/CMakeFiles/vins_node.dir/all] Error 2 Makefile:145: recipe for target 'all' failed make: *** [all] Error 2 Invoking "make -j20 -l20" failed

ruanyudi avatar Dec 28 '22 17:12 ruanyudi

@Gatsby23 you may take a look at this file https://github.com/HKUST-Swarm/camera_model/blob/master/scripts/calib_bag.py

Sorry for troubling you again with a simple question[捂脸]: What is the corresponding camera model in the VINS-Fisheye corresponding to the FOV camera model in the calibration project?

Gatsby23 avatar Jan 04 '23 07:01 Gatsby23

@Gatsby23 you may take a look at this file https://github.com/HKUST-Swarm/camera_model/blob/master/scripts/calib_bag.py

Sorry for bothering you again. I have tested this tool yesterday, but it always shows that it didn't detect the chessboard. Should I move the chessboard away from the camera? Here is my detection result: WechatIMG6689 By the way, Is there any other tips to optimize the calibration result?

Gatsby23 avatar Jan 05 '23 04:01 Gatsby23

sorry to bother you, what about this Error? /home/tacs/vins_fisheye_ws/devel/lib/libestimator_lib.so: undefined reference to FeatureTracker::PinholeFeatureTracker<cv::cuda::GpuMat>::addPoints() /home/tacs/vins_fisheye_ws/devel/lib/libestimator_lib.so: undefined reference to FeatureTracker::PinholeFeatureTracker<cv::Mat>::addPoints() collect2: error: ld returned 1 exit status VINS-Fisheye/vins_estimator/CMakeFiles/vins_node.dir/build.make:302: recipe for target '/home/tacs/vins_fisheye_ws/devel/lib/vins/vins_node' failed make[2]: *** [/home/tacs/vins_fisheye_ws/devel/lib/vins/vins_node] Error 1 CMakeFiles/Makefile2:3692: recipe for target 'VINS-Fisheye/vins_estimator/CMakeFiles/vins_node.dir/all' failed make[1]: *** [VINS-Fisheye/vins_estimator/CMakeFiles/vins_node.dir/all] Error 2 Makefile:145: recipe for target 'all' failed make: *** [all] Error 2 Invoking "make -j20 -l20" failed

Hi ,i move the defination of function "PinholeFeatureTrackerCPU::trackImage" into file "feature_tracker_pinhole.cpp" and it works.

zhangyangcc avatar Feb 02 '23 04:02 zhangyangcc