GithubHelp home page GithubHelp logo

jackzhousz / opt-mimic-raisim Goto Github PK

View Code? Open in Web Editor NEW

This project forked from yunifuchioka/opt-mimic-raisim

0.0 0.0 0.0 2.44 GB

RL code for the paper "OPT-Mimic: Imitation of Optimized Trajectories for Dynamic Quadruped Behaviors"

License: Other

Shell 0.01% C++ 50.98% Python 0.67% C 33.66% MATLAB 0.08% PowerShell 0.02% Makefile 0.05% CMake 1.02% ASP.NET 13.51%

opt-mimic-raisim's Introduction

opt-mimic-raisim

Reinforcement Learning (RL) code for the paper "OPT-Mimic: Imitation of Optimized Trajectories for Dynamic Quadruped Behaviors". This repository was modified from the raisimLib repository. Modifications include the addition of a URDF file for the ODRI Solo 8 robot to rsc/solo8_v7/, and the addition of RL environment and training code to raisimGymTorch/raisimGymTorch/env/envs/solo8_env/.

Installation

The installation steps from Raisim should be followed first. Then this repo can be cloned into your $WORKSPACE directory.

Training RL Policies

  • After any changes to C++ code, go to raisimGymTorch/ and run python setup.py develop
  • Go to raisimGymTorch/raisimGymTorch/env/envs/solo8_env/ and run python vec_ppo.py -n my-experiment-name to start RL training
  • Files indicating training progress will be saved to raisimLibSolo/raisimGymTorch/raisimGymTorch/env/envs/solo8_env/stats/my-experiment-name/
  • The reference motion to track can be specified in the ref_filename argument of raisimLibSolo/raisimGymTorch/raisimGymTorch/env/envs/solo8_env/cfg.yaml. this should correspond to a filename in raisimGymTorch/raisimGymTorch/env/envs/solo8_env/traj/, which includes reference motion csv files produced from trajectory optimization
  • Note that Raisim comes bundled with RL training code building off of OpenAI Stable Baselines, but this is unused and instead a custom implementation of RL training code is used here

Testing a trained RL policy

  • Go to raisimGymTorch/raisimGymTorch/env/envs/solo8_env/ and run python test_policy.py my-experiment-name/latest.pt to run the latest policy trained using python vec_ppo.py -n my-experiment-name
  • Early termination, which is important during RL training, can be turned off during testing by setting cfg['environment']['disable_termination'] to true in raisimGymTorch/raisimGymTorch/env/envs/solo8_env/test_policy.py (line 40 as of writing).

opt-mimic-raisim's People

Contributors

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