Giter Site home page Giter Site logo

rmll's Introduction

We modified this original repo: https://github.com/leggedrobotics/legged_gym, to add training via RM

Our RM implementation inspired by original RM code from https://github.com/RodrigoToroIcarte/reward_machines Our implementation is compatible with vectorized environments on GPU

Installation

  1. Install pytorch with cuda and Isaac Gym (see https://github.com/leggedrobotics/legged_gym for details)
  2. Install rm_ppo: cd rm_ppo && pip3 install -e .
  3. Install legged_gym: cd RMLL && pip3 install -e .

Train

Gait types: trot, bound, pace, walk, three_one, half_bound
Experiment types: rm, noRM_history, noRM_foot_contacts, noRM

Example command to train pace gait, with rm state included in state space, on random seed 18:

python3 legged_gym/scripts/train.py --task=a1_rm --gait=pace --seed=18 --headless

-- headless means training will not be visualized.

Validate:

Sim-to-sim transfer to PyBullet:

cd pybullet_val
python3 -m scripts.play_bullet.py

Be sure to update path to model in pybullet_val/scripts/play_bullet.py

Test:

First update load_run and checkpoint in config file. Then, run:

python3 legged_gym/scripts/play.py --task=a1_rm --gait=trot --seed=0

rmll's People

Contributors

davede avatar

Stargazers

 avatar Shaoting Zhu avatar Christopher avatar

Watchers

Shiqi Zhang avatar YoheiHayamizu 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.