Code Monkey home page Code Monkey logo

mppitutorial's Introduction

MPPITutorial

A codebase for running the MPPI algorithm on CarRacing and OpenAI gym style environments

Dependencies

This repo requires Python3 (3.7.7 for best compatibility) If you have a NVIDIA GPU, install CUDA 10.2 to allow the repo to access it.

Installing

To install the python dependencies after cloning the repo, run

pip3 install -r requirements.txt

Running

Watch an MPPI agent control the CartPole-v0 or Pendulum-v0 environment in in Python with:

python3 train_agent.py [CartPole-v0|Pendulum-v0] mppi --trial --render

To see a MPPI agent control a car along various race tracks, run:

python3 train_agent.py CarRacing-[curve|curve1|curve2|curve3|curve4|curve5]-v1 mppi --trial --render

To see the visualization of the samples trajectories evaluated for the curve car racing track, run:

python3 test.py

Tuning MPPI parameters

The MPPI parameters for the control optimization are in src/agents/init.py where the agent_configs parameters are for the OpenAI gym style environments and the env_agent_configs are for the CarRacing environments.

mppitutorial's People

Contributors

shawnmanuel000 avatar

Stargazers

 avatar Entropy avatar JUNGEE HONG avatar MizuhoAOKI avatar Kohei Honda avatar Tardis avatar  avatar Shundo Kishi avatar Ivan Kharitonov avatar

Watchers

James Cloos avatar Jayesh K. Gupta avatar Tim Wheeler avatar Zachary Sunberg avatar Mykel Kochenderfer avatar Maxime avatar  avatar  avatar

mppitutorial's Issues

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.