Commit Graph

127 Commits

Author SHA1 Message Date
Erwin Coumans
762c21601f cache zipfile, and also allow to read zipfile from memory
this allows zipfiles to be stored anywhere in already registed fileIO (such as zipfiles inside other zipfiles)
see Bullet/examples/pybullet/examples/fileIOPlugin.py
enable vhacd, fileIO and zipFileIO in premake version of PyBullet
fix potential memory leak in mtl loading
2020-03-30 14:24:20 -07:00
Erwin Coumans
d3fdf434ed few more fixes in pybullet setup.py 2020-03-17 10:38:51 -07:00
Erwin Coumans
88ce0be26b fix int64_t 2020-03-17 17:20:57 -07:00
Erwin Coumans
d31c248751 fixes for compilation on Visual C++ for Python 9.0
bump up to PyBullet 2.6.9
2020-03-17 17:10:47 -07:00
Erwin Coumans
eee7bcbc14 remove debug/profile tag 2020-01-11 13:16:12 -08:00
Erwin Coumans
2336dfcb9e Remove a temporary global static work matrix in the BussIK, since it conflicts with multithreaded applications.
Instead, let the user pass it in explicitly.
2020-01-11 12:43:27 -08:00
Erwin Coumans
b6e5609f90 fix mac osx compilation 2019-09-30 14:08:22 -07:00
Chuyuan Fu
eacebc80d5 fix compile 2019-08-14 11:01:48 -07:00
Chuyuan Fu
10108cd3ea update obj loader 2019-08-13 16:53:51 -07:00
Erwin Coumans
ee9575167d expose PyBullet.calculateInverseKinematics2 that allows to specify multiple IK end effector locations (not multiple orientations)
usage example:
jointPoses = p.calculateInverseKinematics2(bodyUniqueId, [endEffectorLinkIndices], [endEffectorTargetWorldPositions])
2019-07-10 17:21:18 -07:00
erwincoumans
d7c0c9c017 update ExampleBrowser InverseKinematics example to track 4 end effectors at once. 2019-06-01 19:43:27 -07:00
Erwin Coumans
0409478152 use certain methods from std namespace 2019-03-23 12:45:59 -07:00
Erwin Coumans
150a6a0880 Qualify calls to certain functions from the cmath library. 2019-03-14 16:57:50 -07:00
erwincoumans
b574a360f5
Merge pull request #2055 from xantares/pybullet
Pybullet enhancements
2019-02-10 20:25:47 -08:00
erwincoumans
ae8e83988b Add preliminary PhysX 4.0 backend for PyBullet
Add inverse dynamics / mass matrix code from DeepMimic, thanks to Xue Bin (Jason) Peng
Add example how to use stable PD control for humanoid with spherical joints (see humanoidMotionCapture.py)
Fix related to TinyRenderer object transforms not updating when using collision filtering
2019-01-22 21:08:37 -08:00
Michel Zou
e9112a9f5f Install examples lib 2019-01-12 11:06:06 +01:00
Erwin Coumans
d4db50f668 PyBullet: fix some file leaks. 2018-12-04 19:37:25 +01:00
Erwin Coumans
fd3d292fcf tinyRenderer, remove both \r and \n, not just \n 2018-10-13 11:46:46 -07:00
Erwin Coumans
295732149f add missing stdio.h 2018-10-09 07:01:02 -07:00
erwincoumans
dba239fe8d First pass of load files through an interface (to allow loading from memory, zip file etc). So instead of posix fopen/fread, using CommonFileIOInterface.
A fileIO plugin can override custom file IO operations. As a small test, load files from a zipfile in memory.
Default fileIO implementation is in examples/Utils/b3BulletDefaultFileIO.h
Affects URDF, SDF, MJCF, Wavefront OBJ, STL, DAE, images.
2018-10-08 21:27:08 -07:00
Erwin Coumans
42ae4e81a8 apply clang-format (on Mac, slightly different than running it on Windows) 2018-09-30 11:43:57 -07:00
erwincoumans
5bcd43711a PyBullet OpenGL/EGL hardware getCameraImage: use glViewport to reduce the glReadPixels calling cost dramatically for small images
PyBullet Allow OpenGL/EGL hardware to render segmentation mask. Use pybullet.ER_SEGMENTATION_MASK_OBJECT_AND_LINKINDEX or pybullet.ER_SEGMENTATION_MASK
PyBullet.removeBody fix indexing bug (use foundIndex, not i)
PyBullet bump up version to 2.2.3
2018-09-30 07:10:40 -07:00
erwincoumans
ab8f16961e Code-style consistency improvement:
Apply clang-format-all.sh using the _clang-format file through all the cpp/.h files.
make sure not to apply it to certain serialization structures, since some parser expects the * as part of the name, instead of type.
This commit contains no other changes aside from adding and applying clang-format-all.sh
2018-09-23 14:17:31 -07:00
Erwin Coumans
0de99f224a fix compilation on ARM (Ubuntu 18.04, NVIDIA Xavier) 2018-09-19 16:18:06 -07:00
Erwin Coumans
23ecbab7b3 fix setup.py and pybullet to work better with eglPlugin on Linux 2018-09-11 13:24:35 -07:00
erwincoumans
684a9f6a99 move stb_image/stb_image_write.cpp into a cpp file instead of random files with the magic 'STB_IMAGE_WRITE_IMPLEMENTATION' define
move setup.py back to eglRenderer extension, use pkgutil.get_loader('eglRenderer').get_filename()
disable dlmopen by default, unless B3_USE_DLMOPEN is defined.
2018-09-10 23:18:34 -07:00
Max Argus
9328d0bb5f fix build 2018-08-30 13:24:25 +02:00
Max Argus
f0e7f266ef switched to new glad2 2018-08-30 13:24:25 +02:00
a
3d499c8a7a pybullet: added EGL render device and window_backend option.
EGL review.
EGL dynamic loading, windowType to int
moved to glad2
Require GL 3.3 as GLInstancingRenderer.cpp uses glVertexAttribDivisor
glad2 update with dynamic X11 added
removed old file
build fix
fix mac/win
EGL w/o c++11, off by default
fix premake
fixup: premake fix 2
2018-08-30 13:24:25 +02:00
Erwin Coumans
0c706eb08a fix some incompatibilities between google3/third_party/GL,EGL, glad 2018-05-03 09:06:30 -07:00
erwincoumans
b0d421fa11
Merge pull request #1632 from erwincoumans/master
upgrade from tinyxml to tinyxml2
2018-04-12 07:30:05 -07:00
erwincoumans
9c77e07494 upgrade from tinyxml to tinyxml2 2018-04-12 00:09:44 -07:00
Igor Kalevatykh
7c163f2163 Add VR/OpenVR support on Linux 2018-04-05 00:14:08 +02:00
Erwin Coumans
4d6e2c1905 update imgui test 2018-02-24 14:57:49 -08:00
Erwin Coumans
c2b59776ed CMakeLists glew to glad 2018-02-20 21:09:31 -08:00
Erwin Coumans
d583269430 fix glad_glx on linux 2018-02-20 20:57:55 -08:00
Erwin Coumans
850b8b0493 add glad_glx files 2018-02-20 20:15:26 -08:00
Erwin Coumans
b0984de046 preparation to replace glew by glad 2018-02-20 19:44:02 -08:00
Erwin Coumans
508550c5e9 fix premake build for linux, thanks to @consultit
See also issue #1538
2018-02-09 18:46:26 -08:00
Erwin Coumans
e35b0c5643 remove obsolete 'register' from BussIK 2017-11-17 12:09:21 -08:00
erwincoumans
493d7bc94d obj2sdf, add option to merge shapes with same materials, add support for transparent objects
tiny_obj_loader, load the "d" and "Tr" transparant tag
2017-11-04 19:17:20 -07:00
d3x0r
88b49947b5 Composite of fixed code for mingw64(on windows) and general fixes for msvc.
1) (win32window) don't convert char to wide, use char direct to window.
2) (CMakeLists) Don't link one library as static CPPLIB and no others (mismatched allocations)
3) (macros) Fix Gwen macros for mingw64 on windows build.  (changes are by compiler(msc_ver) not platform)
4) (FileUtils) sprintf_s reference by platform, not compiler (mingw64 support)
5) (b3OpenCLUtils) fix bad define name _MSVC_VER->_MSC_VER
6) (compoundCollision) remove unused variables, simplify operation.
7) (impulseconstraint) remove duplicated code block
2017-10-28 14:42:38 -07:00
yunfeibai
dda1b05f4a Expose IK solver options including DLS and SDLS. 2017-10-19 14:00:53 -07:00
Julien Schueller
9a9054728f Windows case sentitive fs build fix 2017-10-15 02:05:01 +02:00
Julien Schueller
764d4a01de Windows case sentitive fs build fix 2017-10-14 18:01:44 +02:00
Erwin Coumans
10527e12eb fix Mac OSX build, openvr 32bit/64bit was not selected, library out-of-date 2017-10-11 17:20:26 -07:00
Erwin Coumans
f2c64fdf40 bump up openvr to 1.0.10 for Linux and Mac 2017-10-10 22:25:36 -07:00
erwincoumans
254fd330f8 bump up ThirdPartyLibs/openvr to latest 1.0.10 from https://github.com/ValveSoftware/openvr
(Windows only, Linux/Mac will follow in next commit)
2017-10-10 22:13:04 -07:00
yunfeibai
adcece7927 Adjust the IK setup to address the inverse kinematics issues mentioned in #1249. 2017-09-27 14:14:57 -07:00
Erwin Coumans
ae8f12e8ba more fixes for retina + glfw + opengl2 fallback 2017-09-20 13:09:18 -07:00