Coder Social home page Coder Social logo

adaptsim's Introduction

AdaptSim

AdaptSim: Task-Driven Simulation Adaptation for Sim-to-Real Transfer

Conference on Robot Learning (CoRL), 2023

[Webpage] | [Arxiv]

Allen Z. Ren1, Hongkai Dai2, Benjamin Burchfiel2, Anirudha Majumdar1

1Princeton University 2Toyota Research Institute

Please raise an issue or reach out at allen dot ren at princenton dot edu if you need help with running the code.

Installation

Install the conda environment with dependencies (tested with Ubuntu 20.04):

conda env create -f environment_linux.yml
pip install -e .

AdaptSim is based on Drake, a physically-realistic simulator suited for contact-rich manipulation tasks. Follow the Source Installation instructions here, but use the branch here instead of the Master one.

Usage

Test the double pendulum, pushing, and scooping environment.

python test/test_double_pendulum_linearized.py
python test/test_push.py --gui
python test/test_scoop.py --gui

We also provide other environments including AcrobotEnv, PendulumEnv, and DoublePendulumEnv that are not used in the paper.

Open Drake Visualizer / Meldis for visualization (especially the contacts).

cd ~/drake && bazel run //tools:drake_visualizer
cd ~/drake && bazel run //tools:meldis

Train the adaptation policies.

python script/run_adapt.py -cf cfg/pretrain_dp.yaml
python script/run_adapt_trainer.py -cf cfg/pretrain_push.yaml
python script/run_adapt_trainer.py -cf cfg/pretrain_scoop.yaml

Acknowledgement

Russ Tedrake's manipulation course materials

Ben Agro's Panda environment in Drake

Citation

@inproceedings{ren2023adaptsim,
title = {AdaptSim: Task-Driven Simulation Adaptation for Sim-to-Real Transfer},
author = {Ren, Allen Z. and Dai, Hongkai and Burchfiel, Benjamin and Majumdar, Anirudha},
booktitle={Proceedings of the Conference on Robot Learning (CoRL)},
year = {2023},
}

adaptsim's People

Contributors

allenzren avatar

Stargazers

 avatar Entong Su avatar Simon avatar Liyiming Ke avatar haoyu avatar Jack avatar Baoyu Li avatar Zhixuan Xu avatar Leroy Wang avatar  avatar Tadej Fius avatar  avatar Hongkai Dai avatar

Watchers

Vincent Pacelli avatar  avatar

Forkers

xilunzhangrobo

adaptsim's Issues

Can't run code

Hi, I'm trying to recreate the experiment but can't run the code after following the instructions.

After creating a conda environment from the YAML file, building the forked drake code from source using cmake for use with the python bindings, but when I try to run the code, even just the installation test code

"python3 -c 'import pydrake.all; print(pydrake.file)'"

I'm getting "ModuleNotFoundError: No module named 'pydrake.common._module_py'", and I've exported the correct directory to the python path.

Running on Ubuntu 22.04.

Would greatly appreciate any help :)

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.