GithubHelp home page GithubHelp logo

amandinefortier / shape_processing_ifm3d Goto Github PK

View Code? Open in Web Editor NEW
2.0 0.0 0.0 1.71 MB

Uses of a 3D camera(IFM O3X101) to detect and get the size (height, length and width) of the desired shape. Then move a UR3 robot to the object and take it with the RG2 Gripper.

License: MIT License

Python 100.00%
ur ur3 rg2 gripper shape-detection universal-robot ifm ifm3d python ifm-o3x101

shape_processing_ifm3d's Introduction

Shape processing

Shape_processing is a package to get the size of a specific shape with an IFM O3X101 camera.

Folder Content
docs/ Html documentation
lib/ Libraries
shape_processing/ Code
shape_processing/Camera.py Create camera with IP address + take picture
shape_processing/Shape.py Define the different types of shapes
shape_processing/shape_recognition.py Detects different types of shapes on an image. Give its position, center and angle.
shape_processing/shape_size.py Get the height, width and length of the shape.
shape_processing/ur3.py To grab the object with a UR3 robot

Installation

Explanations

First, our computer has to be up to date.

Next, we have to install all the dependencies of the ifm library.

Then, we clone the libraries to be installed. pybind11 is also a dependency. But we have to build it by hand.

After, we build the pybind11 dependency.

Finally, we install the requirements who will install ifm3dpy library.

Commands

sudo apt update && sudo apt upgrade
sudo apt  install -y libboost-all-dev git jq libcurl4-openssl-dev \
                              libgtest-dev libgoogle-glog-dev  \
                              libxmlrpc-c++8-dev libopencv-dev \
                              libpcl-dev libproj-dev \
                              build-essential coreutils cmake python3-pip
cd lib/
git clone https://github.com/ifm/ifm3d.git
git clone https://github.com/pybind/pybind11
cd pybind11
mkdir build
cd build
cmake -DPYBIND11_TEST=OFF ..
make
sudo make install
cd ../../..
pip3 install -r requirements.txt

How to use it ?

Modify the detected shape

In main.py change the shape (RECTANGLE) to the desired one.

See in the html documentation in "Shape" to have all accepted shapes.

Execute the code

Via the terminal.

python3 main.py

It will output a picture with the detected shape.

shape_processing_ifm3d's People

Contributors

amandinefortier avatar

Stargazers

 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.