Commit Graph

3488 Commits

Author SHA1 Message Date
erwin coumans
2d5d89d999 Allow to request the state of a rigid body (position, orientation, lin/ang velocity) through shared memory API
PhysicsClientC_API: b3RequestActualStateCommandInit requires a body unique Id as second argument
2015-10-27 15:46:13 -07:00
erwin coumans
9cc2b1ec12 Physics SharedMemory:
Add flags BOX_SHAPE_HAS_MASS and  BOX_SHAPE_HAS_COLLISION_SHAPE_TYPE to CMD_CREATE_RIGID_BODY
(which maps to CMD_CREATE_BOX_COLLISION_SHAPE for backward compatibility for now)
Need to add way to receive world transform
2015-10-27 14:55:46 -07:00
erwincoumans
57f50f1778 Create a PhysicsLoopBack that includes both PhysicsClient and PhysicsServer over shared memory.
Add a test for PhysicsLoopBack.
2015-10-26 17:56:21 -07:00
erwincoumans
e779bb247b Merge branch 'master' of https://github.com/erwincoumans/bullet3 2015-10-26 16:16:08 -07:00
Erwin Coumans
163b797d8b Update to ZLib license for GWEN files.
Note that our copy of GWEN is modified and GWEN is not under active development anymore.
We plan to integrate and modify GWEN further into the Bullet Example Browser or rewrite the GUI and drop GWEN

fix cube.obj and cube.mtl to enable textures
2015-10-25 11:30:34 -07:00
erwincoumans
d6916107dc Merge branch 'master' of https://github.com/erwincoumans/bullet3 2015-10-24 14:01:01 -07:00
erwincoumans
52edac4ef2 example Collision: catch case where no collision world is created 2015-10-24 14:00:53 -07:00
Erwin Coumans
ec1947bbbd add SIM_PARAM_UPDATE_DELTA_TIME flag to fix setting the time step
in shared memory API
2015-10-24 13:50:11 -07:00
Erwin Coumans
818037c011 Fix issue related to CMD_RESET_SIMULATION 2015-10-24 13:49:25 -07:00
Erwin Coumans
f28150c368 catch setting of invalid joint angles in PhysicsClientC_Api
use the proper m_bodyUniqueIndex (todo: fix this field, move to shared command data)
2015-10-24 13:48:53 -07:00
Erwin Coumans
25fb92c4c9 fix for Mac OSX El Captain 10.11, OpenGL Window was blue, until first resize.
fixes Issue 498
2015-10-21 21:30:44 -07:00
erwin coumans
3d9218e07d Add plane shape and profile timing support in examples/Collide
Use View/Profiler in example browser, in optimized build/Release mode
and look for plCollideWorld
2015-10-20 18:30:43 -07:00
Erwin Coumans
abcaa19bc8 make the compiler happy with Collision example 2015-10-19 18:21:45 -07:00
erwin coumans
5a21424662 update to examples/Collision and RealTimeBullet3Collision 2015-10-18 23:43:37 -07:00
erwin coumans
7ac497d6f2 WIP example for real-time collision detection features of Bullet 2015-10-18 14:01:25 -07:00
Erwin Coumans
abb7e22027 Merge branch 'master' of https://github.com/erwincoumans/bullet3 2015-10-17 22:03:36 -07:00
Erwin Coumans
21b7a47129 although still not implemented, IMU enum had wrong value, thanks JF 2015-10-17 20:12:50 -07:00
Erwin Coumans
e5175cde9a although still not implemented, IMU enum had wrong value, thanks JF 2015-10-17 18:52:48 -07:00
Erwin Coumans
3d3830962a add a few collision examples to test a C API with various back-ends 2015-10-17 13:44:00 -07:00
=
bc09125095 fix include guard, thanks Aaron!
fix uninitialized body index in PhysicsServer
2015-10-16 08:18:26 -07:00
=
4df58c35c7 use const in PhysicsClientC_Api, thanks to Roland
fix some warnings for Clang, thanks to Aaron
2015-10-15 08:15:22 -07:00
erwincoumans
cf79928d84 Merge pull request #489 from erwincoumans/master
Implement CMD_INIT_POSE to set base position, base orientation and jo…
2015-10-13 22:51:06 -07:00
erwin coumans
a0e507280c Implement CMD_INIT_POSE to set base position, base orientation and joint position (angle).
See PhysicsClientExample for example use of CMD_INIT_POSE.
Change: CMD_INIT_POSE uses m_initPoseArgs and not m_sendDesiredStateCommandArgument
2015-10-13 22:23:28 -07:00
erwincoumans
5b558a1f94 Merge pull request #488 from erwincoumans/master
initial support for multiple robots in shared memory API
2015-10-13 16:08:30 -07:00
erwin coumans
4a29986662 initial support for multiple robots in shared memory API 2015-10-13 11:32:25 -07:00
erwincoumans
d1d279d086 Merge pull request #464 from benelot/master
Fix the Bullet Raycast sample. Closes #450.
2015-10-09 10:16:07 -07:00
erwincoumans
14eb70a06f Merge pull request #466 from rioharu/patch-1
Update btInternalEdgeUtility.cpp, closes issue #389
2015-10-09 10:09:01 -07:00
erwincoumans
a05de9204e Merge pull request #484 from juj/add_missing_stdio_h
add_missing_stdio_h
2015-10-09 10:06:21 -07:00
Jukka Jylänki
62d977f5cd Add missing <stdio.h> include in src/LinearMath/btMatrixX.h for printf() access. (missing in Emscripten/musl libc builds otherwise) 2015-10-08 18:19:10 +03:00
erwincoumans
9938db95d1 Merge pull request #480 from erwincoumans/master
allow links without collision shapes in btMultiBody URDF importer
2015-09-25 17:04:00 -07:00
=
8d26ff356d allow links without collision shapes in btMultiBody URDF importer 2015-09-25 17:00:44 -07:00
erwincoumans
99c41f3c4d Merge pull request #479 from erwincoumans/master
improvements to the shared memory physics API:
2015-09-24 23:05:04 -07:00
=
5e4badc099 make PhysicsClient an interface class, and move shared memory implementation
of physics client into PhysicsClientSharedMemory class/file.
This will allow implementation of UDP and other transport protocols to a physics server.
2015-09-24 22:50:34 -07:00
=
e05825f639 improvements to the shared memory physics API:
support picking in C API etc.
2015-09-24 22:42:22 -07:00
erwincoumans
e5e71bebc9 Merge pull request #476 from erwincoumans/master
fix warning
2015-09-17 13:50:42 -07:00
=
066ff5f2e9 fix c error 2015-09-17 13:42:02 -07:00
=
23bdd0ed36 more work on physics client c-api over shared memory 2015-09-17 09:37:44 -07:00
=
003a42478b another step closer to useable shared memory C API
(force/torque sensor needs new API)
in a nutshell, users of shared memory physics API should not
directly poke into shared memory, not fill 'SharedMemorCommand'
nor read SharedMemoryStatus directly. The C-API declares 'handles' for those,
to avoid it from happening.
2015-09-16 23:09:10 -07:00
=
4041748f55 fix warning 2015-09-14 10:45:53 -07:00
erwincoumans
cb13054f2e Merge pull request #465 from cameronwhite/conetwist-motor
Use the max motor impulse for cone twist constraints when the motor is enabled.
2015-09-10 18:08:19 -07:00
erwincoumans
9b9ec21a5f Merge pull request #475 from erwincoumans/master
fix some warnings, re-enable ground in URDF import example, fix COLLADA up axis issue in URDF collision element
2015-09-10 18:06:48 -07:00
=
3d10338ed5 fix warnings (thanks to Aaron!) 2015-09-10 17:52:41 -07:00
=
81087c3b4a Merge remote-tracking branch 'bp/master' 2015-09-10 17:48:23 -07:00
=
2257ec05ad don't compensate for COLLADA up axis in collision element for now
(todo: let user override COLLADA up axis, some URDF files are inconsistent)
2015-09-10 17:36:19 -07:00
erwincoumans
3025ad4536 Merge pull request #474 from erwincoumans/master
fixes in shared memory client/server: check for valid pointers
2015-09-09 17:30:28 -07:00
=
d72cda101c fixes in shared memory client/server: check for valid pointers 2015-09-09 15:14:47 -07:00
erwincoumans
e4b5f4730d Merge pull request #473 from takuyanakaoka/detach-shared-mem
Detach posix shared memory correctly
2015-09-09 15:13:27 -07:00
Takuya NAKAOKA
4cbd86a058 Detach posix shared memory correctly
* shmget() fails after shmctl() is called with IPC_RMID. This patch
removes shmget() in releaseSharedMemory so that a client can detach
a shared memory correctly after a server removed it.
* A server should also detach a shared memory.
2015-09-09 12:35:26 +09:00
erwincoumans
c99f4057fe Merge pull request #472 from erwincoumans/master
run the PhysicsServerExample 'stepSimulation' smoother, fix a few warnings
2015-09-08 14:32:08 -07:00
=
5be9119455 run the PhysicsServerExample 'stepSimulation' smoother
fix a warning in ThirdParty/stb_image
fix an single/double precision issue in btPolyhedralContactClipping.cpp
2015-09-08 13:39:09 -07:00