['SAPIEN: A SimulAted Parted based Interactive ENvironment']
Maintained. Last release 9 months ago. Weaker on release cadence.
pip install sapienSAPIEN
SAPIEN is a realistic and physics-rich simulated environment that hosts a large-scale set for articulated objects. It enables various robotic vision and interaction tasks that require detailed part-level understanding. SAPIEN is a collaborative effort between researchers at UCSD, Stanford and SFU. The dataset is a continuation of ShapeNet and PartNet.
Getting Started
SAPIEN is distributed via PyPI. Installation is just
pip install sapien
It requires Linux with NVIDIA, AMD, or Intel GPU to run. Verify installation with
python -m sapien.exapmle.hello_world
Next, follow our tutorial at: https://sapien-sim.github.io/docs/.
Offscreen rendering on a server
To use SAPIEN on a GPU server without display, the only system dependencies
required are libegl1 and libxext6. If using NVIDIA docker environment,
enable graphics, utility, and compute by setting the environment variable in the
Dockerfile.
ENV NVIDIA_DRIVER_CAPABILITIES graphics,utility,compute
Virtual desktop on a server
To use SAPIEN on a GPU server with virtual display, additionally install xvfb,
x11vnc, and any window manager such as fluxbox or xfce. Add display
capabilities for NVIDIA docker.
ENV NVIDIA_DRIVER_CAPABILITIES graphics,utility,compute,display
Assuming fluxbox, start a VNC server by
x11vnc -create -env FD_PROG=/usr/bin/fluxbox -env X11VNC_FINDDISPLAY_ALWAYS_FAILS=1 -env X11VNC_CREATE_GEOM=${99:-1920x1080x16} -gone 'pkill Xvfb' -nopw
# Note: you should use a strong password and/or only allow local access
Now you can connect to the server at port 5900. SAPIEN should be fully functional, test with
python -m sapien.exapmle.hello_world
Change Log
3.0
- Major API & infrastructure overhaul
- Refactor SAPIEN core to use entity-component system
- Actor from SAPIEN 2 now becomes Entity in SAPIEN 3
- Functionalities of an Actor now becomes components attached to an entity.
- Refactor SAPIEN core to use entity-component system