Commit Graph
2788 Commits
Author SHA1 Message Date
Erwin Coumans 46f2f3db4e implement 'mimic' joint constraint or 'gear' constraint for btMultiBody, add example in pybullet/examples/mimicJointConstraint.py 2017-06-07 16:22:02 -07:00
Erwin Coumans 60e3887456 enable btGearConstraint, expose 'changeDynamics' for gearRatio, only works for maximalCoordinates rigid bodies.
See examples\pybullet\examples\mimicJointConstraint.py
2017-06-07 13:44:34 -07:00
Erwin Coumans d08f3e5f91 expose pybullet non-contact erp, friction erp and frictionAnchor, b3PhysicsParamSetDefaultNonContactERP / b3PhysicsParamSetDefaultFrictionERP / b3ChangeDynamicsInfoSetFrictionAnchor 2017-06-07 09:37:28 -07:00
Erwin Coumans 0c3a3cc466 pybullet.changeDynamicsInfo/b3ChangeDynamicsInfoSetContactStiffnessAndDamping expose contactStiffness/contactDamping 2017-06-07 08:37:42 -07:00
erwincoumans ae00c24a5c add MIT racecar URDF, meshes and racecar.py quick test 2017-06-06 09:23:40 -07:00
erwincoumans 7b56db9f97 fix compile issue/warning 2017-06-06 06:59:41 -07:00
Erwin Coumans 91735acc7c also revert those 2 files 2017-06-05 14:19:28 -07:00
Erwin Coumans b5962ab148 revert due to crashes on windows, when simulation speed is increased 2017-06-05 14:15:51 -07:00
erwincoumans 444f206c7c Merge pull request #849 from benelot/3D-NN-walkers-example
Improvements to 3DNNWalkers example
2017-06-05 13:31:07 -07:00
Erwin Coumans adb938f30f reduce memory usage 2017-06-05 08:01:11 -07:00
Erwin Coumans 351ea171c1 Merge branch 'master' of https://github.com/erwincoumans/bullet3 2017-06-04 22:53:23 -07:00
Erwin Coumans 704269afe1 don't pass second parameter, pybullet func 2017-06-04 22:24:14 -07:00
Erwin Coumans 88c743b5ce Merge remote-tracking branch 'bp/master' 2017-06-04 22:12:42 -07:00
Erwin Coumans a7aed37632 work on pybullet/C-API createMultiBody (still preliminary, only sphere/box collision shapes, no links/hierarchies yet, soon)
pybullet/C-API, expose linear/angular damping
fix some warnings (param name needs to be same in .h and .cpp)
fix potential startup threading issue (args were deleted in main thread while still possibly use in child thread)
fix for spinning/rolling friction in case of mixing maximal and reduced coordinate btMultiBody+btRigidBody
2017-06-04 22:04:16 -07:00
Lunkhound 03aa178ca5 example browser: fix 'clamp-to-integer' on GUI-sliders 2017-06-04 17:34:21 -07:00
Benjamin Ellenberger 4a169d180e Call reset right before using the clock. 2017-06-04 20:47:31 +02:00
Benjamin Ellenberger b5a80a08aa Revert b3Clock changes and use reset method instead. 2017-06-04 20:39:10 +02:00
Erwin Coumans b23cb1dd2c pybullet.createCollisionShape, createVisualShape, createMultiBody, programmatic creation using ProgrammaticUrdfInterface
(still preliminary, not ready for commit yet, see examples\pybullet\examples\createSphereMultiBodies.py)
2017-06-03 10:57:56 -07:00
yunfeibai bfcbb339cf Merge remote-tracking branch 'upstream/master' 2017-06-02 18:26:04 -07:00
yunfeibai 0a29c8d9af Get debug visualizer camera yaw, pitch, dist, and target. 2017-06-02 18:24:51 -07:00
yunfeibai e2a9fc33dc Remove debug code. 2017-06-02 17:40:50 -07:00
yunfeibai 3506603d60 Test conversion from view matrix to yaw pitch roll. 2017-06-02 16:56:05 -07:00
erwincoumans 518c7ec00e Merge pull request #1144 from lunkhound/pr-threading-refactor
Bullet 2 threading refactor: moved parallel-for calls into core libs
2017-06-02 16:18:12 -07:00
Erwin Coumans 8ef3a60f1c compile fix 2017-06-02 09:01:50 -07:00
Erwin Coumans 5a89b4f385 allow b3Clock to reset to time reference 0, by default reset will set the reference to 'now'. 2017-06-02 08:18:17 -07:00
yunfeibai f350a506a6 Enable rgba color update for TinyRender. 2017-06-01 23:32:26 -07:00
yunfeibai e97bb9d494 Add utility function to convert view matrix to camera yaw pitch roll. 2017-06-01 21:44:02 -07:00
erwincoumans 3987bdd333 remove pose frame from SDF,
allow plane collision shape in SDF
load the Roboschool stadium.sdf in humanoid_knee_position_control.py
2017-06-01 20:13:39 -07:00
Erwin Coumans 030d723db6 fix some warnings 2017-06-01 16:48:07 -07:00
yunfeibai e6d1a8cf97 Swap yaw and pitch in camera computation. Add functions to convert view matrix to camera position, and camera position to camera yaw pitch roll. 2017-06-01 15:30:37 -07:00
Erwin Coumans aa40b8487f bump up SHARED_MEMORY_MAGIC_NUMBER versioning tag, remove humanoid_running_3.py
bump up pybullet version to 1.1.0
2017-06-01 13:33:53 -07:00
Erwin Coumans 5c6045b61f turn down effect of default specular a bit 2017-06-01 13:15:58 -07:00
Erwin Coumans d744fe10dc compile fix 2017-06-01 12:51:43 -07:00
Erwin Coumans 87293e835c implement specular, URDF non-standard specular part (see sphere2.urdf) and SDF specular support.
pybullet.changeVisualShape(obUid,linkIndex,specularColor=[R,G,B]) and Bullet C-API b3UpdateVisualShapeSpecularColor
Bug fixes in b3ResourcePath::findResourcePath resolution.
add stadium.sdf and roboschool/models_outdoor/stadium assets https://github.com/openai/roboschool/tree/master/roboschool/models_outdoor/stadium
minor fixes to obj2sdf
2017-06-01 12:32:44 -07:00
Erwin Coumans 3157093125 Implemented specular reflective lighting for OpenGL 3.x, everything looks shiny (will add APIs to make it less shiny ;-)
Remove roof from kitchens/1.sdf, otherwise shadows and shinyness won't work (light is outside the room, bouncing against roof-top)
Make kuka_iiwa/model.urdf more smooth, use .obj for per-vertex normals (using Blender, import STL, export OBJ, enable triangles, normals and Z-UP, Y forward)
2017-05-31 20:32:45 -07:00
erwincoumans 83f910711a Prepare/allow for non-Bullet2-based physics command processor in pybullet/Bullet-C-API
!!! Make sure to add examples/SharedMemory/PhysicsServerExampleBullet2.cpp to your build system, if needed
Bump up pybullet to version 1.0.9
2017-05-30 19:54:55 -07:00
Lunkhound cc1e6dc269 make MultiThreadedDemo available if threadsafe 2017-05-30 00:47:41 -07:00
Lunkhound a6a0ea5f54 add task scheduler implemented with thread support interface 2017-05-30 00:21:10 -07:00
Lunkhound 562858251a remove bad thread affinity mask setting 2017-05-30 00:09:05 -07:00
Lunkhound ba88d332fb fix crash with out of range thread index 2017-05-29 23:54:15 -07:00
erwincoumans 4e03c36fa6 add pybullet.multiplyTransforms and pybullet.invertTransform
use btAssert instead of assert (glGetError is really slow)
shift default light-position a little bit, to make faces different color
2017-05-29 21:55:58 -07:00
Benelot cd153eb6a5 Remove graphic instances from previous runs. Still non-deterministic unfortunately. 2017-05-29 23:55:27 +02:00
Benelot f0212cc072 Merge remote-tracking branch 'upstream/master' into 3D-NN-walkers-example 2017-05-29 21:55:12 +02:00
erwincoumans 5436b8f048 print better error warning, in case the physics client/server version mismatch.
fix in b3HashString
remove many unused dependencies from kuka_grasp_block_playback.py (time,math, datetime ,numpy,pylab ,sys, os, fnmatch,argparse were not used!)
move block_grasp_log.bin from Bullet3/data to Bullet3/examples/pybullet/examples/data folder.
PhysicsServerCommandProcessor, derive from CommandProcessorInterface to prepare for different back-end implementation
2017-05-28 17:05:18 -07:00
erwincoumans c36792c950 fix bodyIndex -> bodyUniqueId in pybullet. 2017-05-28 13:30:20 -07:00
erwincoumans f9c53b39a2 fix pybullet build on some MSVC versions 2017-05-28 09:48:12 -07:00
Benelot dad9bf40a4 Merge branch 'master' into 3D-NN-walkers-example 2017-05-28 17:16:54 +02:00
Erwin Coumans b645963879 expose pybullet changeDynamics(spinningFriction=..., rollingFriction=..., restitution=...)
Bullet C-API b3ChangeDynamicsInfoSetSpinningFriction/RollingFriction/Resitution
b3PhysicsParamSetRestitutionVelocityThreshold, / pybullet.setPhysicsEngineParameter restitutionVelocityThreshold:
if the velocity is below this threshhold, the restitution is zero (this prevents energy buildup at near-resting state)
pybullet restitution.py example.
2017-05-26 18:14:38 -07:00
Erwin Coumans 8c6d4a4c85 also initialize near/far for depth shader in TinyRenderer 2017-05-26 09:45:26 -07:00
Erwin Coumans 723b356667 also discard pixels in front of nearplane 2017-05-25 19:55:55 -07:00