PyBullet
PyBullet is an open-source Python module for physics simulation, robotics and reinforcement learning, built as the official Python interface to the Bullet Physics SDK. It loads articulated robots from URDF, SDF and MJCF files and provides forward dynamics simulation, inverse dynamics, forward and inverse kinematics, collision detection and ray intersection queries, along with built-in rendering for synthetic camera images.[1][2] Its authors, Erwin Coumans and Yunfei Bai, describe it as "a fast and easy to use Python module for robotics simulation and machine learning, with a focus on sim-to-real transfer."[1] The bindings first shipped with Bullet 2.85 in October 2016, and the package was first uploaded to the Python Package Index in April 2017; it is distributed under the zlib license[2][4] and became one of the most cited simulators in machine learning research.[11] It was used for work such as Google's 2018 sim-to-real quadruped locomotion study and the RSS 2020 best paper on imitating animal motion.[7][8]
PyBullet ships with a set of Gym environments (pybullet_envs) that includes PyBullet versions of the classic continuous-control locomotion tasks, and OpenAI pointed users to those environments when it deprecated its own Bullet-based Roboschool simulator in 2019.[1][10] Releases have been infrequent since 2022: as of November 2026 the most recent PyPI release is 3.2.7 from January 2025, and the Bullet repository's README says its issue tracker is closed.[2][3]
Key facts
| Item | Detail |
|---|---|
| Developers | Erwin Coumans, Yunfei Bai, Jasmine Hsu (PyPI author list)[2] |
| Underlying engine | Bullet Physics SDK (C++)[3] |
| First PyPI release | 0.1.1, 2017-04-03[2] |
| Latest PyPI release (as of November 2026) | 3.2.7, 2025-01-30[2] |
| License | zlib[2][3] |
| Repository | github.com/bulletphysics/bullet3[3] |
| Model formats | URDF, SDF, MJCF, .bullet[1] |
| Default time step | 1/240 second[1] |
| Documentation | PyBullet Quickstart Guide (Google Docs)[1] |
History
Bullet Physics
Bullet is a C++ library for real-time collision detection and multi-physics simulation. Its repository describes it as serving "VR, games, visual effects, robotics, machine learning etc." and states that the source is licensed under the permissive zlib license unless a folder or file says otherwise.[3] Erwin Coumans is the library's main author. A 2011 fxguide profile reported that he had recently joined AMD after working at Sony Computer Entertainment in R&D, and that visual effects studios including Digital Domain, Framestore and Weta Digital, as well as 3D packages such as Cinema 4D, Houdini, 3ds Max, Blender and Maya, had adopted the engine. Coumans attributed much of that adoption to the permissive license, which let studios customize the source.[5]
In January 2015 the Academy of Motion Picture Arts and Sciences announced a Technical Achievement Award for Coumans "for the development of the Bullet physics library", shared with Nafees Bin Zafar and Stephen Marshall for two separate large-scale destruction simulation systems built on Bullet.[6][23]
Python bindings and robotics focus
PyBullet first appeared in the Bullet 2.85 release of 15 October 2016, whose notes said it "introduces pybullet, easy to use Python bindings" together with virtual reality support and inverse kinematics and dynamics. Bullet 2.86, released in February 2017, improved the bindings for robotics, machine learning and VR and added preliminary loading of MuJoCo MJCF files.[4] The project's recommended citation also dates it to 2016, and the first versions of the package appeared on PyPI on 3 April 2017.[2][3] The quickstart guide explains that PyBullet wraps a newer Bullet C API designed to be independent of the underlying physics and rendering engines, so that the bindings could move to newer Bullet versions or a different engine; by default it runs the Bullet 2.x API on the CPU.[1]
Much of the robotics work came out of Google. The 2018 paper "Sim-to-Real: Learning Agile Locomotion For Quadruped Robots" lists Coumans as a Google Brain author and Bai at X, and its authors built their simulation of the Minitaur quadruped "using PyBullet", which they describe as a module that "extends the Bullet Physics Engine with robotics and machine learning capabilities."[7] The Bullet 2.88 release notes say the SDK "was used in several published research papers by Google Brain Robotics", naming that RSS 2018 paper.[4] The PyPI listing gives a google.com contact address for Coumans.[2] As of November 2026 Coumans's GitHub profile lists NVIDIA.[19]
Release timeline
The table lists GitHub releases of the Bullet repository that were announced with PyBullet changes, plus the first and the later PyPI-only releases. Dates are GitHub release dates unless marked PyPI.
| Date | Release | Notes |
|---|---|---|
| 2016-10-15 | Bullet 2.85 | Introduced pybullet, with VR support and inverse kinematics and dynamics[4] |
| 2017-02-19 | Bullet 2.86 | Improved pybullet bindings, preliminary MJCF loading[4] |
| 2017-04-03 | PyBullet 0.1.1 (PyPI) | First version on PyPI[2] |
| 2017-09-29 | Bullet 2.87 | Robotics and RL environments, VR support, preliminary C# bindings for Unity[4] |
| 2018-12-31 | Bullet 2.88 | Determinism when saving and restoring state, more accurate GJK collision detection and multibody dynamics[4] |
| 2019-12-21 | Bullet 2.89 | Finite element method deformables and cloth, Laikago quadruped model, DeepMimic reimplementation[4] |
| 2020-09-24 | 3.06 | Release used for the animal-imitation locomotion research[4] |
| 2021-05-07 | PyBullet 3.1.7 / Bullet 3.17 | Same research release notes; 3.1.7 reached PyPI on this date, while the GitHub release page carries an earlier date of 2020-11-26[2][4] |
| 2021-12-01 | 3.21 | GitHub release[4] |
| 2022-04-24 | PyBullet 3.2.5 (GitHub) | Bug fixes, faster debug point rendering for point clouds; 3.2.5 reached PyPI on 2022-05-20[2][4] |
| 2023-11-28 | PyBullet 3.2.6 (PyPI) | PyPI release[2] |
| 2025-01-30 | PyBullet 3.2.7 (PyPI) | Rebuilt wheels compatible with NumPy 1.x and 2.0[2][21] |
Maintenance status
Activity in the repository has been light since 2022. The commit history shows a handful of changes in 2024 and 2025, including a pyproject.toml in October 2025, and three README edits in October 2026.[21] The README states that "The Issue tracker was flooded with support questions and is closed until it is cleaned up" and points readers to the historic discussion forums at bulletphysics.github.io.[3] The most recent news post on pybullet.org is from March 2022.[9]
Design and features
Client-server architecture
PyBullet is organized around a client-server API: the Python client sends commands and a physics server returns status. A DIRECT connection runs the physics engine in the same process with no window, and GUI adds an OpenGL visualizer. Other modes connect to a separate physics server over shared memory, UDP or TCP, so a script on Linux can drive a simulation running on a Windows VR machine.[1] The bullet_client helper in pybullet_utils wraps the API so that several independent simulations can run side by side, and the bundled Gym environments use it for parallel training.[1]
A minimal script adapted from the quickstart guide connects to the simulator, sets gravity, loads a plane and a robot from URDF, and steps the simulation in a loop:[1]
import pybullet as p
import time
import pybullet_data
physicsClient = p.connect(p.GUI) # or p.DIRECT for non-graphical version
p.setAdditionalSearchPath(pybullet_data.getDataPath())
p.setGravity(0, 0, -10)
planeId = p.loadURDF("plane.urdf")
boxId = p.loadURDF("r2d2.urdf", [0, 0, 1], p.getQuaternionFromEuler([0, 0, 0]))
for i in range(10000):
p.stepSimulation()
time.sleep(1./240.)
p.disconnect()
Dynamics and control
Each call to stepSimulation performs collision detection, constraint solving and integration, with a default time step of 1/240 second.[1] By default, joints loaded from URDF use reduced coordinates simulated with the Featherstone Articulated Body Algorithm (Bullet's btMultiBody); an option instead builds each link as a separate rigid body joined by constraints. The quickstart says multibodies, rigid bodies and deformables are handled by a single LCP constraint solver.[1] The Sim-to-Real paper describes the engine as solving the equations of motion for articulated rigid bodies in generalized coordinates while satisfying contact, joint-limit and actuator constraints, then integrating with a semi-implicit scheme.[7]
Joint motors can be driven in position, velocity, torque and PD control modes, with an experimental stable PD mode used by the DeepMimic examples.[1] The API also exposes inverse dynamics, Jacobians, a mass matrix computed with the composite rigid body algorithm, and inverse kinematics.[1] Users can add constraints between links to close kinematic loops that URDF trees cannot express, such as the five-bar leg linkage of a quadruped.[1]
Deformables
Besides articulated and rigid bodies, PyBullet simulates cloth and volumetric deformables with two-way coupling to rigid bodies. Position based dynamics is the default, and a finite element method world can be enabled with resetSimulation(p.RESET_USE_DEFORMABLE_WORLD).[1] The Bullet 2.89 release credited Xuchen Han with the finite element implementation.[4]
Rendering, sensing and tools
getCameraImage returns an RGB image, a depth buffer and a per-pixel segmentation mask of body IDs from an arbitrary camera. Images can come from the OpenGL renderer or from TinyRenderer, a CPU software renderer that works in DIRECT mode on servers without a GPU. On Linux an EGL plugin allows hardware OpenGL rendering without an X11 display, for example in the cloud or in Google Colab.[1] Other features include collision queries (contact points, closest points, overlapping bounding boxes, batched ray tests), state logging including MP4 video, saving and restoring simulation state, virtual reality support for HTC Vive and Oculus Rift headsets, debug drawing and GUI sliders, and a C/C++ plugin interface used internally for features such as PD control and rendering.[1]
Reinforcement learning environments
Installing the package also installs pybullet_envs, a suite of environments registered with OpenAI Gym, and pybullet_data, a collection of URDF and SDF robot models and meshes.[1] The registration code imports the original gym package rather than its successor Gymnasium.[18] The quickstart guide states that the developers "ported the Roboschool environments to pybullet" and calls them harder than the MuJoCo Gym equivalents.[1]
| Environment | Description |
|---|---|
| MinitaurBulletEnv-v0 | Ghost Robotics Minitaur quadruped on flat ground, used for the RSS 2018 sim-to-real paper[1] |
| HumanoidDeepMimicBackflipBulletEnv-v1, HumanoidDeepMimicWalkBulletEnv-v1 | Reimplementation of DeepMimic, a humanoid imitating reference motion[1] |
| RacecarBulletEnv-v0, RacecarZedBulletEnv-v0 | MIT RC racecar driving toward a ball, from position or camera pixels[1] |
| KukaBulletEnv-v0, KukaCamBulletEnv-v0 | KUKA iiwa arm grasping an object in a tray, from state or pixels[1] |
| AntBulletEnv-v0, HalfCheetahBulletEnv-v0, HopperBulletEnv-v0, Walker2DBulletEnv-v0, HumanoidBulletEnv-v0 | Locomotion tasks ported from Roboschool[1] |
| InvertedPendulumBulletEnv-v0, InvertedDoublePendulumBulletEnv-v0, InvertedPendulumSwingupBulletEnv-v0 | Pendulum balancing tasks[1] |
The guide includes examples of training these tasks with Stable Baselines, TensorFlow Agents PPO, and methods such as augmented random search and evolution strategies.[1][4] When OpenAI deprecated Roboschool on 27 September 2019, its README told users "We are deprecating Roboschool and now recommend using PyBullet instead."[10]
Use in research
PyBullet became a common base for robot learning work, especially for sim-to-real transfer, and for frameworks that other researchers build on.
| Year | Project | Use of PyBullet |
|---|---|---|
| 2018 | Sim-to-Real: Learning Agile Locomotion For Quadruped Robots (Tan et al., Google) | Minitaur simulation for trotting and galloping gaits, improved with an actuator model, latency and randomization, then deployed on the real robot[7] |
| 2019 | Assistive Gym (Erickson et al.) | Simulation framework for robots assisting people with tasks such as feeding, dressing and bathing; presented at ICRA 2020[9][12] |
| 2020 | Learning Agile Robotic Locomotion Skills by Imitating Animals (Peng et al., Google Research and UC Berkeley) | All simulations run in PyBullet; won the RSS 2020 Best Paper Award[8][9] |
| 2020 | Transporter Networks and Ravens (Zeng et al., CoRL 2020) | Ravens is "a collection of simulated tasks in PyBullet" for vision-based pick and place[13][22] |
| 2021 | gym-pybullet-drones (Panerati et al.) | Gym environment for single and multi-agent quadcopter control, accepted at IROS 2021[14] |
| 2021 | panda-gym (Gallouédec et al.) | Goal-conditioned tasks for the Franka Emika Panda arm; the authors chose the open-source PyBullet engine to support open research[15] |
| 2022 | Kubric (Greff et al., CVPR 2022) | Synthetic video dataset generator that interfaces with PyBullet and Blender[16] |
Other projects listed on the Bullet site include the Alphabet "Everyday Robot" work, and Meta's AI Habitat simulator added Bullet physics in version 0.1.3.[9] The Bullet site also announced the Tiny Differentiable Simulator, a separate differentiable physics engine used in the ICRA 2021 paper "NeuralSim: Augmenting Differentiable Simulators with Neural Networks", which Coumans co-authored; the site says it can run entirely on CUDA and reach 1 million simulation steps per second when combined with augmented random search.[9][17]
Reception and comparisons
A 2024 review of nine physics engines for reinforcement learning by Kaup and colleagues counted, as of 6 September 2023, 1,308 publications citing PyBullet on Google Scholar, more than 1,000 of them in machine learning, and named MuJoCo and PyBullet the most popular engines by number of machine learning papers citing them.[11] The review concluded that "PyBullet offers similar features and usability as MuJoCo, but consistently rates worse in performance reviews," while crediting it with a wide range of functions for loading and defining models.[11] Summarizing earlier benchmarks, it reported that one study found PyBullet ran at a lower real-time factor than MuJoCo but was praised for usability, and that another found agents trained in PyBullet did not transfer their skills to other engines.[11]
The same review criticized the documentation as scattered across Google Docs and PDF files, while noting that PyBullet "has a large community."[11] Another limit for large-scale training is parallelism: PyBullet runs Bullet 2.x on the CPU by default, and GPU execution of collision detection and rigid body dynamics exists in the Bullet repository only as experimental OpenCL support.[1][3]
Installation and license
PyBullet is installed with pip install pybullet.[3] As of November 2026, PyPI provides precompiled 3.2.7 wheels only for Linux on x86-64 (CPython 3.6 to 3.11 and PyPy); on other platforms pip falls back to the source distribution, which has to be compiled.[2] The package is released under the permissive zlib license.[2][3] It had about 290,000 downloads in the 30 days before 18 November 2026, according to PyPI Stats.[20]
Continue reading
- Simulation (in AI and robotics)Simulation in artificial intelligence and robotics is the use of computational physics, rendering, and procedural environments to recreate a synthetic version of a physical or virtual world inside which AI…Mentioned 14 times above
- Gym (OpenAI Gym / Gymnasium)Gym, often written as OpenAI Gym, is an open source Python toolkit for developing and comparing reinforcement learning algorithms, originally released by openai on April 27, 2016.Mentioned 9 times above
- MuJoCoMuJoCo (short for Multi-Joint dynamics with Contact) is an open-source physics simulator designed for fast and accurate simulation of articulated mechanical systems with rich contact interactions.Mentioned 5 times above
- Sim-to-real transferSim-to-real transfer (also written as sim2real) is the process of training a policy, controller, or perception model inside a physics simulator and deploying it on a physical robot in the real world without…Mentioned twice above
- Robot learningRobot learning studies how robots acquire or improve behavior from data and experience.Listed in See also
- NVIDIA Isaac LabNVIDIA Isaac Lab is an open-source, GPU-accelerated framework for robot learning that trains robot control policies at scale by running thousands of physics simulations in parallel on GPUs.Listed in See also
More from See also
More to read
Topics:Developer ToolsOpen Source AIReinforcement LearningRobotics
References
- ^1 ^2 ^3 ^4 ^5 ^6 ^7 ^8 ^9 ^10 ^11 ^12 ^13 ^14 ^15 ^16 ^17 ^18 ^19 ^20 ^21 ^22 ^23 ^24 ^25 ^26 ^27 ^28 ^29Erwin Coumans, Yunfei Bai. "PyBullet Quickstart Guide". Google Docs, 2016-2023. docs.google.com/...edit
- ^1 ^2 ^3 ^4 ^5 ^6 ^7 ^8 ^9 ^10 ^11 ^12 ^13 ^14 ^15 ^16Python Package Index. "pybullet 3.2.7". PyPI, 2025-01-30. pypi.org/...pybullet
- ^1 ^2 ^3 ^4 ^5 ^6 ^7 ^8 ^9 ^10bulletphysics. "Bullet Physics SDK" (README). GitHub, accessed November 2026. github.com/...bullet3
- ^1 ^2 ^3 ^4 ^5 ^6 ^7 ^8 ^9 ^10 ^11 ^12 ^13 ^14bulletphysics. "Releases: bulletphysics/bullet3". GitHub, 2017-2022. github.com/...releases
- ^Mike Seymour. "Bullet open source physics engine". fxguide, 2011-01-03. fxguide.com/...bullet_open_source_physics_engine
- ^Bullet Real-Time Physics Simulation. "Scientific and Technical Academy Award for the development of Bullet Physics!". pybullet.org, 2015-01-23. pybullet.org/...index.html%3Fp=427
- ^1 ^2 ^3 ^4Jie Tan, Tingnan Zhang, Erwin Coumans, Atil Iscen, Yunfei Bai, Danijar Hafner, Steven Bohez, Vincent Vanhoucke. "Sim-to-Real: Learning Agile Locomotion For Quadruped Robots". arXiv:1804.10332, 2018. arxiv.org/...1804.10332
- ^1 ^2Xue Bin Peng, Erwin Coumans, Tingnan Zhang, Tsang-Wei Edward Lee, Jie Tan, Sergey Levine. "Learning Agile Robotic Locomotion Skills by Imitating Animals". Robotics: Science and Systems (RSS 2020), project page. xbpeng.github.io/...Robotic_Imitation
- ^1 ^2 ^3 ^4 ^5Bullet Real-Time Physics Simulation. "Home of Bullet and PyBullet: physics simulation for games, visual effects, robotics and reinforcement learning" (news posts 2019-2022). pybullet.org. pybullet.org
- ^1 ^2OpenAI. "Roboschool" (README, deprecation notice of 2019-09-27). GitHub. github.com/...roboschool
- ^1 ^2 ^3 ^4 ^5Michael Kaup, Cornelius Wolff, Hyerim Hwang, Julius Mayer, Elia Bruni. "A Review of Nine Physics Engines for Reinforcement Learning Research". arXiv:2407.08590, 2024. arxiv.org/...2407.08590
- ^Zackory Erickson, Vamsee Gangaram, Ariel Kapusta, C. Karen Liu, Charles C. Kemp. "Assistive Gym: A Physics Simulation Framework for Assistive Robotics". arXiv:1910.04700, 2019. arxiv.org/...1910.04700
- ^Andy Zeng, Pete Florence, Jonathan Tompson, Stefan Welker, Jonathan Chien, Maria Attarian, Travis Armstrong, Ivan Krasin, Dan Duong, Ayzaan Wahid, Vikas Sindhwani, Johnny Lee. "Transporter Networks: Rearranging the Visual World for Robotic Manipulation". arXiv:2010.14406, 2020. arxiv.org/...2010.14406
- ^Jacopo Panerati, Hehui Zheng, SiQi Zhou, James Xu, Amanda Prorok, Angela P. Schoellig. "Learning to Fly -- a Gym Environment with PyBullet Physics for Reinforcement Learning of Multi-agent Quadcopter Control". arXiv:2103.02142, 2021. arxiv.org/...2103.02142
- ^Quentin Gallouédec, Nicolas Cazin, Emmanuel Dellandréa, Liming Chen. "panda-gym: Open-source goal-conditioned environments for robotic learning". NeurIPS 2021 Workshop on Robot Learning, arXiv:2106.13687. arxiv.org/...2106.13687
- ^Klaus Greff et al. "Kubric: A scalable dataset generator". CVPR 2022, arXiv:2203.03570. arxiv.org/...2203.03570
- ^Eric Heiden, David Millard, Erwin Coumans, Yizhou Sheng, Gaurav S. Sukhatme. "NeuralSim: Augmenting Differentiable Simulators with Neural Networks". ICRA 2021, arXiv:2011.04217. arxiv.org/...2011.04217
- ^bulletphysics. "pybullet_envs/__init__.py". GitHub. github.com/...__init__.py
- ^Erwin Coumans. "erwincoumans" (GitHub profile). GitHub, accessed November 2026. github.com/erwincoumans
- ^PyPI Stats. "pybullet". pypistats.org, accessed 2026-11-18. pypistats.org/...pybullet
- ^1 ^2bulletphysics. "Commits: bulletphysics/bullet3". GitHub, accessed November 2026. github.com/...master
- ^Google Research. "Ravens" (README). GitHub. github.com/...ravens
- ^Randall Newton. "Motion picture academy honors software makers". GfxSpeak, 2015-02-09. gfxspeak.com/...picture-academy-software
Improve this article
Add missing citations, update stale details, or write a clearer explanation. Anyone can edit: changes go live when you publish, and every edit is checked by an editor.
2 revisions · v2 · 2,837 words · full history
Fact-checks are independent of edits: a reviewer re-verifies the article against its sources and stamps the date. How we verify
Research and drafting on this wiki are AI-assisted, under named human editorial standards. How AI is used here
Reviewer note: Independent fact-check before publication on November 18, 2026: 74 claims checked against 26 cited and independent sources; 1 material and 5 minor corrections applied before publication.
Cite this page: AI Wiki. "PyBullet." aiwiki.ai, updated 18 Nov 2026, fact-checked 18 Nov 2026. CC BY 4.0. https://aiwiki.ai/wiki/pybullet
