Erwin Coumans
4743d2770a
fix recently introduced crashing bug in MJCF reader
...
due to https://github.com/bulletphysics/bullet3/pull/1484 (Issue 1484)
2018-01-03 21:47:58 -08:00
Erwin Coumans
36c258fd3d
fix PhysicsLoopBack
2018-01-03 21:38:09 -08:00
Erwin Coumans
79d78a325a
Start of a urdfEditor.py, limited support to extract a URDF from a PyBullet body.
...
Use btCylinderShapeZ for URDF cylinder, instead of converting it to a btConvexHullShape.
Implement PyBullet.getCollisionShapeData
Extend PyBullet.getDynamicsInfo / b3GetDynamicsInfo, remove flag (don't rely on API returning a fixed number of elements in a list!)
Extend PyBullet.getJointInfo: add parentIndex
2018-01-03 19:17:28 -08:00
erwincoumans
a1492f50fc
Merge pull request #1492 from erwincoumans/master
...
implement pybullet.saveState command, for in-memory storage of state.
2017-12-31 19:19:35 -08:00
Erwin Coumans
35b44f8a85
implement pybullet.saveState command, for in-memory storage of state.
...
bump up pybullet API version (SHARED_MEMORY_MAGIC_NUMBER) to 201801010
2017-12-31 15:37:16 -08:00
erwincoumans
515aa9ee9b
Merge pull request #1491 from erwincoumans/master
...
some progress in saving and restoring the state
2017-12-31 13:39:27 -08:00
Erwin Coumans
4c6df650d4
skip serialization of empty contact manifolds.
2017-12-31 11:28:22 -08:00
Erwin Coumans
f104765c47
added some template to restore (syncMultiBody, syncContactManifolds) for single float and double precision, in 'pybullet.restoreState'
2017-12-31 11:19:29 -08:00
Erwin Coumans
20e00d11d8
further work on saveRestoreState.py
2017-12-30 21:57:42 -08:00
Erwin Coumans
9c55b61315
pybullet.createVisualShape: process sphere radius, box half extents, capsule+cylinder radius/length
...
fixes issue #1427 , https://github.com/bulletphysics/bullet3/issues/1427
2017-12-30 17:42:13 -08:00
Erwin Coumans
4084c1cc71
also add serializeContactManifolds to btSoftMultiBodyDynamicsWorld.cpp and btDiscreteDynamicsWorld.
2017-12-30 14:20:20 -08:00
Erwin Coumans
0326fa93a8
made some progress in saving and restoring the state during the simulation, with identical results.
...
Option to de/serialize btPersistentContactManifolds and fix lossy conversion during btMultiBody de/serialization of base world transform
(serialize the quaternion, not the converted 3x3 matrix)
There are still several caches not taken into account, and btMultiBody links/constraints are not deserialized yet etc.
See examples\pybullet\examples\saveRestoreState.py for an example.
2017-12-30 14:19:13 -08:00
erwincoumans
e3a85493e8
Merge pull request #1484 from rhaps0dy/MJCFImporter
...
Support for reading <inertial> elements from MJCF
2017-12-29 10:58:08 -08:00
erwincoumans
28803dc56f
Merge pull request #1487 from erwincoumans/master
...
expose link index in segmentation mask (getCameraImage) when a flag is set. preparation for restoreState (not implemented yet), allow multiple options in connect call.
2017-12-29 10:55:15 -08:00
Erwin Coumans
29cfac096b
compile fix in pybullet.c
2017-12-28 12:57:49 -08:00
Erwin Coumans
22e23d22d1
double/single precision compile fix
2017-12-28 12:55:47 -08:00
Erwin Coumans
5517cbc4e0
add segmask_linkindex.py example using p.getCameraImage(320,200,flags=p.ER_SEGMENTATION_MASK_OBJECT_AND_LINKINDEX)
...
to extract object unique id and link index from segmentation mask in getCameraImage
2017-12-28 12:37:07 -08:00
Erwin Coumans
afd1066c50
pybullet.getCameraImage: preparation to expose link index in segmentation mask buffer
2017-12-28 10:18:35 -08:00
Erwin Coumans
78e4d9675e
Merge branch 'master' of https://github.com/erwincoumans/bullet3
2017-12-28 10:15:46 -08:00
Erwin Coumans
97547eda0d
preliminary work towards saveState/restoreState and saveRestoreState.py example (not implemented yet)
...
allow multiple options in connect, for example: p.connect(p.GUI, options="--width=640, --height=480")
2017-12-28 10:05:51 -08:00
Erwin Coumans
d0561d81b0
Merge branch 'master' of https://github.com/erwincoumans/bullet3
2017-12-26 07:59:07 -08:00
Erwin Coumans
712a088303
Merge remote-tracking branch 'bp/master'
2017-12-23 11:02:52 -08:00
Erwin Coumans
ddabc6b70c
bump up pybullet version
2017-12-23 11:02:22 -08:00
Adrià Garriga
cb2fcfd032
Skipping calculateLocalInertia is unnecessary
2017-12-23 17:56:47 +01:00
Adrià Garriga
4d70d54d19
Support for reading <inertial> elements from MJCF
2017-12-23 08:53:10 +01:00
Erwin Coumans
799d030874
restore multibody world transform and joint angles/velocities from a .bullet file.
2017-12-22 14:45:36 -08:00
erwincoumans
60d2af8ed2
Merge pull request #1483 from erwincoumans/master
...
expose API to change the local inertia diagonal, pybullet.ChangeDynam…
2017-12-20 17:46:36 -08:00
erwincoumans
41f9bb89e5
expose API to change the local inertia diagonal, pybullet.ChangeDynamics(objectUid, linkIndex, localInertiaDiagonal=[xx,yy,zz])
2017-12-20 16:56:31 -08:00
erwincoumans
6803c80f89
Merge pull request #1482 from erwincoumans/master
...
expose local inertia diagonal in PyBullet/C-API, render inertia boxes, updated minitaur with flex brackets
2017-12-20 16:09:01 -08:00
erwincoumans
eb35cba740
expose local inertia diagonal in C-API, PyBullet, through the 'getDynamicsInfo'
...
render the inertia boxes in examples/pybullet/examples/quadruped.py and examples/pybullet/examples/reset_dynamic_info.py
fix an issue where the original margin (0.04) was used to compute the inertia, instead of latest margin
2017-12-20 14:54:32 -08:00
Erwin Coumans
ecba966890
add minitaur rainbow dash (carbon fiber) simulating flexibility in
...
outside brackets using prismatic joints
2017-12-19 14:44:39 -08:00
erwincoumans
c0619ac924
Merge pull request #1475 from yurivict/master
...
Fixed GL/GLEW libraries on BSD (they weren't linked).
2017-12-14 11:38:25 -08:00
Erwin Coumans
b24d344cbe
update to pybullet 1.7.5 version
2017-12-14 11:33:18 -08:00
erwincoumans
ef4d5e68cf
Merge pull request #1476 from avikde/cmakelists_default_sse_off
...
Removed default ON for USE_MSVC_SSE (warning on recent 64 bit windows)
2017-12-14 11:30:27 -08:00
erwincoumans
c5dd2fc466
Merge pull request #1479 from erwincoumans/master
...
fix in cone friction, test with Markdeep doc
2017-12-14 11:20:24 -08:00
erwincoumans
5ab6a0ad43
Fix issue with cone friction, we had to accumulate squared residual, not just residual.
...
This fixes issue 1473, thanks to Avik De for reporting the issue.
2017-12-14 10:51:43 -08:00
erwincoumans
e0bb359804
report the camera target in the ExampleBrowser StatusBarMessage
...
(so the parameters reported are compatible with the resetDebugVisualizerCamera API)
2017-12-14 09:36:36 -08:00
erwincoumans
72eeacc9db
Merge pull request #1478 from jietan/pullRequest
...
add system id for rainbow dash (second generation minitaur with TX2 i…
2017-12-13 17:42:26 -08:00
Jie
b35f6300a4
add system id for rainbow dash (second generation minitaur with TX2 installed)
2017-12-13 16:19:42 -08:00
Avik De
df80c6d7f1
Removed default ON for USE_MSVC_SSE (warning on recent 64 bit windows)
2017-12-12 09:34:06 -05:00
erwincoumans
ec444fcad9
Merge pull request #1471 from ahundt/patch-1
...
FindPythonLibs.cmake add missing quotes
2017-12-07 19:57:37 -08:00
Andrew Hundt
706013b87a
FindPythonLibs.cmake add missing quotes
...
This avoids problems in the case that the the path has a space in it.
2017-12-07 21:47:38 -05:00
Erwin Coumans
1661cf9189
add markdeep.js, some css, and reduce table font size (hard-coded in markdeep.js for now)
2017-12-06 22:26:07 -08:00
Erwin Coumans
ae4bc1b3ae
convert more parts of the PyBullet Quickstart Guide to Markdeep.
2017-12-06 15:07:46 -08:00
Erwin Coumans
ab22c15e51
don't add .DS_Store
2017-12-06 13:59:58 -08:00
Erwin Coumans
277b6bb8a1
add first few pages of PyBullet quickstart guide in Markdeep
2017-12-06 13:58:56 -08:00
erwincoumans
1ce98eeac8
Merge pull request #1467 from erwincoumans/master
...
expose pybullet 'enableConeFriction
2017-12-01 14:34:30 -08:00
Erwin Coumans
5906923324
tweak travis, linux && g++
2017-12-01 13:33:48 -08:00
Erwin Coumans
949346f293
only run pybullet unittests on linux
2017-12-01 13:14:29 -08:00
Erwin Coumans
8c0913d96b
Merge remote-tracking branch 'bp/master'
2017-12-01 10:25:43 -08:00
Erwin Coumans
c556ad651d
expose pybullet 'enableConeFriction' to switch between pyramid and cone friction model.
2017-12-01 10:07:07 -08:00
Erwin Coumans
e1df1534f3
Merge branch 'master' of https://github.com/erwincoumans/bullet3
2017-11-30 13:11:39 -08:00
erwincoumans
aa82003174
Update btMultiBodyConstraintSolver.h
2017-11-29 10:53:29 -08:00
erwincoumans
5cada6a78d
Merge pull request #1464 from erwincoumans/master
...
add pybullet unittests.py with travis support
2017-11-29 10:38:36 -08:00
Erwin Coumans
defda0135c
fix clang part
2017-11-28 23:11:31 -08:00
Erwin Coumans
5736018b66
travis: verbose pybullet unittests.py
2017-11-28 22:29:11 -08:00
Erwin Coumans
2c60362e6c
travis fun2
2017-11-28 22:22:59 -08:00
Erwin Coumans
629e8d06d1
more travis fun
2017-11-28 22:19:26 -08:00
Erwin Coumans
eb9c252147
update travis to add setuptools
2017-11-28 22:17:24 -08:00
Erwin Coumans
ec0a182a12
add pybullet unittests.py with travis support
2017-11-28 21:53:26 -08:00
erwincoumans
e76804173a
Merge pull request #1463 from erwincoumans/master
...
fixes related to torsional friction, due to recent cone friction update.
2017-11-28 21:18:57 -08:00
erwincoumans
8ff75e11cd
fixes related to torsional friction, due to recent cone friction update.
2017-11-28 20:09:56 -08:00
Erwin Coumans
b031ba0333
Merge branch 'master' of https://github.com/erwincoumans/bullet3
2017-11-28 11:52:07 -08:00
erwincoumans
18e7c3088f
Merge pull request #1461 from avikde/TwoJoint_example
...
added TwoJoint example
2017-11-27 11:05:06 -08:00
Avik De
fd24219f36
Added note that license is same as bullet3
2017-11-27 09:50:18 -05:00
Avik De
29d72a9fee
Hopefully fixed compile on gcc/clang
2017-11-27 09:44:54 -05:00
Avik De
a6d527cca9
added including for cstring... strange that it compiled in VS without it
2017-11-26 21:39:42 -05:00
Avik De
863292fa3d
replaced C++11 code
2017-11-26 21:09:57 -05:00
Avik De
5a1c4b7946
added TwoJoint example
2017-11-26 20:38:50 -05:00
erwincoumans
25628820ef
Merge pull request #1458 from jl/jl-const-masses
...
add const to masses for calculatePrincipalAxisTransform
2017-11-25 20:07:59 -08:00
Joey Liaw
bbc536d887
add const to masses for calculatePrincipalAxisTransform
2017-11-25 13:33:26 -08:00
erwincoumans
1c8d5cf964
Merge pull request #1456 from erwincoumans/master
...
pybullet: fix numpy compile issue on Windows, another fix
2017-11-24 19:24:15 -08:00
Erwin Coumans
6baf82d6d8
improve testrender/np to render faster/interactive on Mac with matplotlib
2017-11-24 18:57:16 -08:00
erwincoumans
2e247fb406
Merge branch 'master' of https://github.com/erwincoumans/bullet3
2017-11-24 18:09:37 -08:00
erwincoumans
c5f79fe979
pybullet testrender.py/testrender_np.py examples, improve matplotlib rendering performance (headless DIRECT and OpenGL/GUI)
2017-11-24 18:09:20 -08:00
Erwin Coumans
1c3092afb8
bump up pybullet to version 1.7.3 (Windows Numpy fix)
2017-11-24 16:52:03 -08:00
erwincoumans
b1c2bdc72a
pybullet: fix numpy compile issue on Windows, another fix
2017-11-24 16:50:36 -08:00
erwincoumans
d6fe45ca24
Merge pull request #1455 from erwincoumans/master
...
pybullet: fix Windows numpy build 82b51ac , bump up to version 1.7.2
2017-11-24 15:06:03 -08:00
Erwin Coumans
db10adeae1
bump up pybullet version to 1.7.2
2017-11-24 14:34:11 -08:00
Erwin Coumans
82b51ac78d
pybullet: fix Windows numpy build
2017-11-24 14:33:24 -08:00
erwincoumans
d22b160a6d
Merge pull request #1453 from erwincoumans/master
...
friction cone test
2017-11-23 18:15:32 -08:00
erwincoumans
9936a1cc92
friction cone test
2017-11-23 18:14:29 -08:00
erwincoumans
bf88669925
Merge pull request #1452 from erwincoumans/master
...
Bullet bump up to version 2.88
2017-11-23 18:00:34 -08:00
erwincoumans
4cc29008f7
bump up pybullet version to 1.7.1
2017-11-23 17:39:09 -08:00
erwincoumans
e6e3da11e5
Implement true implicit friction cone, instead of friction pyramid, for btMultiBody vs btMultiBody and btMultiBody vs btRigidBody
...
See data/sphere_small_zeroinertia.urdf for an example.
2017-11-23 17:38:23 -08:00
erwincoumans
874d764051
add missing file in CMakeLists.txt
2017-11-23 09:32:31 -08:00
erwincoumans
c8f1efe7dc
fix case in include
2017-11-23 09:15:19 -08:00
erwincoumans
960ee27a9a
Merge remote-tracking branch 'bp/master'
2017-11-22 18:14:28 -08:00
erwincoumans
29aa9cb789
Bullet bump up to version 2.88
...
add preliminary support to import btMultiBody from a .bullet file (will help save/restore state)
fix some Windows char/widechar issues
2017-11-22 18:12:02 -08:00
erwincoumans
c04840be87
Merge pull request #1451 from erwincoumans/master
...
reduce stack usage
2017-11-22 17:07:04 -08:00
erwincoumans
76772fd301
reduce stack usage
2017-11-22 15:30:56 -08:00
erwincoumans
02d7ae86ec
Merge pull request #1412 from RicoP/master
...
use Ansi version of LoadLibrary
2017-11-22 14:52:53 -08:00
erwincoumans
4ee9a17d6d
Merge pull request #1449 from erwincoumans/master
...
expose a maximum velocity due to the joint motor in position control
2017-11-21 19:45:14 -08:00
erwincoumans
ab843b26f0
expose a maximum velocity due to the joint motor in position control.
...
see also pybullet/examples/motorMaxVelocity.py
this fixes issue 1444
2017-11-21 17:05:28 -08:00
Erwin Coumans
3f60be59ad
bump up pybullet version to 1.7.0
2017-11-20 12:35:36 -08:00
erwincoumans
89d645b538
Merge pull request #1447 from erwincoumans/master
...
reduce MAX_SDF_BODIES to 512, it causes stack overflow failures in so…
2017-11-20 11:36:39 -08:00
Erwin Coumans
3e17f3387a
reduce MAX_SDF_BODIES to 512, it causes stack overflow failures in some internal tests
2017-11-20 11:05:31 -08:00
erwincoumans
601767bca5
Merge pull request #1445 from erwincoumans/master
...
pybullet: move RGB,depth, segmentation mask preview windows
2017-11-18 20:35:04 -08:00
Erwin Coumans
88289c032e
fix canvas issues from previous commit
2017-11-18 17:20:21 -08:00
Erwin Coumans
c88132b80f
fix issue in pybullet_envs.agents
...
bump up to pybullet 1.6.9
2017-11-18 17:07:27 -08:00