GithubHelp home page GithubHelp logo

jackzhousz / opt-mimic-traj-opt Goto Github PK

View Code? Open in Web Editor NEW

This project forked from yunifuchioka/opt-mimic-traj-opt

0.0 0.0 0.0 16.38 MB

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

Python 100.00%

opt-mimic-traj-opt's Introduction

opt-mimic-traj-opt

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

Quick Reference

  • traj_opt.py contains the core implementation of the trajectory optimization, including some constraints that need to be modified specifically to each motion.
  • generate_reference.py contains code producing hard-coded kinematic sketch trajectories via sinusoids and interpolation of keypoints. The motion type is specified using the motion_type variable (line 41 as of writing).
  • python main.py -d 0 -s 1 -e 1 -n my-experiment-name is a typical command I would run to run trajectory optimization, and save video and csv results under filename my-experiment-name. You likely need to create an empty videos/ folder to avoid getting an error the first time.
  • constants.py contains parameter values, of which I occasionally had to tune LQR weights specifically to each motion.

Integration with Other Code

  • Once a csv trajectory file is saved onto csv/, it should be copied onto the raisimGymTorch/raisimGymTorch/env/envs/solo8_env/traj/ directory of the reinforcement learning code to use it to train RL policies.
  • When deploying the trained RL policy on the robot, the csv trajectory file also needs to be copied onto the workspace directory containing the robot deployment code. See that repo for details.

opt-mimic-traj-opt'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.