GithubHelp home page GithubHelp logo

koide3 / st_handeye_graph Goto Github PK

View Code? Open in Web Editor NEW
54.0 3.0 25.0 33 KB

General hand-eye calibration based on reprojection error minimization and pose graph optimization

CMake 4.82% C++ 77.36% Python 16.82% Shell 1.01%
hand-eye calibration x-ray cross-platform hand-eye-calibration reprojection-error-minimization

st_handeye_graph's Introduction

st_handeye_graph

This package provides a general hand-eye calibration method which can be applied to pinhole and source-detector camera models.

Description

Unlike usual hand-eye calibration techniques, this method directly takes the images of the calibration pattern (like chessboard) and estimates the hand-eye transformation and the pattern pose such that the projection error of the pattern is minimized. Since it doesn't rely on algorithms dedicated for pinhole cameras, such as PnP algorithms, it can be easily adapted to different camera model by changing only the projection model.

Dependencies

  • g2o
  • VISP
  • handeye_calib_camodocal (optional, for only evaluation)

Usage

Include "st_handeye/st_handeye.hpp" and call "st_handeye::spatial_calibration_graph()". See "st_handeye.hpp" for the details.

Reproduce figures

git clone https://github.com/koide3/st_handeye_graph.git
git clone https://bitbucket.org/koide3/st_handeye_eval.git

mkdir st_handeye_graph/build
cd st_handeye_graph/build
cmake .. -DCMAKE_BUILD_TYPE=Release
make -j4

cd ../scripts
# run simulations and plot figures
./run_simulation.sh

# run calibration on real data and perform 3d reconstruction
./run_calibration.sh

# see the reconstructed point cloud
pcl_viewer data/points_3d_graph.pcd

Paper

Kenji Koide and Emanuele Menegatti, General Hand-Eye Calibration based on Reprojection Error Minimization, IEEE Robotics and Automation Letters/ICRA2019 [link].

Contact

Kenji Koide, Intelligent Autonomous Systems Laboratory, University of Padova, Italy. [email protected]

st_handeye_graph's People

Contributors

jakubach avatar koide3 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

st_handeye_graph's Issues

Confusing notation

Thank you for making this codes public, first of all.

Why are there many codes such as following :

std::cout << "hand2eye ---\n" << hand2eye.matrix().inverse() << std::endl;

cv::Mat cv_object2eye = eigen2cvmat(object2eyes[i].inverse().matrix());

Shouldn't be the inverse of A2B B2A ?

Calibration board

Adding the calibration target as PDF to the repository would help me.

Best, Ralf

Calibration target

Adding the calibration target as PDF to the repository would help me.

Best, Ralf

Building Code on a New OS

Hello - is there any chance you could create a Docker image for this repository (and maybe update repository dependencies)? I am having many issues building it on a newer Ubuntu 20.04 OS with python3, OpenCV4, and C++17. If I recall correctly, this worked well on an Ubuntu 18.04 OS with python2, C++11, and OpenCV2. (I used C++11 for the build, but I have several OpenCV version conflicts).
image

Error:

[ 91%] Built target calibrate
/usr/bin/ld: CMakeFiles/handeye_simulation_xray.dir/src/handeye_simulation_xray.cpp.o: in function `HandeyeSimulationXray::visualize(Eigen::Matrix<double, -1, -1, 0, -1, -1> const&, int) const [clone .constprop.0]':
handeye_simulation_xray.cpp:(.text+0x456): undefined reference to `cv::imshow(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, cv::_InputArray const&)'
/usr/bin/ld: CMakeFiles/handeye_simulation_xray.dir/src/handeye_simulation_xray.cpp.o: in function `main':
handeye_simulation_xray.cpp:(.text.startup+0x2aa9): undefined reference to `cv::imshow(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, cv::_InputArray const&)'
/usr/bin/ld: handeye_simulation_xray.cpp:(.text.startup+0x3889): undefined reference to `cv::imshow(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, cv::_InputArray const&)'
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/handeye_simulation_xray.dir/build.make:157: handeye_simulation_xray] Error 1
make[1]: *** [CMakeFiles/Makefile2:198: CMakeFiles/handeye_simulation_xray.dir/all] Error 2
make: *** [Makefile:91: all] Error 2

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.