Giter Site home page Giter Site logo

turtlebot3's Introduction

TurtleBot3 Gym env

This is a gym env to work with the TurtleBot3 gazebo simulations, allowing the use of OpenAI Baselines and Stable Baselines deep reinforcement learning algorithms in the robot navigation training. See the examples folder to check some Python programs.

This project is a part of the development of some gazebo environments to apply deep-rl algorithms.

Research Gazebo environments for TurtleBot3 robot

Installation

git clone https://github.com/ITTcs/gym-turtlebot3
cd ITTcs/gym-turtlebot3
pip install -e .

This is an example using the OpenAI Baselines DDPG algorithm in a TurtleBot3 environment.

.\examples\openai_baselines_ddpg.py:

import gym
import gym_turtlebot3
import rospy
import baselines.run as run
import os

env_name = 'TurtleBot3_Circuit_Simple_Continuous-v0'
alg = 'ddpg'
num_timesteps = '1e4'

name_ref = env_name + '_' + num_timesteps + '_' + alg

my_args = [
    '--alg=' + alg, 
    '--env=' + env_name, 
    '--num_timesteps=' + num_timesteps]

os.environ["OPENAI_LOG_FORMAT"] = "csv"
os.environ["OPENAI_LOGDIR"] = './logs/' + name_ref

rospy.init_node(env_name.replace('-', '_'))

run.main(my_args)

Before running a Python program you first need run the specified environment. To the TurtleBot3_Circuit_Simple_Continuous-v0 env for example, would be:

roslaunch turtlebot3_gazebo turtlebot3_circuit_simple.launch

These resouces are part of a master's thesis where we use the Python fuzzylab library to create fuzzy logic controllers with the implementation of deep reinforcement learning algorithms.

To cite this repository in publications:

@misc{gymturtlebot3,
  author = {Avelar, Eduardo},
  title = {gym-turtlebot3},
  year = {2019},
  publisher = {GitHub},
  journal = {GitHub repository},
  howpublished = {\url{https://github.com/ITTcs/gym-turtlebot3}},
}

turtlebot3's People

Contributors

victorkich avatar eavelardev avatar alikolling avatar

Stargazers

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