Commit Graph

6737 Commits

Author SHA1 Message Date
Tigran Gasparian
c062bfc2d5 Removes visual shape data when a body gets removed.
Problem description:
When you add a body, remove it and then add a new
body, the body id may be reused by Bullet.
Because the visual shape data was not being removed when a body was
removed, requesting the visual shape data for a 'recycled' body id
results in both the visual shape data of the new body as well as the old
one.
Removing the visual shape data when the body gets removed fixes this.

Changes the btAlignedObjectArray for visual shapes to a hashmap, so
that removing is faster. Additionally, functions like getNumVisualShape
don't perform a linear search anymore.
2018-08-31 15:12:28 +02:00
erwincoumans
4bf846822f Merge pull request #1850 from erwincoumans/master
Add preliminary GRPC server for PyBullet and BulletRobotics.
2018-08-30 19:40:13 -07:00
erwincoumans
f10068b7c9 Merge branch 'master' of https://github.com/erwincoumans/bullet3 2018-08-30 18:36:06 -07:00
erwincoumans
ee9fca8c29 GJK fix for https://github.com/bulletphysics/bullet3/issues/1703
In a nutshell, we added a more reliable check, based on if the origin is in the GJK simplex, to determine if we are really intersecting and need to run EPA.
See also "Real-time Collision Detection with Implicit Objects" by Leif Olvang
Todo: integrate the simplex penetration check directly inside the Bullet btVoronoiSimplexSolver
and remove this temporary code from libCCD
Note, for large differences in shapes, use double precision build!
2018-08-30 18:35:51 -07:00
Erwin Coumans
40a15053bd add createProtobufs.sh script for Mac/Linux (only tested on Mac so far) 2018-08-30 10:09:00 -07:00
erwincoumans
4f7dfc2069 Add preliminary GRPC server for PyBullet and BulletRobotics.
Will add GRPC client and PyBullet GRPC server plugin.
Will cover most/all SharedMemoryCommand/SharedMemoryStatus messages.
Run the server, then test using the pybullet_client.py
2018-08-29 21:12:13 -07:00
erwincoumans
4d00beefbb Merge pull request #1849 from madebr/fix_1827
Fix for bug #1827
2018-08-29 20:54:31 -07:00
erwincoumans
65175425b0 Merge pull request #1848 from erwincoumans/master
more fixes related to islands
2018-08-27 08:50:46 -07:00
Erwin Coumans
2668b89740 fix another island issue 2018-08-26 22:25:39 -07:00
erwincoumans
8cac231890 Merge pull request #1847 from erwincoumans/master
Fix some deactivation issues with btMultiBodyDynamicsWorld, should al…
2018-08-26 18:38:34 -07:00
Erwin Coumans
72c48870b0 after picking in a multibody demo, allow sleeping for rigid bodies 2018-08-26 18:07:28 -07:00
Erwin Coumans
186ddb81d8 fix tab/space issue in Python file
fix determinism issue introduced in previous commit
2018-08-26 17:17:42 -07:00
Erwin Coumans
6ab6cf0bdb test if different broadphase maintains determinism 2018-08-26 16:49:17 -07:00
Erwin Coumans
ff43cea263 Fix some deactivation issues with btMultiBodyDynamicsWorld, should also improve performance for PyBullet with larger worlds
(even when sleeping is disabled, islands are split)
2018-08-26 16:14:36 -07:00
erwincoumans
d5514ef68d Merge pull request #1846 from erwincoumans/master
also drop 'model://' from URDF file names (like we drop package://)
2018-08-26 11:40:13 -07:00
Erwin Coumans
3036a6d2bc also drop 'model://' from URDF file names (like we drop package://) 2018-08-26 09:33:51 -07:00
erwincoumans
1bc3cec547 Merge pull request #1844 from erwincoumans/master
remove leading space
2018-08-25 11:55:37 -07:00
Erwin Coumans
593380b73a remove leading space 2018-08-24 16:33:18 -07:00
erwincoumans
4eb0598e8e Merge pull request #1838 from gkjohnson/fix-urdf-xml-version
Change URDF xml version from "0.0" to "1.0"
2018-08-23 23:08:48 -07:00
erwincoumans
78946c8ca7 Merge pull request #1842 from crewmatt/crewmatt-ikoriginalpositions
Allow current positions for Calculate IK.
2018-08-23 23:07:48 -07:00
erwincoumans
aace31c1fa Merge pull request #1843 from rhaschke/master
preserve constness to avoid compiler warnings
2018-08-23 23:06:54 -07:00
Erwin Coumans
61b7591b8e expose choice of contraint solver in PyBullet, with switchConstraintSolver example 2018-08-23 23:04:17 -07:00
Robert Haschke
beb3dd6196 reduce diff 2018-08-24 00:34:16 +02:00
Robert Haschke
5088f71e7f preserve constness to avoid compiler warnings 2018-08-24 00:29:54 +02:00
mbennice
780b280181 Allow current positions for Calculate IK.
Allows the user to specify the current positions of joints when
calculating Inverse Kinematics.
2018-08-23 13:19:15 -07:00
Garrett Johnson
711b37bea9 Change URDF xml version from "0.0" to "1.0" 2018-08-16 12:44:43 -07:00
Colin Basnett
5bdfba1ea6 Fix for bug #1827 2018-08-14 19:36:42 +02:00
erwincoumans
d44571a4b3 Merge pull request #1832 from erwincoumans/master
fix parameter mismatch in SerialChains.cpp
2018-08-10 02:03:12 +00:00
Erwin Coumans
6d53f1a6d9 fix parameter mismatch in SerialChains.cpp 2018-08-09 17:15:54 -07:00
erwincoumans
2c425f72fe Merge pull request #1831 from erwincoumans/master
bump up pybullet version, revert linear slop
2018-08-09 23:56:29 +00:00
Erwin Coumans
90e08b41a5 bump up pybullet version 2018-08-09 16:53:11 -07:00
Erwin Coumans
15e831ab99 revert default linear slop, need to handle restitution separately 2018-08-09 16:49:25 -07:00
Erwin Coumans
d6cf60ab83 Merge remote-tracking branch 'bp/master' 2018-08-09 16:48:55 -07:00
erwincoumans
1410c84824 Merge pull request #1830 from erwincoumans/master
add missing SerialChains.cpp file to premake4.lua
2018-08-09 23:31:03 +00:00
Erwin Coumans
07b21ca4a2 add missing SerialChains.cpp file to premake4.lua 2018-08-09 16:30:20 -07:00
erwincoumans
ec5cc04680 Merge pull request #1818 from jslee02/multibody_mlcp_solver_v2
Add MLCP constraint solver for multibody
2018-08-09 22:54:52 +00:00
erwincoumans
8ca9e66294 Merge pull request #1829 from erwincoumans/master
data: add license files (mostly copied from the URDF files)
2018-08-09 22:51:46 +00:00
Erwin Coumans
d3d0d948cc data: add license files (mostly copied from the URDF files) 2018-08-09 15:50:39 -07:00
Jeongseok Lee
3627407041 Remove Lemke from SerialChains demo 2018-08-07 15:27:54 -07:00
Jeongseok Lee
48e5a3a9ed Cleanup SerialChains demo 2018-08-07 15:18:58 -07:00
Jeongseok Lee
340236ee29 Fix copy & paste mistake 2018-08-07 15:16:46 -07:00
Jeongseok Lee
777ffac5c2 Fix typo in demo name: MultiDofCreateFunc --> MultiDof 2018-08-06 10:42:25 -07:00
Jeongseok Lee
e8e97d39fe Merge remote-tracking branch 'upstream/master' into multibody_mlcp_solver_v2 2018-08-06 10:34:43 -07:00
Erwin Coumans
56e7333941 bump up pybullet version 2018-08-04 09:58:15 -07:00
erwincoumans
6fe1b000e5 Merge pull request #1820 from erwincoumans/master
fix previous revert of btMultiBody.cpp
2018-08-03 18:05:59 -07:00
Erwin Coumans
684b69f4dd fix applied too fast 2018-08-03 17:57:09 -07:00
Erwin Coumans
02b0e34bda v_ptr 2018-08-03 17:53:07 -07:00
erwincoumans
961d8adad1 Merge pull request #1806 from erwincoumans/master
prepare build system(s) for collisionFilterPlugin
2018-08-03 17:43:13 -07:00
Erwin Coumans
97baccd1a5 revert regression in btMultiBody.cpp 2018-08-03 17:38:01 -07:00
Jeongseok Lee
809fb3ed49 Use btAssert instead of assert 2018-08-03 13:46:59 -07:00