Giter Club home page Giter Club logo

ikea_assembly's Introduction

USAGE

cd to ikea_ros_pkg

CREATE DATASET

connet to hsr then $ cd ...to your workplace $ mkidr dataset $ python get_data.py (press 's' to save an image, num of image should > 200)

separate the dataset to train and test (leave about 15 image for test)

ANNOTATION

$ python label_tool.py (after annotated an image, press 'n' to save the label and turn to the next image)

TRAIN

$ python train.py (train loss should lower than 100, test loss may around 8000?)

EVAL

$ python eval.py (modify eval.py img_file = ("location to test image")

IMPORTANT NOTICE (update on 27/09/2018)

please use a blank MAP (do not load any maps) before execute!!!!!!! (check it on rviz, map topic)

(because the output tf frame is relative to the map, once the robot adjusts its location after the first move, the locations of the holes will also change)

MOVE THE ROBOT

If everything is OK, then start move the robot build the robot package then roscd to the directory that contains the trained model (for example, params.meta, params.index...)

$ python force_listener_wrs.py

open another terminal (in the same directory)

$ python send_tf_wrs.py

open another terminal (in the same directory)

$ python detect_holes_wrs.py (after the object can be seen, press 's' to detect holes, should wait a

moment until the model is loaded, otherwise you will get an error)

check the hole locations using rosrun rviz , show tf

open another terminal (in the same directory)

$ python robot_execute_wrs.py

hand over a leg to the robot, and press its hand, it should start assembly, after it finishs one leg, hand over another leg and press its hand....

video https://drive.google.com/open?id=1CG60ZPr5YSo6Ciz-UqNyU2JtcfcsY9HU

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.