erwincoumans
2fa3e267fc
Merge pull request #940 from erwincoumans/master
...
fix sphere-triangle for degenerate triangles (zero area/normal), fix 'safeNormalize' (probably should remove it)
2017-01-30 21:26:08 -08:00
erwincoumans
690bd4f265
fix rendering of rays in Benchmark demo when using BT_USE_DOUBLE_PRECISION
2017-01-30 18:51:19 -08:00
erwincoumans
72dd8285e8
fix 'safeNormalize' (probably should remove it)
...
Fix for Issue 953: cull degenerate triangles
https://github.com/bulletphysics/bullet3/issues/935
Thanks to Oleg Klimov for the report and reproduction case.
2017-01-30 18:12:09 -08:00
erwincoumans
fc59a40127
Merge pull request #905 from lunkhound/pr-sel-solver-type
...
example browser: add controls for changing the solver type and solver flags
2017-01-30 10:22:31 -08:00
Lunkhound
f65644f3e0
fix compile error when BT_THREADSAFE not defined
2017-01-29 21:13:24 -08:00
erwincoumans
26a34e3cda
Move ChromeTracing in its own file, and add tracing support for VR server (App_SharedMemoryPhysics_VR)
...
Add a bit of extra sleep in PhysicsServer thread, to make rendering smoother.
2017-01-29 20:59:47 -08:00
erwincoumans
446cb77a5e
[UDP] disconnect needs to set m_data->m_isConnected=false
2017-01-28 23:18:26 -08:00
erwincoumans
d0e1ec8c48
add a usleep(0) to improve UDP performance on Windows (busy-loop eats all CPU time, other thread didn't proceed)
2017-01-28 22:46:23 -08:00
erwincoumans
87bce5eacf
UDP networking improvements and experiments (send CMD_STEP_FORWARD_SIMULATION as 4 bytes command, status 8 bytes, instead of enormous command/status packages.
...
Change some timeouts to use actual RTC time instead of dummy loops 1024*1024*1024.
Fix type conected -> connected
2017-01-28 22:14:45 -08:00
Erwin Coumans
2ea7111933
[pybullet] clear error after parsing UDP string argument (instead of shared memory 'int' argument)
2017-01-28 13:03:01 -08:00
erwincoumans
2b3c25d5f2
add a b3Clock::usleep in PhysicsClientUDP to avoid clogging all resources
...
report more meaningful connection status for UDP.
2017-01-28 12:42:04 -08:00
erwincoumans
1dec1a39ce
Add the pybullet vrhand.py script used in this haptic video:
...
Make sure to run the App_SharedMemoryPhysics_VR with --norobotassets option, then
run vr_kuka_setup.py, to add some environment + objects.
2017-01-26 17:22:01 -08:00
erwincoumans
37ed4b819a
[cmake] only use BT_ENABLE_VR for the _VR target
...
use -DUSE_DOUBLE_PRECISION=ON when building pybullet and/or VR targets
2017-01-25 22:41:31 -08:00
Erwin Coumans
94c768bea8
cmake build support for VR demo (WIN32 only)
...
update to latest OpenVR 1.05 SDK from https://github.com/ValveSoftware/openvr
add keyboard support to tune default camera VR position
VR revert to double 'distorted' views on Desktop, since the single view isn't showing full scene
2017-01-25 19:17:57 -08:00
Erwin Coumans
e652696f52
report localVisualFrame instead localInertialFrame
2017-01-25 08:29:45 -08:00
Erwin Coumans
76dcf3a751
remove the contype=0 in inverted_pendulum.xml, so we can 'mouse-pick' the pendulum.
...
[mjcf importer] add rudimentary support for inertial frame computation, for 'fromto' capsules.
2017-01-24 21:10:21 -08:00
Erwin Coumans
95e25d9942
fix a few warnings
2017-01-24 08:36:46 -08:00
Erwin Coumans
1b2db1ff09
more btCapsuleShape fixes
...
use hello_mjcf.xml for MJCF importer
2017-01-23 22:22:02 -08:00
Erwin Coumans
8c480b1cd7
revert to older version of stb_image, the new version causes issues in
...
our build system.
2017-01-23 17:36:43 -08:00
Erwin Coumans
fac943d9c7
Merge remote-tracking branch 'bp/master'
2017-01-23 16:47:07 -08:00
Erwin Coumans
d465e1eea5
add capsule support in urdf parser (non-standard extension), capsule.urdf
...
fix btCapsuleShape (X,Y,Z) margin issue
fix uninitialized variables in TinyRenderer: m_hasLightDistance, m_hasLightAmbientCoeff, m_hasLightDiffuseCoeff, m_hasLightSpecularCoeff
pybullet/shared memory API 'getClosestPoints' / b3InitClosestDistanceQuery, only report contacts equal/smaller distance than given
2017-01-23 16:45:18 -08:00
erwincoumans
d2c7d0b57d
Merge pull request #926 from erwincoumans/master
...
more improvements to pybullet (bodies/constraints are up-to-date after reconnection), pybullet quickstart guide
2017-01-22 21:22:10 -08:00
Erwin Coumans
73e83d6e84
fix OSX build, fix some warnings
2017-01-22 21:06:51 -08:00
Erwin Coumans
cad45b9c20
add test script to move pr2 controller using pybullet (after initializing the world using vr_kuka_setup.py
2017-01-22 19:48:28 -08:00
Erwin Coumans
cf9f022d39
[pybullet] getNumConstraints, getConstraintInfo APIs.
...
[pybullet] updated pybullet_quickstartguide.pdf
Fail clearly (assert, return BT_INFINITY) if link index is out of range for btMultiBody methods localPosToWorld,worldPosToLocal,localDirToWorld,worldDirToLocal.
pybullet getConstraintInfo
Fix warnings due to Mac OSX 10.12 upgrade (with backward compatibility)
2017-01-22 19:08:31 -08:00
Erwin Coumans
f237c4440f
pybullet: only allow a single local in-process GUI connection
...
update pybullet quickstart guide
2017-01-21 14:30:37 -08:00
erwincoumans
d834bc72af
Merge pull request #925 from erwincoumans/master
...
Prepare for Bullet 2.86 release, update version to 2.86 (release will…
2017-01-21 12:32:41 -08:00
Erwin Coumans
64957ece9f
add hand.py/hand.ino used to create this VR glove, using MuJoCo Haptix MPL hand (Apache 2 license)
...
https://www.youtube.com/watch?v=VMJyZtHQL50
added b3InitSyncBodyInfoCommand, to retrieve body info, when connecting to a server with existing bodies
pybullet will call this b3InitSyncBodyInfoCommand automatically after connecting
Avoid overriding the py.setVRCameraState setting in VR
2017-01-20 18:13:24 -08:00
Erwin Coumans
d81d62a70b
Prepare for Bullet 2.86 release, update version to 2.86 (release will be tagged soon)
...
protect some C-API methods against negative dof indices
add triangle mesh import from MJCF files
update to recent pybullet quickstart guide pdf
2017-01-20 11:48:33 -08:00
Benelot
d3305bb76f
Change jointIndex to linkIndex in getLinkState error message.
2017-01-19 09:11:06 +01:00
erwincoumans
394196e5a2
Update PhysicsServerExample.cpp
2017-01-17 17:38:30 -08:00
Erwin Coumans
52761f5578
[pybullet] implement addUserDebugParameter / readUserDebugParameter
...
fix inertial frame for door.urdf
allow picking of links of multi-bodies with a fixed base
2017-01-17 15:42:32 -08:00
Erwin Coumans
966ebb04fe
set the paircache filter
2017-01-16 21:04:02 -08:00
Erwin Coumans
12a391e1f9
[pybullet] expose collision filter mode and max constraint force:
...
pybullet.changeUserConstraint(maxForce=<double>)
pybullet.setPhysicsEngineParameter(collisionFilterMode=<int>)
2017-01-16 18:17:18 -08:00
Erwin Coumans
93471a1c31
cmake Win32 fixes
...
fixed some more warnings
added alignment macros to some classes
btPersistentManifold from 128 to 16 bytes aligned
prepare command to select collision filter mode (SIM_PARAM_UPDATE_COLLISION_FILTER_MODE)
2017-01-16 13:05:26 -08:00
Erwin Coumans
3dfcd27147
upgrade to latest stb_image from
...
7e989db555
2017-01-16 11:37:44 -08:00
Erwin Coumans
3d985ff7a5
add App_SharedMemoryPhysics and App_SharedMemoryPhysics_GUI to cmake
...
fix 'connection' detection for shared memory (due to multiple shmem blocks)
add link to pybullet.so
2017-01-16 11:17:32 -08:00
Erwin Coumans
8e9181f85c
[MJCF import] add custom broadphase collision filter, for MJCF/MuJoCo compatibility
...
[MJCF import] improve MuJoCo importer, support collision filters
fixed a few more warnings
2017-01-16 08:23:49 -08:00
Erwin Coumans
c0c4c8ba3f
fix many warnings
...
remove btMultiSapBroadphase.*
make collisionFilterGroup/collisionFilterMark int (instead of short int)
2017-01-15 22:26:11 -08:00
Erwin Coumans
e3df00d5f1
Merge branch 'master' of https://github.com/erwincoumans/bullet3
2017-01-15 11:22:38 -08:00
Erwin Coumans
310fabcd7e
Further improvements in Bullet MuJoCo MJCF import:
...
[MJCF import] improved humanoid.xml, inverted_pendulum.xml import (automatically add dummy-links to connect multiple joints between bodies)
[MJCF import] fix bug in quaternion conversion (w,x,y,z) -> (x,y,z,w)
2017-01-15 11:22:24 -08:00
erwin coumans
8a6e40ff95
add --disable_desktop_gl for Virtual Reality server (App_SharedMemoryPhysics_VR)
...
(making the VR performance much better on lowish-quality GPU hardware)
2017-01-14 08:05:04 -08:00
Erwin Coumans
7b7d897e3b
explicitly mark dead code
2017-01-12 12:29:15 -08:00
Erwin Coumans
a93704889c
add a default empty implementation for a few pure virtual calls
...
(in interface classes) for backward compatibility in some code base
2017-01-12 11:40:43 -08:00
Erwin Coumans
9aa5a839d5
add pybullet.changeConstraint / b3InitChangeUserConstraintCommand/ b3InitChangeUserConstraintSetPivotInB /b3InitChangeUserConstraintSetFrameInB command, to change an existing user constraint.
...
add constraint.py example.
allow pybullet.createConstraint to create user constraint without a child body ('fixed' to the world)
2017-01-12 10:30:46 -08:00
Erwin Coumans
1c79798583
make sure threads will get out of 'workerThreadWait' so they can exit at the end
2017-01-12 08:06:40 -08:00
Erwin Coumans
8caea20425
small tweak in inverse_kinematics.py example, to make it run better on OSX
2017-01-11 21:57:02 -08:00
Erwin Coumans
4897139dad
pybullet.calculateInverseKinematics: expose null space method with and without orientation
...
add inverse_kinematics.py and hello_pybullet.py pybullet examples
add m_worldLinkFramePosition/Orientation fields to b3LinkState, and in pybullet.getLinkState (URDF link frame in Cartesian/world coordinates)
2017-01-11 21:39:22 -08:00
Erwin Coumans
3d6584962a
remove some memory leaks in example code.
2017-01-10 14:57:16 -08:00
Erwin Coumans
5e948ebe00
add placeholder for EGLOpenGLWindow
2017-01-09 15:59:47 -08:00