Youngwoon Lee, Edward S. Hu, Joseph J. Lim at USC CLVR lab
[Environment website (https://clvrai.com/furniture)]
[arXiv Paper]
Sawyer | Baxter | Cursors | Jaco | Panda |
We are announcing the launch of the IKEA Furniture Assembly environment as a first-of-its-kind benchmark for testing and accelerating the automation of physical assembly processes. An agent (Sawyer, Baxter, Cursor) is required to move, align, and connect furniture parts sequentially. The task is completed when all parts are connected.
The IKEA Furniture Assembly environment provides:
- Comprehensive modeling of furniture assembly task
- 60+ furniture models
- Configurable and randomized backgrounds, lighting, textures
- Realistic robot simulation for Baxter, Sawyer, Jaco, Panda, and more
- Gym interface for easy RL training
- Reinforcement learning and imitation learning benchmarks
- Teleopration with 3D mouse/VR controller
The structure of the repository:
docs
: Detail documentationfurniture
:config
: Configuration files for the environmentsenv
: Envrionment code of the IKEA furniture assembly environmentutil
: Utility codedemo_manual.py
: Script for testing the environment with keyboard control
furniture-unity
: Unity code for the IKEA furniture assembly environment (excluded in this repo due to the size of files, instead download pre-built Unity app)method
: Reinforcement learning and imitation learning code (will be updated soon)
- Ubuntu 18.04, MacOS Catalina, Windows10
- Python 3.7 (pybullet may not work with Python 3.8 or higher)
- Mujoco 2.0
- Unity 2018.4.23f1 (Install using Unity Hub)
git clone https://github.com/clvrai/furniture.git
cd furniture
pip install -e .
See docs/installation.md
for more detailed instruction and troubleshooting.
If you are on a headless server, make sure you run a virtual display and use --virtual_display
to specify the display number (e.g. :0 or :1).
You can use WASDQE keys for moving and IJKLUO keys for rotating an end-effector of an agent. SPACE and ENTER are closing and opening the gripper, respectively. C key will connect two aligned parts.
python -m furniture.demo_manual
Gym interface for the IKEA Furniture Assembly environment is also provided. The environment parameters, such as furniture, background, and episode length, can be specified via parameters. (see register
functions in furniture/env/__init__.py
.
import gym
import furniture
# make an environment
env = gym.make('IKEASawyer-v0', furniture_name="table_lack_0825")
done = False
# reset environment
observation = env.reset()
while not done:
# simulate environment
observation, reward, done, info = env.step(env.action_space.sample())
We provide the demonstration generation script for 10 furniture models.
python -m furniture.env.furniture_sawyer_gen --furniture_name table_lack_0825 --start_count 0 --n_demos 100
We provide example commands for table_lack_0825
. You can simply change the furniture name to test on other furniture models.
For evaluation, you can add --is_train False --num_eval 50
to the training command:
python -m run --algo bc --run_prefix bc_table_lack_0825 --env IKEASawyerDense-v0 --furniture_name table_lack_0825 --demo_path demos/Sawyer_table_lack_0825
mpirun -np 32 python -m run --algo gail --run_prefix gail_table_lack_0825 --env IKEASawyerDense-v0 --furniture_name table_lack_0825 --demo_path demos/Sawyer_table_lack_0825
mpirun -np 32 python -m run --algo gail --run_prefix gailppo_table_lack_0825 --env IKEASawyerDense-v0 --furniture_name table_lack_0825 --demo_path demos/Sawyer_table_lack_0825 --gail_env_reward 0.5
python -m run --algo sac --run_prefix sac_table_lack_0825 --env IKEASawyerDense-v0 --furniture_name table_dockstra_0279
mpirun -np 32 python -m run --algo ppo --run_prefix ppo_table_lack_0825 --env IKEASawyerDense-v0 --furniture_name table_dockstra_0279
See documentation for installation and configuration details.
Our Mujoco environment is developed based on Robosuite and Unity implementation from DoorGym-Unity is used.
- Robosuite environment: https://github.com/StanfordVL/robosuite
- MuJoCo-Unity plugin: http://www.mujoco.org/book/unity.html
- DoorGym-Unity: https://github.com/PSVL/DoorGym-Unity
@inproceedings{lee2021ikea,
title={{IKEA} Furniture Assembly Environment for Long-Horizon Complex Manipulation Tasks},
author={Lee, Youngwoon and Hu, Edward S and Lim, Joseph J},
booktitle={IEEE International Conference on Robotics and Automation (ICRA)},
year={2021},
url={https://clvrai.com/furniture},
}
We thank Alex Yin and Zhengyu Yang for their contributions. We would like to thank everyone who has helped IKEA Furniture Assembly Environment in any way.