SAPIEN is a SimulAted Parted-based Interactive ENvironment for physically realistic simulation of articulated rigid-body systems. It is designed for embodied AI and robotics research, providing high-fidelity rendering (including ray tracing) and efficient simulation. Current version is 3.0.3, with active development and monthly releases.
pip install sapienNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Create a simple scene with a box and step the simulation.
Refer to the migration guide: https://sapien.ucsd.edu/docs/latest/user_guide/migration.html
Use `sapien.VulkanRenderer(offscreen_only=True)` for headless setups.
Pass a list of three floats: `scene.set_ambient_light([0.5,0.5,0.5])`.
Always call `builder.build(name='actor_name')` after setting up shapes and visuals.
Add a loop calling `scene.step()` and `scene.update_render()` each frame.
Install Vulkan drivers (e.g., `sudo apt install libvulkan1 mesa-vulkan-drivers` on Ubuntu) or use `sapien.HeadlessRenderer` (if available via `sapien.wxPython`? - not recommended). Check https://sapien.ucsd.edu/docs/latest/user_guide/installation.html
Replace `sapien.utils` with `sapien.physx` for PhysX-related utils or `sapien.render` for render. Check the migration guide.
Use `scene.set_ambient_light([0.5, 0.5, 0.5])`.