Giter VIP home page Giter VIP logo

rl_unscrew's Introduction

Reinforcement-Learning Framework

A reinforcement-Learning Framework for testing learning agents on a UR5 manipulator. The framework consists of 2 ROS packages which are rl_gazebo_sim, rl_moveit_config. Besides the two ROS packages there is the folder rl-gym with contains an OpenAI Gym environment as well as python scripts for runnin reinforcement learning. The rl-gym folder is an implementation example on how to use the framework with OpenAI Gym

The framework is designed and prepared for screwing tasks meanning the simulated UR5 is fitted with a screw tool and the world is fitted with a block with a screw.

Content

About
Installation
Launch example aplication

About

This is repository is by as a 6th semester project at Aalborg University.

Installation

Install ROS Kinetic following this guide from the ROS wiki.
Install ROS dependencies

sudo apt -get  install  python -rosinstall  python -rosinstall -generator  python -wstool  build -essential
sudo apt -get  install ros -kinetic -moveit
sudo apt -get  install ros -kinetic -ros -control ros -kinetic -ros -controllers  ros -kinetic -gazebo -ros -controlros -kinetic -gazebo -pkgs ros -kinetic -controller -manager

Install OpenAIGym.

pip  install  gym ==0.10.5

Install Catkin Tools used to build the packages.

sudo apt-get update
sudo apt-get install python-catkin-tools

Create a catkin workspace and initialise it as a workspace

mkdir ~/catkin_ws/src
cd ~/catkin_ws
catkin init
catkin build

Clone this repository as well as the universal_robot repository containing all the UR robots, into the src folder.

cd ~/catkin_ws/src
git clone https://github.com/ros-industrial/universal_robot.git
git clone https://github.com/hjalte33/rl_unscrew.git

run catkin build to build all the packages, and dont forget to sorce the workspcae.

cd ~/catkin_ws
catkin build
source devel/setup.bash

Launch example aplication

In order to launch the framework three things must be launched. First the Gazebo simulation.

roslaunch rl_gazebo_sim rl_world.launch

Then launch the controller

roslaunch rl_moveit_config moveit_planning_execution.launch

Now the framework is ready to be used. In order to launch the example aplication run the following python script.

python  ~/catkin_ws/src/rl_project/rl_gym/simple_loop.py

You shold now be running a simple Q-learning algorithm

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.