Go to file
2021-01-20 16:45:23 +09:00
.ci try to fix travis builds 2020-08-31 18:58:11 -07:00
build3 Merge branch 'master' into master 2020-07-24 18:10:40 -07:00
data * add textured models of ball.vtk (obj/mtl) and torus (obj/mtl) and cloth. 2020-09-12 01:03:04 -07:00
docs update PyBullet quickstart guide.pdf 2019-12-20 16:30:15 -08:00
examples no nullptr 2021-01-20 16:45:23 +09:00
Extras bump up PyBullet and Bullet version to 3.05 (in sync for this release) 2020-09-24 10:11:37 -07:00
src bump up version to 3.08 2020-12-22 17:27:11 -08:00
test E2K: strip UTF-8 BOM for MCST lcc compiler < 1.24 2020-10-28 21:51:18 +03:00
_clang-format clang-format pybullet.c 2017-03-13 16:06:52 -07:00
.gitignore Remove unused thread-unsafe debug variable 'maxIteration' that is no longer used in btQuantizedBvh.cpp 2020-05-06 11:03:39 -07:00
.style.yapf add yapf style and apply yapf to format all Python files 2019-04-27 07:31:15 -07:00
.travis.yml Update .travis.yml 2021-01-19 11:28:55 -08:00
appveyor.yml Update appveyor.yml 2016-09-11 10:10:25 +01:00
AUTHORS.txt add a few more contributors (the list is far from complete though) 2017-09-24 11:41:24 -07:00
build_cmake_pybullet_double.sh fixes in PyBullet deep_mimic to allow running in pip version 2019-02-11 08:51:07 -08:00
build_visual_studio_vr_pybullet_double_cmake.bat vs2019 2020-06-25 16:31:29 -07:00
build_visual_studio_vr_pybullet_double_dynamic.bat Add --dynamic-runtime option to compile with /MD[d] in MSVC for compat 2020-06-30 17:12:11 +01:00
build_visual_studio_vr_pybullet_double.bat premake: don't compile standalone-examples, they are not up-to-date 2020-10-07 08:42:32 -07:00
build_visual_studio_without_pybullet_vr.bat Created Wavefront obj to sdf converter, to make it easier to import complex obj models with many materials. See kitchen for example. 2017-03-01 10:06:10 -08:00
bullet.pc.cmake Update bullet.pc.cmake 2019-10-31 13:53:00 +11:00
BulletConfig.cmake.in Add the old Bullet 2.x obsolete demos, and CMake buildsystem files, and gradually move them to newer Bullet 3.x structure 2013-12-19 12:40:59 -08:00
clang-format-all.sh apply clang-format (on Mac, slightly different than running it on Windows) 2018-09-30 11:43:57 -07:00
CMakeLists.txt cmake OPTION(USE_OPENVR OFF) so only compile OpenVR VR examples when explicitly set to ON 2020-12-04 08:52:28 -08:00
Doxyfile add Doxyfile 2015-05-01 16:51:59 -07:00
LICENSE.txt add latex source of Bullet 2.82 quickstart guide, todo: update to current release 2015-04-29 15:12:31 -07:00
MANIFEST.in also include inl files 2020-03-15 19:31:58 -07:00
README.md Update README.md 2020-03-19 09:15:19 -07:00
setup.py bump up version to 3.08 2020-12-22 17:27:11 -08:00
UseBullet.cmake fix make install, when using CMake 2014-03-06 11:40:35 -08:00
VERSION bump up version to 3.08 2020-12-22 17:27:11 -08:00
xcode.command move some easy-to-use build files for Mac OSX, Linux and Windows 2016-05-21 10:45:08 -07:00

Travis Build Status Appveyor Build status

Bullet Physics SDK

This is the official C++ source code repository of the Bullet Physics SDK: real-time collision detection and multi-physics simulation for VR, games, visual effects, robotics, machine learning etc.

PyBullet

PyBullet

New in Bullet 2.85: pybullet Python bindings, improved support for robotics and VR. Use pip install pybullet and checkout the PyBullet Quickstart Guide.

Installation is simple:

pip3 install pybullet --upgrade --user
python3 -m pybullet_envs.examples.enjoy_TF_AntBulletEnv_v0_2017may
python3 -m pybullet_envs.examples.enjoy_TF_HumanoidFlagrunHarderBulletEnv_v1_2017jul
python3 -m pybullet_envs.deep_mimic.testrl --arg_file run_humanoid3d_backflip_args.txt

If you use PyBullet in your research, please cite it like this:

@MISC{coumans2019,
author =   {Erwin Coumans and Yunfei Bai},
title =    {PyBullet, a Python module for physics simulation for games, robotics and machine learning},
howpublished = {\url{http://pybullet.org}},
year = {2016--2019}
}

Requirements for Bullet Physics C++

A C++ compiler for C++ 2003. The library is tested on Windows, Linux, Mac OSX, iOS, Android, but should likely work on any platform with C++ compiler. Some optional demos require OpenGL 2 or OpenGL 3, there are some non-graphical demos and unit tests too.

Contributors and Coding Style information

https://docs.google.com/document/d/1u9vyzPtrVoVhYqQOGNWUgjRbfwfCdIts_NzmvgiJ144/edit

Requirements for experimental OpenCL GPGPU support

The entire collision detection and rigid body dynamics can be executed on the GPU.

A high-end desktop GPU, such as an AMD Radeon 7970 or NVIDIA GTX 680 or better. We succesfully tested the software under Windows, Linux and Mac OSX. The software currently doesn't work on OpenCL CPU devices. It might run on a laptop GPU but performance will not likely be very good. Note that often an OpenCL drivers fails to compile a kernel. Some unit tests exist to track down the issue, but more work is required to cover all OpenCL kernels.

License

All source code files are licensed under the permissive zlib license (http://opensource.org/licenses/Zlib) unless marked differently in a particular folder/file.

Build instructions for Bullet using vcpkg

You can download and install Bullet using the vcpkg dependency manager:

git clone https://github.com/Microsoft/vcpkg.git
cd vcpkg
./bootstrap-vcpkg.sh
./vcpkg integrate install
vcpkg install bullet3

The Bullet port in vcpkg is kept up to date by Microsoft team members and community contributors. If the version is out of date, please create an issue or pull request on the vcpkg repository.

Build instructions for Bullet using premake. You can also use cmake instead.

Windows

Click on build_visual_studio_vr_pybullet_double.bat and open build3/vs2010/0_Bullet3Solution.sln When asked, convert the projects to a newer version of Visual Studio. If you installed Python in the C:\ root directory, the batch file should find it automatically. Otherwise, edit this batch file to choose where Python include/lib directories are located.

Windows Virtual Reality sandbox for HTC Vive and Oculus Rift

Build and run the App_SharedMemoryPhysics_VR project, preferably in Release/optimized build. You can connect from Python pybullet to the sandbox using:

import pybullet as p
p.connect(p.SHARED_MEMORY) #or (p.TCP, "localhost", 6667) or (p.UDP, "192.168.86.10",1234)

Linux and Mac OSX gnu make

Make sure cmake is installed (sudo apt-get install cmake, brew install cmake, or https://cmake.org)

In a terminal type:

./build_cmake_pybullet_double.sh

This script will invoke cmake and build in the build_cmake directory. You can find pybullet in Bullet/examples/pybullet. The BulletExampleBrowser binary will be in Bullet/examples/ExampleBrowser.

You can also build Bullet using premake. There are premake executables in the build3 folder. Depending on your system (Linux 32bit, 64bit or Mac OSX) use one of the following lines Using premake:

	cd build3
	./premake4_linux --double gmake
	./premake4_linux64 --double gmake
	./premake4_osx --double --enable_pybullet gmake

Then

	cd gmake
	make

Note that on Linux, you need to use cmake to build pybullet, since the compiler has issues of mixing shared and static libraries.

Mac OSX Xcode

Click on build3/xcode4.command or in a terminal window execute

./premake_osx xcode4

Usage

The App_ExampleBrowser executables will be located in the bin folder. You can just run it though a terminal/command prompt, or by clicking it.

[--start_demo_name="Demo Name"]     Start with a selected demo  
[--mp4=moviename.mp4]               Create a mp4 movie of the window, requires ffmpeg installed
[--mouse_move_multiplier=0.400000]  Set the mouse move sensitivity
[--mouse_wheel_multiplier=0.01]     Set the mouse wheel sensitivity
[--background_color_red= 0.9]       Set the red component for background color. Same for green and blue
[--fixed_timestep= 0.0]             Use either a real-time delta time (0.0) or a fixed step size (0.016666)

You can use mouse picking to grab objects. When holding the ALT or CONTROL key, you have Maya style camera mouse controls. Press F1 to create a series of screenshots. Hit ESCAPE to exit the demo app.

Check out the docs folder and the Bullet physics forums for further information.