Coder Social home page Coder Social logo

turtlebot_rl_gazebo's Introduction

Reinforcement Learning with Turtlebot in Gazebo

TurtleBot3 with Intel RealSense D435

- [ROBOTIS e-Manual for TurtleBot3](http://turtlebot3.robotis.com/) - To install the Realsense Plugin from source follow steps from https://github.com/intel/gazebo-realsense, or as given below

Reinforcement Learning with Stable Baselines3

mkdir -p catkin_ws/src
cd catkin_ws/src
git clone https://github.com/gargivaidya/turtlebot_rl_gazebo.git
git clone https://github.com/ROBOTIS-GIT/turtlebot3.git
cd ..
catkin_make
. devel/setup.bash

Setup Virtual Environment for RL

python3 -m venv gymenv
source gymenv/bin/activate
pip3 install --upgrade pip
pip3 install pyyaml rospkg numpy gym matplotlib tensorboard scikit-build cmake stable-baselines3 scipy 
pip3 install <compatible version of torch https://pytorch.org/>

Start training RL model

roslaunch turtlebot3_gazebo turtlebot3_empty_world.launch

source gymenv/bin/activate
rosrun turtlebot3_gazebo sbtraining.py

Reinforcement Learning with Custom RL Algorithm

mkdir -p catkin_ws/src
cd catkin_ws/src
git clone https://github.com/gargivaidya/turtlebot_rl_gazebo.git
git clone https://github.com/ROBOTIS-GIT/turtlebot3.git
cd ..
catkin_make
. devel/setup.bash

Dependencies

turtlebot3
turtlebot3_msgs
turtlebot3_descriptions

Setup Virtual Environment for RL

python3 -m venv gymenv
source gymenv/bin/activate
pip3 install --upgrade pip
pip3 install pyyaml rospkg numpy gym matplotlib tensorboard scikit-build cmake stable-baselines3 scipy
pip3 install <compatible version of torch https://pytorch.org/>

Start training RL model

roslaunch turtlebot3_gazebo turtlebot3_empty_world.launch

source gymenv/bin/activate
rosrun turtlebot3_gazebo training.py

RealSense Camera Gazebo Plugin

  • This Gazebo plugin simulates a RealSense camera by publishing the 4 main RealSense streams: Depth, Infrared, Infrared2 and Color. It is associated to a RealSense model that is providade in ./models

Build

  1. Create a build folder under /src and make using CMAKE as follows:

    mkdir build
    cd build
    cmake ..
    make
    

Install

The plugin binaries will be installed so that Gazebo finds them. Also the needed models will be copied to the default gazebo models folder.

sudo make install

Launch Simulation with D435

roslaunch turtlebot3_gazebo turtlebot3_house.launch

Wiki for turtlebot3_simulations Packages

Open Source related to TurtleBot3

Documents and Videos related to TurtleBot3

turtlebot_rl_gazebo's People

Contributors

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