Git Product home page Git Product logo

markerless-robot-camera-calibration's Introduction

Learning Markerless Robot-Depth Camera Calibration and End-Effector Pose Estimation

Disclaimer: We were not able to arrange an undisclosed large storage server to share our dataset and models, in time. We are going to publish our dataset and trained models once the paper is published. We shared a small sample from our dataset under dataset/sample which can be used to run training and testing scripts. We will also open source the easy robot-depth camera calibration app shown in video along with training and testing scripts.

Install

Please install MinkowskiEngine following the most up-to-date instructions at the framework's repo. We will continue with the conda environment created there.

Please install Python packages with:

pip3 install -r requirements.txt

Calibration App

Disclaimer: In order to fully utilize the calibration application, you need to specify tranied model paths in the config file. These models will be published alongside the paper itself as we stated above. With following commands you can run the app and verify its flow but won't be able to see predictions for the time being.

cd app
python3 main.py --config ../config/default.yaml

App Visualization

Code

Training

All model training scripts are located at the root directory. To run training scripts (mind *):

python3 train_*.py --config config/default.yaml

We support tensorboard for all our training scripts. You can run tensorboard for any experiment to track training progress with:

tensorboard --port=<port_num> --logdir <exp_path>

exp_path is same as the one defined in config/default.yaml.

All other training parameters can be set in config file under TRAIN, STRUCTURE and DATA keys.

Testing individual models

To test the individual models please run (mind *):

python3 test_*.py --config config/default.yaml

We also create a copy of config file under each experiment's folder (is set in config file) for easier reproduction. You can also run test scripts with (mind *):

python3 test_*.py --config config/default.yaml --override <exp_path>/<config_file>

This overrides the values in the default config with the ones used in that particular experiment.

utils/

We use the code here during training, testing and inference. Small part of the code is taken from other code bases whose links are shared in the related comments. We also utilize several frameworks' methods whose information can be found in requirements.txt with the version data.

Data

Our data files are pickle files (.pickle) dumped with a single JSON object. JSON object structure is as follows:

{
    "points": "<Nx3 numpy.float32 matrix>",
    "rgb": "<Nx3 numpy.float32 matrix>",
    "labels": "<N sized numpy.float32 array> - 0: background, 1: arm, 2: end-effector",
    "instance_labels": "<N sized numpy.float32 array> - 0: background, 1: arm, 2: end-effector",
    "pose": "<7 sized numpy.float32 array>: x, y, z, qx, qy, qz, qw",
    "joint_angles": "<9 sized numpy.float32 array> containing joint angles"
}

Data Visualization

We have shared a sample from our data under dataset/sample. You can visualize the data with following commands. Also, you can visualize the segmentation labels using k button on your keyboard.

cd visualization
python3 viz_pickle.py ../dataset/sample/labeled/<filename>.pickle

Example:

cd visualization
python3 viz_pickle.py ../dataset/sample/labeled/2.pickle

Data Visualization

markerless-robot-camera-calibration's People

Contributors

bcsefercik avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  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.