Giter Site home page Giter Site logo

v-wewei / decentralized-multiarm Goto Github PK

View Code? Open in Web Editor NEW

This project forked from real-stanford/decentralized-multiarm

0.0 1.0 0.0 16.71 MB

[CoRL 2020] Learning a Decentralized Multiarm Motion Planner

Home Page: https://multiarm.cs.columbia.edu/

License: Apache License 2.0

Python 100.00%

decentralized-multiarm's Introduction

Learning a Decentralized Multiarm Motion Planner

Huy Ha, Jingxi Xu, Shuran Song,
Columbia University, New York, NY, United States
CoRL 2020

Visualizations created using PyBullet-Blender recorder

Setup

Python 3.7 dependencies:

  • PyTorch 1.6.0
  • pybullet
  • numpy
  • numpy-quaternion
  • ray
  • tensorboardX

We've prepared a conda YAML file which contains all the necessary dependencies. To use it, run

conda env create -f environment.yml
conda activate multiarm

Evaluate the pretrained motion planner

In the repo's root, download the pretrained weights and evaluation benchmark

wget -qO- https://multiarm.cs.columbia.edu/downloads/checkpoints/ours.tar.xz | tar xvfJ -
wget -qO- https://multiarm.cs.columbia.edu/downloads/data/benchmark.tar.xz | tar xvfJ -

Then evaluate the pretrained weights on the benchmark in static mode with

python main.py --mode benchmark --tasks_path benchmark/ --load ours/ours.pth --num_processes 1 --gui

You can remove --gui to run headless, and use more CPU cores with --num_processes 16.

To summarize the benchmark results

python summary.py ours/benchmark_score.pkl

To evaluate the pretrained weights on the benchmark in dynamic mode, run

python benchmark_dynamic.py --mode benchmark --tasks_path benchmark/ --load ours/ours.pth --num_processes 1 --gui

Train a decentralized multi-arm motion planner

In the repo's root, download the training tasks and expert demonstration dataset

wget -qO- https://multiarm.cs.columbia.edu/downloads/data/tasks.tar.xz | tar xvfJ -
wget -qO- https://multiarm.cs.columbia.edu/downloads/data/expert.tar.xz | tar xvfJ -

Then train a decentralized multi-arm motion planner from scratch with

mkdir runs
python main.py --config configs/default.json --tasks_path tasks/ --expert_waypoints expert/ --num_processes 16 --name multiarm_motion_planner

Citation

@inproceedings{ha2020multiarm,
	title={Learning a Decentralized Multi-arm Motion Planner},
	author={Ha, Huy and Xu, Jingxi and Song, Shuran},
	booktitle={Conference on Robotic Learning (CoRL)},
	year={2020}
}

decentralized-multiarm's People

Contributors

huy-ha avatar jingxixu avatar

Watchers

James Cloos 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.