Commit Graph
100 Commits
Author SHA1 Message Date
Erwin Coumans 71170d6384 reduce stack usage (cause some crashes in low-stack tests)
fix crashing bug in changeVisualShape
add differential gear version of racecar (only 2 back wheels are powered)
2017-06-20 20:22:14 -07:00
Erwin Coumans 61f27a5c72 also add baseInertialFramePositionObj and baseInertialFrameOrientationObj to pybullet.createMultiBody
updated createMultiBodyLinks.py example.
2017-06-19 17:13:20 -07:00
Erwin Coumans 7441515c0e Preliminary version of pybullet.createMultiBody including links connected to parent by a joint.
See createMultiBodyLinks.py example.
2017-06-19 13:15:05 -07:00
Erwin Coumans f3c11b6f31 add capsule, cylinder, plane, mesh support for pybullet.createCollisionShape
preparation to add links to pybullet.createMultiBody
2017-06-19 10:14:26 -07:00
Erwin Coumans 5a8f12284a update pybullet_quickstartguide.pdf from https://docs.google.com/document/d/10sXEhzFRSnvFcl3XxNGhnD4N2SedqwdAvK3dsihxVUA 2017-06-17 17:33:38 -07:00
Erwin Coumans e5db5192f0 bump up pybullet version again 2017-06-17 13:34:03 -07:00
Erwin Coumans 2e6f8c271e allow to disable/enable default keyboard shortcuts ('w', 'd' 's' etc) and default mouse picking
pybullet.getMouseEvents / b3RequestMouseEventsCommandInit
2017-06-17 13:29:14 -07:00
Erwin Coumans 3a826a5997 getCameraImage: use debug visualizer camera viewmatrix/projection matrix if possible (only if view/proj matrix is not provided) 2017-06-17 11:21:10 -07:00
Erwin Coumans af0e1d58ef obj2sdf -> don't crash when no name is given, remind user of --fileName=... 2017-06-17 10:24:47 -07:00
Erwin Coumans 5ea4da87d7 improve getAABB.py drawing 2017-06-16 19:11:35 -07:00
Erwin Coumans 23b155a2b4 add getAABB.py example.
fix getAABB / b3RequestCollisionInfoCommandInit to use less stack memory
2017-06-16 18:10:10 -07:00
Erwin Coumans 40cb8006ee fix gym/envs/bullet/cartpole_bullet.py (velocity hyperparameter still needs to be tuned)
add enjoy_pybullet_cartpole.py
2017-06-16 17:06:11 -07:00
erwincoumans 37f5413a07 Merge pull request #1190 from erwincoumans/master
pybullet.getAABB and getAPIVersion
2017-06-15 21:53:41 -07:00
Erwin Coumans bb8cfe3c9a pybullet.getAABB and getAPIVersion
fix btMultiBody::getLinkCollider
bump up Bullet C-API version
2017-06-15 19:46:27 -07:00
erwincoumans 49c8683e49 Merge pull request #1189 from erwincoumans/master
tune kuka grasp gym env
2017-06-15 14:28:30 -07:00
erwincoumans c903bd8a49 tune kuka grasp gym env (make it a bit too easy) 2017-06-15 11:18:08 -07:00
erwincoumans 16f439d774 Merge branch 'master' of https://github.com/erwincoumans/bullet3 2017-06-14 23:42:40 -07:00
erwincoumans a547c8f3fc hook up kuka grasping to OpenAI dqn 2017-06-14 23:42:14 -07:00
erwincoumans d2888f0884 add nicer meshes to kuka_with_gripper.sdf and add kuka_with_gripper2.sdf that can rotate without messing up IK
fix tray/tray_textured4.obj and tray/tray.urdf
fix kuka_with_cube.py
allow both IK /end-effector control and joint-space control in kuka environment, use 1./240. sec. step and 150 solver iter
bump up pybullet to 1.1.7
2017-06-14 19:34:33 -07:00
erwincoumans f8af33dc73 Merge pull request #1183 from lunkhound/pr-browser-gui
example browser: GUI improvements for CommonRigidBodyMT based demos
2017-06-14 08:12:37 -07:00
erwincoumans 3921ea88fa Merge pull request #1177 from YunfeiBai/master
Bug fix. Only return friction coefficient when there is a valid link …
2017-06-14 08:11:57 -07:00
erwincoumans ff7a2bbc3b Merge pull request #1180 from lunkhound/pr-remove-override
fix a stray override keyword (C++11) that slipped in
2017-06-14 08:11:15 -07:00
erwincoumans 1f6872552d Merge pull request #1187 from erwincoumans/master
add humanoid and kuka gym environments (experimental)
2017-06-14 08:10:50 -07:00
erwincoumans cc34ebab25 add humanoid and kuka gym environments (experimental) 2017-06-14 00:54:41 -07:00
erwincoumans 7929ba2929 Merge pull request #1186 from erwincoumans/master
add debug view for getCameraImage (RGB, depth, segmentation mask)
2017-06-13 18:55:11 -07:00
Erwin Coumans a0ded43a69 use cnn_to_mlp to allow training of racecar using (extremely simplified) ZED camera pixel data using OpenAI baselines.
add a red sphere to make training a bit easier for now.
2017-06-13 18:33:32 -07:00
Erwin Coumans ee8fd56c5e prepare to train racecar using ZED camera pixels (CNN+DQN) 2017-06-13 16:04:50 -07:00
Erwin Coumans 0958e8f473 only show debug camera RGB pixels by default 2017-06-13 14:07:58 -07:00
Erwin Coumans d17faddff2 fix for b3RequestActualStateCommandComputeLinkVelocity/getLinkState link velocities for static links 2017-06-13 13:51:38 -07:00
Erwin Coumans ab6d5c9c53 Merge remote-tracking branch 'bp/master' 2017-06-13 11:06:12 -07:00
Erwin Coumans c84416d932 add debug view for getCameraImage (RGB, depth, segmentation mask) 2017-06-13 10:53:24 -07:00
erwincoumans 5692137554 Merge pull request #1185 from mbreyer/bugfix-uninitializedVariable
fix uninitialized erp in pybullet_setPhysicsEngineParameter
2017-06-13 08:28:24 -07:00
erwincoumans e24dbec146 Merge pull request #1184 from mbreyer/bugfix-pybulletGetCameraImage
fix memcpy of depth and segmentation images to numpy arrays
2017-06-12 14:15:30 -07:00
erwincoumans 00e85554fb Merge pull request #1181 from erwincoumans/master
Implement OpenAI baselines dqn train/enjoy pybullet racecar
2017-06-10 20:34:42 -07:00
erwincoumans 1752aa55ca train_pybullet_racecar.py works, self-driving car drives towards the ball using OpenAI baselines DQN :-)
See https://www.youtube.com/watch?v=DZ5Px-ocelw for video and how-to-install.
2017-06-10 18:46:36 -07:00
Erwin Coumans b361722500 Implement train_pybullet_racecar.py and enjoy_pybullet_racecar.py using OpenAI baselines DQN for the RacecarGymEnv. 2017-06-09 19:26:07 -07:00
erwincoumans dc8c2e4d5e Merge pull request #1179 from erwincoumans/master
add mimic constraint for differential gears
2017-06-09 15:02:59 -07:00
Erwin Coumans 82e3c553b9 bump up pybullet version (some memory leaks were fixed since 1.1.3) 2017-06-09 14:03:47 -07:00
erwincoumans b2a46a7edd mimicJointConstraint.py creates actual differential drive
See https://www.youtube.com/watch?v=pK3PTPlRTGA  :-)
2017-06-09 10:15:05 -07:00
Erwin Coumans 0aeb4d5058 add RacecarGymEnv as a gym experimentation environment 2017-06-08 19:45:48 -07:00
Erwin Coumans 7ee8126d66 Merge branch 'master' of https://github.com/erwincoumans/bullet3 2017-06-08 14:28:42 -07:00
Erwin Coumans b325844b9a add missing 'wheel.urdf" and very simple procedural terrain generation (sine wave) 2017-06-08 14:28:33 -07:00
erwincoumans e5ce067cb9 Merge pull request #1176 from erwincoumans/master
mimic joint, enable btGearConstraint for multibody, expose contact stiffness/damping, erp to pybullet etc.
2017-06-08 10:20:22 -07:00
erwincoumans c1f6b7e9b8 fix memory leak in case a Wavefront .obj file had multiple shapes (texture was loaded multiple times, while only releasing one) 2017-06-08 09:21:32 -07:00
Erwin Coumans 9d422c9b08 bump up pybullet version 2017-06-07 19:02:23 -07:00
Erwin Coumans c1e32e6428 fix potential memory leaks 2017-06-07 19:00:44 -07:00
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 877e2cf9f9 Merge pull request #1174 from erwincoumans/master
add MIT racecar and examples/python/examples/racecar.py, fix compile issue/warning
2017-06-06 09:50:07 -07:00
erwincoumans 7e12034097 improve racecar visuals a little bit with a texture on the wheels 2017-06-06 09:45:06 -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
erwincoumans fb6d623d24 Merge pull request #1171 from erwincoumans/master
revert due to crashes on windows, when simulation speed is increased
2017-06-05 16:49:22 -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
erwincoumans be9384a01b Merge pull request #1168 from lunkhound/pr-fix-thread-index
fix various multithreading issues with thread indexes
2017-06-05 13:27:05 -07:00
erwincoumans 0d7232c661 Merge pull request #1170 from erwincoumans/master
prepare for pybullet 1.1.2
2017-06-05 09:33:50 -07:00
Erwin Coumans adb938f30f reduce memory usage 2017-06-05 08:01:11 -07:00
Erwin Coumans b6cf8ade07 prepare for pybullet 1.1.2 2017-06-04 22:54:04 -07:00
Erwin Coumans 14a128d122 Merge remote-tracking branch 'bp/master' 2017-06-04 22:53:26 -07:00
Erwin Coumans 351ea171c1 Merge branch 'master' of https://github.com/erwincoumans/bullet3 2017-06-04 22:53:23 -07:00
erwincoumans 69642805ff Merge pull request #1166 from erwincoumans/master
btThreadsAreRunning wasn't defined if BT_THREADSAFE was not defined, …
2017-06-04 22:53:11 -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
erwincoumans b01386077d Merge pull request #1169 from lunkhound/pr-gui-slider-fix
example browser: fix 'clamp-to-integer' on GUI-sliders
2017-06-04 22:08:47 -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
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
Erwin Coumans ff695dd328 Merge remote-tracking branch 'bp/master' 2017-06-03 08:16:59 -07:00
erwincoumans 861766f1d5 Merge pull request #1167 from YunfeiBai/master
Swap yaw and pitch, and use setEulerZYX in camera computation. Add camera yaw, pitch, distance, and target to getDebugVisualizerCamera. Add rgba color reset for TinyRender.
2017-06-03 08:16:32 -07:00
Erwin Coumans 1d1c822d52 btThreadsAreRunning wasn't defined if BT_THREADSAFE was not defined, causing compile errors using premake 2017-06-02 16:25:28 -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
erwincoumans 210994575b Merge pull request #1165 from erwincoumans/master
allow b3Clock to reset to time reference 0, by default reset will set…
2017-06-02 09:40:22 -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
erwincoumans e47a4d61c1 Merge pull request #1164 from erwincoumans/master
allow plane collision in SDF, 	fix some warnings
2017-06-02 08:05:50 -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
erwincoumans 86500004a5 Merge pull request #1160 from erwincoumans/master
Prepare/allow for non-Bullet2-based physics command processor in pybu…
2017-06-01 14:06:14 -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 439e8c84cf add new .obj files for kuka_iiwa/model.urdf 2017-05-31 21:43:09 -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
erwincoumans 130cd74ecb Merge pull request #1158 from erwincoumans/master
add pybullet.multiplyTransforms and pybullet.invertTransform
2017-05-30 10:59:55 -07:00
erwincoumans 978dd5844d due to b3Assert, GwenOpenGLTest/premake4.lua depends on Bullet3Common 2017-05-29 22:09:07 -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
erwincoumans 356d4104f0 Merge pull request #1155 from erwincoumans/master
fix bodyIndex -> bodyUniqueId in pybullet.
2017-05-28 17:30:43 -07: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
erwincoumans 225c603a52 Merge pull request #1152 from erwincoumans/master
expose pybullet changeDynamics(restitution=..., spinningFriction=..., rollingFriction=…
2017-05-27 09:58:47 -07: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
erwincoumans 7d2c609bcc Merge pull request #1151 from erwincoumans/master
also discard pixels in front of nearplane
2017-05-26 10:12:36 -07:00
Erwin Coumans 723b356667 also discard pixels in front of nearplane 2017-05-25 19:55:55 -07:00
erwincoumans f6643b4e5f Merge pull request #1150 from erwincoumans/master
TinyRenderer: discard pixels beyond farplane
2017-05-25 17:52:39 -07:00
Erwin Coumans 2b9c67b07c TinyRenderer: discard pixels beyond farplane
pybullet: printf build date/time
2017-05-25 17:25:14 -07:00