GithubHelp home page GithubHelp logo

ardootala / hand-eye-calibration Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 12.54 MB

A simple package for calculating the hand-eye calibration using OpenCV.

License: MIT License

Python 37.92% Dockerfile 0.30% HTML 1.05% JavaScript 5.74% Vue 51.05% CSS 3.93%

hand-eye-calibration's Introduction

Hand-Eye Calibration

A simple package for easy Hand-Eye Calibration using OpenCV. Currently, supports UR and ABB robots.


Installation

Windows

# Clone from GitHub:
git clone https://github.com/ArdooTala/Hand-Eye-Calibration.git
cd .\Hand-Eye-Calibration\

# Recommended: make and activate a virtual env
py -m venv .venv
.\venv\Scripts\activate

# Install the Library and the dependencies
py -m pip install .

Optionally, to install the GUI:

cd .\src\gui\
py -m pip install .

Unix

# Clone from GitHub:
git clone https://github.com/ArdooTala/Hand-Eye-Calibration.git
cd Hand-Eye-Calibration

# Recommended: make and activate a virtual env:
python -m venv .venv
./venv/Scripts/activate

# Install the Library and the dependencies
pip install .

Optionally, to install the GUI:

cd src/gui/
pip install .

Quick Start Guide

GUI

Execute the following command from commandline (with the virtual env activated, if it applies):

HECal

Or alternatively, directly execute the hec_gui package to run the GUI app.

python -m hec_gui

CLI

python -m hand_eye_calibration PATH/TO/IMAGES/DIR PATH/TO/ROBOT/PROGRAM
$ python -m hand_eye_calibration -h                                                                 
usage: __main__.py [-h] [-o OUTPUT] [-f EXTENSION] [-r {UR,ABB,KUKA}] [-v] images program

positional arguments:
  images                Path to images folder
  program               Path to the Robot Program

options:
  -h, --help            show this help message and exit
  -o OUTPUT, --output OUTPUT
                        Path to write the calibration result
  -b BOARD, --board BOARD
                        Path to charucoboard yaml file
  -f EXTENSION, --extension EXTENSION
                        images format
  -r {UR,ABB,KUKA}, --robot {UR,ABB,KUKA}
                        Robot manufacturer
  -v, --verbose         increase output verbosity

Config Files

Robot Models (YAML)

manufacturer: ABB
length_unit: MILLIMETER
rotation_system: QUATERNION
move_command_regex: MoveJ \[\[(-?\d*[.]?\d+),(-?\d*[.]?\d*),(-?\d*[.]?\d*)\],\[(-?\d*[.]?\d*),(-?\d*[.]?\d*),(-?\d*[.]?\d*),(-?\d*[.]?\d*)\],.*?;

Charuco Board (YAML)

num_X: 9
num_Y: 6
len_squares: 0.04
len_markers: 0.035
markers_dictionary: 2

hand-eye-calibration's People

Contributors

ardootala avatar

Watchers

 avatar

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.