GithubHelp home page GithubHelp logo

haojingyuan / prompt2walk Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hybridrobotics/prompt2walk

0.0 0.0 0.0 4.01 MB

Code for Prompt a Robot to Walk with Large Language Models https://arxiv.org/abs/2309.09969

Home Page: https://prompt2walk.github.io/

Python 100.00%

prompt2walk's Introduction

Prompt a Robot to Walk with Large Language Models

This repository contains the code for our paper Prompt a Robot to Walk with Large Language Models by Yen-Jen Wang, Bike Zhang, Jianyu Chen, and Koushil Sreenath.

Overview

demo

The LLM directly outputs the low-level action to make a robot to walk. In our experiment, the LLM is supposed to run at 10 Hz although the simulation has to be paused to wait for LLM inference, and the PD controller executes at 200 Hz.

Setup

Create conda env:

conda create -n prompt2walk python=3.9
conda activate prompt2walk

Requirements

pip install -r requirements.txt

Usage

Configuration

Please fill the openai.api_key in src/llm.py.

Collect the trajectory from the LLM controller

python src/run.py

Replay the trajectory

python src/replay.py

Training your own policy

Please refer to Isaac Gym Environments for Legged Robots. Currently, we've tested our code on A1 and ANYmal C Robot at 10 Hz.

Want more details?

Please read our paper! If you have further questions, please feel free to contact Yen-Jen.

Citation

Please cite our paper if you use this code or parts of it:

@article{wang2023prompt,
  title={Prompt a Robot to Walk with Large Language Models},
  author={Wang, Yen-Jen and Zhang, Bike and Chen, Jianyu and Sreenath, Koushil},
  journal={arXiv preprint arXiv:2309.09969},
  year={2023}
}

prompt2walk's People

Contributors

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