GithubHelp home page GithubHelp logo

invpend_experiment's Introduction

Inverted Pendulum Experiment

  • Author: linZHank

Using gazebo to simulate inverted pendulum and control through ROS The URDF model of the inverted pendulum and gazebo model spawn were refered to this tutorial Thanks to Matthew Chan and Arthur Juliani for their brilliant tutorials.

Setup

My configuration was Ubuntu 16.04, ROS-Kinetic and Gazebo-7.0. Other combinations of Linux, ROS and Gazebo may work, but not guaranteed.

  1. cd to the /src directory in ROS workspace (e.g. cd ~/ros_ws/src)
  2. git clone https://github.com/linZHank/invpend_experiment.git
  3. catkin_make, or carkin build if you were using Catkin Command Line Tools
  4. source ~/ros_ws/devel/setup.bash
  5. run roslaunch invpend_description invpend_rviz.launch to check the model in rviz; run roslaunch invpend_control load_invpend.launch to spawn the model in gazebo and initiate ros_control

Scripts

All python scripts is located at /your/path/to/ros_ws/src/invpend_experiment/invpend_control/scripts.

  • cartpole_v0.py and cartpole_v1 configures the model to be a reinforcement learning ready enviroment.
  • test_env.py is a good starting point to familiarize this environment. Currently, sending random command and sinusoidal command to the cart through velocity control are available/
  • qtable_train.py runs Q-learning algorithm on the cart-pole, however parameters are undertuned at current stage.
  • qtable_eval.py evaluates the Q table learned by qtable_train.py

Q-learning

Training Demo Video

IMAGE ALT TEXT HERE

Rewards Accumulation Accumulated Rewards

Evaluation Demo

IMAGE ALT TEXT HERE

invpend_experiment's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 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.