Giter VIP home page Giter VIP logo

roboticgrasper's Introduction

NSC Short Project on Robotic Grasping with Reinforcement Learning

This is a short research project conducted in cooperation with the MiRA Lab at National Taiwan University. The goal was to create a simulation for their robotic arm in pybullet and train it to grasp with reinforcement learning. This repository contains the urdf files for the robotic grasper, it's controller and two Gym environments to which Reinforcement Learning algrotihms can be applied. Furthermore it contains the code to train the grasper with RL algorithms such as DQN and DDGP, as well as the evaluation and testing.

The Simulation The Real Robot
The robot model The real robot

Using the code

The trained grasper

The code for the controller and the Gym environments is based on the example code provided by Bullet3 for the Kuka Arm (Links can be found in the comments).

In order to reproduce the code, please install the following packages, ideally in a separate virtual environment.

  1. Install Pybullet via
pip install pybullet

  1. Install stable-baselines (described here: https://stable-baselines.readthedocs.io/en/master/guide/install.html) Make sure you install it alongside tensorflow 1.x

  2. Clone this repository

git clone https://github.com/huetufemchopf/roboticgrasper.git

In order to see an example for successful grasping, please run the following code:

  1. To train a model, try for example this:

python baselines/train_tm700_cam_grasping.py --gym_env 'rgbd' --algorithm 'DQN' --discrete True --lr 0.0001

  1. Run the following command to play a pretrained model
python baselines/replay_grasping_possensor.py  --gym_env 'rgbd'


roboticgrasper's People

Contributors

huetufemchopf avatar

Stargazers

 avatar Paolo Manchisi avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar Jiawei Zhang avatar  avatar Yueh-Cheng Liu 劉岳承 avatar

Watchers

James Cloos avatar Kuang-Yu Jeng avatar Paolo Manchisi avatar  avatar

Forkers

peter0749

roboticgrasper's Issues

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.