Giter Club home page Giter Club logo

trajopt's Introduction

Trajectory Optimization Algorithms

This package contains trajectory optimization algorithms meant predominantly for continuous control taks (simulated with MuJoCo).

Installation

The main package dependencies are MuJoCo and mjrl. See setup-instructions to get a working conda environment and setup dependencies.

After mujoco_py has been installed, the package can be used by either adding to path as:

export PYTHONPATH=<path/to/trajopt>$PYTHONPATH

or through the pip install module

$ cd trajopt
$ pip install -e .

The tricky part of the installation is likely to be mujoco_py. Please see instructions and known issues for help.

API and example usage

The algorithms assume an environment abstraction similar to OpenAI gym, but requires two additional functions to be able to run the algorithms provided here.

  • get_env_state() should return a dictionary with all the information required to reconstruct the scene and dynamics. For most use cases, this can just be the qpos and qvel. However, in some cases, additional information may be required to construct scene and dynamics. For example, in multi-goal RL, we can represent virtual goals using sites as opposed to real joints.
  • set_env_state(state_dict) should take in a dictionary, and use the contents of the dictionary to recreate the scene specified by the dictionary. The example reacher environment has an illustrative.

Example Usage

See this directory for illustrative examples: trajopt/examples.

Bibliography

If you find the package useful, please cite the following paper.

@INPROCEEDINGS{Lowrey-ICLR-19,
    AUTHOR    = {Kendall Lowrey AND Aravind Rajeswaran AND Sham Kakade AND 
                 Emanuel Todorov AND Igor Mordatch},
    TITLE     = "{Plan Online, Learn Offline: Efficient Learning and Exploration via Model-Based Control}",
    BOOKTITLE = {ICLR},
    YEAR      = {2019},
}

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.