Commit Graph

5087 Commits

Author SHA1 Message Date
Erwin Coumans
a86f584824 more work towards removeBody for C-API/pybullet, work-in-progress. 2017-05-03 21:53:29 -07:00
Erwin Coumans
152e3da3e4 Implementation of virtual void CommonRenderInterface::removeGraphicsInstance(int instanceUid)
for GLInstancingRenderer (OpenGL3+) and SimpleOpenGL2Renderer (OpenGL2)
Refactored the add/remove object pool in Bullet3Common/b3ResizablePool.h
Added CommonRigidBodyBase::deleteRigidBody, also removing its graphics instance.
2017-05-03 17:05:05 -07:00
Erwin Coumans
6f7601966d fix issue ,don't iterate over [0..numBodyHandles], would fail once we allow 'removeBody'... 2017-05-03 11:23:01 -07:00
Erwin Coumans
2c8f65a2d0 move body handles in its own template class, for re-use. 2017-05-03 10:49:04 -07:00
Erwin Coumans
1bb133a01f update to OpenVR 1.07 from https://github.com/ValveSoftware/openvr 2017-05-03 08:40:29 -07:00
Erwin Coumans
eb7cf38293 Add option to --useKitchen=1 to VRGloveSimulatorMain 2017-05-02 22:33:42 -07:00
Erwin Coumans
07992fe61d Improve MJCF import, to allow reading of friction parameters, including spinning and rolling friction, with some rudimentary 'default class' support.
Tweak VRGloveSimulatorMain to work better with MPL/mpl2.xml hand.
2017-05-02 18:05:36 -07:00
Erwin Coumans
74ce6af26c add commented-out example to enable premake serial/audio 2017-05-01 22:37:45 -07:00
Erwin Coumans
9fef6c1d66 Add C++ version VRGloveSimulatorMain example, using the serial library.
First run the App_PhysicsServer_SharedMemory_VR_vs2010.exe to run the VR server,
then run App_VRGloveHandSimulator. You likely need to tune the minV/maxV for each finger (check values using Arduino IDE Serial Monitor)
2017-05-01 22:35:33 -07:00
Erwin Coumans
305725e52e add --serial option in premake, added serial library to test vr glove in C++ (pybullet works already fine) 2017-05-01 15:04:00 -07:00
Erwin Coumans
af6bf8ddc8 plumb URDF/SDF audio_source into PhysicsServerCommandProcessor, allow to play sounds on collision !
See also https://youtu.be/eppOjTfx5Jg for a first test, and this modified URDF how to add sounds:
https://github.com/bulletphysics/bullet3/blob/master/data/plane_with_collision_audio.urdf
Add the --audio flag to enable sound in pybullet/Bullet-C-API
2017-05-01 11:14:09 -07:00
Erwin Coumans
3a330c4280 premake: don't enable --audio by default (yet) 2017-04-29 11:23:45 -07:00
Erwin Coumans
2a2c18e959 add more tinyaudio preparation, some test wav files, play sound on collision events. Will expose this in the C-API to pick wav files and collision threshold levels etc. Use the premake --audio flag to try it out. The TinyAudio example in the ExampleBrowser works on Mac, Linux and Windows, you can play notes by pressing keys. 2017-04-29 10:32:30 -07:00
Erwin Coumans
c95a1c9c33 add soft-clipping of mixed sounds using tanh
expose ADSR to TinyAudio API
enable envelope when playing wav files
2017-04-28 12:39:51 -07:00
Erwin Coumans
821ad96549 update to latest revision of pybullet quickstart guide.
Also see pybullet through pip install at https://pypi.python.org/pypi/pybullet
2017-04-28 12:05:19 -07:00
Erwin Coumans
37a16f7e6b move work on TinyAudio. 2017-04-28 11:35:00 -07:00
Erwin Coumans
e6759cfa4f TinyAudio fixes for OSX etc. 2017-04-27 12:07:31 -07:00
Erwin Coumans
1c168c102b Merge branch 'master' of https://github.com/erwincoumans/bullet3 2017-04-27 09:01:16 -07:00
Erwin Coumans
c51b22d6f5 remove verbose print's from ADSR code. 2017-04-27 08:42:28 -07:00
Erwin Coumans
dfc1800065 remove the goto's from the source code (came from http://github.com/thestk/stk toolkit)
add test wav file
2017-04-27 08:39:57 -07:00
Erwin Coumans
a43656701c Merge branch 'master' of https://github.com/erwincoumans/bullet3 2017-04-27 07:31:26 -07:00
erwincoumans
72d5366a92 Update b3WriteWavFile.h 2017-04-26 21:34:43 -07:00
Erwin Coumans
eaa6255e06 Merge branch 'master' of https://github.com/erwincoumans/bullet3 2017-04-26 21:33:19 -07:00
Erwin Coumans
943dd16e78 disable keyboard repeat on Windows
add some TinyAudio classes to play wav, mostly from Stk (http://github.com/thestk/stk)
2017-04-26 21:31:01 -07:00
erwincoumans
fbd1a4ec2c Merge pull request #1075 from devnexen/build_fix_bsd
forgotten setup.py build part
2017-04-26 14:43:41 +00:00
erwincoumans
09280d6f7b Merge pull request #1084 from erwincoumans/master
fix some potentially uninitialized variable
2017-04-26 05:29:38 +00:00
Erwin Coumans
e4ace90980 fix some potentially uninitialized variable 2017-04-25 21:37:04 -07:00
erwincoumans
2b4f6d7997 Merge pull request #1082 from benelot/feature/link-names
Add link name to getJointInfo(...).
2017-04-26 02:29:04 +00:00
erwincoumans
e3a7023ef5 Merge pull request #1083 from YunfeiBai/master
Use float when clipping the shadow map index, because the index befor…
2017-04-26 02:26:39 +00:00
yunfeibai
56f9c38226 Use float when clipping the shadow map index, because the index before clipping can be out of the range for int. 2017-04-25 18:28:56 -07:00
Benelot
55414f5b20 Add link name to getJointInfo(...). 2017-04-25 23:58:30 +02:00
erwincoumans
a159709820 Merge pull request #1080 from erwincoumans/master
add option to calibrate individual fingers for the vr glove
2017-04-25 16:41:31 +00:00
Erwin Coumans
771b197131 add option to calibrate individual fingers for the vr glove 2017-04-25 09:40:18 -07:00
erwincoumans
1dd3a0f9c9 Merge pull request #1079 from erwincoumans/master
tinyrenderer: disable backface culling. expose lightpos to glinstancingrenderer. bump up pybullet setup.py version
2017-04-25 16:10:57 +00:00
Erwin Coumans
5ba6e11454 Merge branch 'master' of https://github.com/erwincoumans/bullet3 2017-04-24 09:57:19 -07:00
Erwin Coumans
d41a2fdfd4 change hand.ino/py to match hardware changes (use pullup resistor, connect to gnd, instead of 5V + pull down resistor) 2017-04-24 09:56:27 -07:00
Erwin Coumans
552c85617f fix compile issue 2017-04-23 17:12:40 -07:00
Erwin Coumans
4759e5a590 tinyrenderer: disable triangle backface culling (doesn't work well, cull triangles that should be visible)
GLInstancingRenderer: allow to set the light position
2017-04-23 07:35:13 -07:00
Erwin Coumans
e8c1602232 add vrhand for vive tracker
tweak 'saveWorld' feature a bit (mjcf, gui fallback if shared memory server is not available)
2017-04-21 10:28:20 -07:00
Erwin Coumans
14edf72695 Merge branch 'master' of https://github.com/erwincoumans/bullet3 2017-04-20 14:45:40 -07:00
Erwin Coumans
d2ff554e37 tweak hand.py script to automatically find the port on Windows (COM0 to COM30) and Mac OSX. 2017-04-20 14:44:47 -07:00
Erwin Coumans
87b0838624 Merge remote-tracking branch 'bp/master' 2017-04-20 13:10:55 -07:00
Erwin Coumans
c24b81dd68 Merge remote-tracking branch 'bp/master' 2017-04-20 09:32:30 -07:00
erwincoumans
5b789ed67b reduce max ray hits to 256 2017-04-19 12:06:26 -07:00
Erwin Coumans
8cc1f51862 Merge remote-tracking branch 'bp/master' 2017-04-17 19:58:24 -07:00
Erwin Coumans
e8a07e31e6 Merge branch 'master' of https://github.com/erwincoumans/bullet3 2017-04-17 19:57:48 -07:00
erwincoumans
73b4c0092c Merge pull request #1076 from YunfeiBai/master
Modify the link index when computing Jacobian.
2017-04-18 01:03:33 +00:00
yunfeibai
a7068bb57a Modify the link index when computing Jacobian. Add a test for end effector orientation IK. Inverse dynamics Jacobian uses zero-based indexing of bodies, not starting from -1 for base. 2017-04-17 16:54:45 -07:00
David Carlier
a95f5e06db forgotten setup.py build part 2017-04-17 20:05:01 +01:00
erwincoumans
ee753eef6f Merge pull request #1073 from devnexen/build_fix_bsd
build fix for BSD systems
2017-04-17 18:19:10 +00:00