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
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
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
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
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
erwincoumans
dcdb3d40ba
Merge pull request #1149 from erwincoumans/master
...
use a fixed joint instead of crashing for unsupported joint types (pl…
2017-05-25 14:57:45 -07:00
Erwin Coumans
e023c012b4
TinyRendererVisualShapeConverter set near/far for its own camera.
2017-05-25 13:39:36 -07:00
Erwin Coumans
e6180ef98a
use a fixed joint instead of crashing for unsupported joint types (planar, floating joint)
2017-05-25 13:02:20 -07:00
erwincoumans
4388a6ea02
Merge pull request #1147 from erwincoumans/master
...
minor fixes, increase max visual shape path length from 128 to 1024 (bump up version of C-API/pybullet, since it breaks binary compatibiltiy)
2017-05-25 11:24:50 -07:00
Erwin Coumans
f090752cbb
bump up VISUAL_SHAPE_MAX_PATH_LEN from 128 to 1024, some google3 directories are loooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong :-)
2017-05-25 10:56:01 -07:00
Erwin Coumans
143a8dd239
Merge branch 'master' of https://github.com/erwincoumans/bullet3
2017-05-24 19:57:53 -07:00
Erwin Coumans
40db4998b9
Merge remote-tracking branch 'bp/master'
2017-05-24 19:57:28 -07:00
erwincoumans
5103f3b72d
Merge pull request #1146 from jietan/pullRequest
...
Pull request to update to the latest minitaur agent and env
2017-05-24 16:26:17 -07:00
erwincoumans
044ac8d10b
Merge pull request #1145 from erwincoumans/master
...
Improve debug text/line rendering, can be use to draw frames and text in local coordinate of an object / link.
2017-05-24 14:09:17 -07:00
Erwin Coumans
84d09cc18f
Split CommonGfxVertex3D into two different ones, GfxVertexFormat0 and GfxVertexFormat1
...
Rewrite GLInstancingRenderer::drawTexturedTriangleMesh
2017-05-24 13:05:16 -07:00
Erwin Coumans
344bb3f350
fix premake4.lua build file
2017-05-24 10:29:22 -07:00
Erwin Coumans
5e2599863d
trackObject -> parentObject
...
trackLinkIndex -> parentLinkIndex
add example debugDrawItems.py
2017-05-24 09:06:15 -07:00
Erwin Coumans
0f63e7a2f6
Merge remote-tracking branch 'bp/master'
2017-05-23 22:06:07 -07:00
Erwin Coumans
7bb802a91b
Merge branch 'master' of https://github.com/erwincoumans/bullet3
2017-05-23 22:05:38 -07:00
Erwin Coumans
db008ab3c2
Improve debug text/line rendering, can be use to draw frames and text in local coordinate of an object / link.
...
example:
kuka = p.loadURDF("kuka_iiwa/model.urdf")
p.getNumJoints(kuka)
pybullet.addUserDebugLine([0,0,0],[0,0,0.1],[0,0,1],trackObjectUniqueId=2,trackLinkIndex=6)
pybullet.addUserDebugText("tip", [0,0,0.1],textColorRGB=[1,0,0],trackObjectUniqueId=2,trackLinkIndex=6)
Also allow to render text using a given orientation (instead of pointing to the camera), example:
pybullet.addUserDebugText("tip", [0,0,0.1],textColorRGB=[1,0,0],textOrientation=[0,0,0,1], trackObjectUniqueId=2,trackLinkIndex=6)
Add drawTexturedTriangleMesh, for drawing 3d text.
Expose readSingleInstanceTransformToCPU, to extract position/orientation from graphics index.
updateTexture: allow to not flip texels around up axis
2017-05-23 22:05:26 -07:00
erwincoumans
4f3d60f4d0
Merge pull request #1142 from jietan/pullRequest
...
add back sonnet dependency. If sonnet is not installed, fall back to …
2017-05-23 10:05:36 -07:00
erwincoumans
f63ca87049
Merge pull request #1143 from YunfeiBai/master
...
Add kuka grasping block playback.
2017-05-23 10:05:15 -07:00
erwincoumans
2f3844e5db
Merge pull request #1131 from ahundt/cmake
...
cmake python config bugs fixed
2017-05-22 20:33:45 -07:00
Erwin Coumans
19933a9454
Merge remote-tracking branch 'bp/master'
2017-05-21 12:16:34 -07:00
Erwin Coumans
1ce894b3e9
add main_imgui.cpp
2017-05-21 12:16:27 -07:00
Erwin Coumans
aa2787520b
examples\pybullet\examples\humanoid_knee_position_control.py : allow both knees to be actuated against limit
2017-05-21 11:35:06 -07:00
erwincoumans
148716d0ff
Merge pull request #1135 from erwincoumans/master
...
disable Grasp Soft Body/SoftBody coupling demo unless USE_SOFT_BODY_MULTI_BODY_DYNAMICS_WORLD is defined, fixed related hang in experimental 'loadBunny' command
2017-05-21 11:00:43 -07:00
Erwin Coumans
fd40ba424b
test for knee joint limits under position control
2017-05-21 11:00:15 -07:00
erwincoumans
3c4fd2ce8c
Merge pull request #1132 from ahundt/btsoftbody
...
btsoftbody fix #1106 , compiler error in App_PhysicsServer_SharedMemory
2017-05-21 06:59:40 -07:00
erwincoumans
e0865ee8ed
Merge pull request #1133 from lunkhound/pr-remove-dcast
...
fix a crash in example browser when enabling multi-threading
2017-05-21 06:56:14 -07:00
Erwin Coumans
4dcf2b82b6
bump up pybullet to version 1.0.7
2017-05-21 06:53:06 -07:00
Erwin Coumans
b19c209dbc
The softbody/bunny test is very experimental and shouldn't be enabled in the example browser, unless USE_SOFT_BODY_MULTI_BODY_DYNAMICS_WORLD is defined. I fixed a few bugs that cause the hang.
2017-05-21 06:50:53 -07:00
erwincoumans
4ba4c11734
Merge pull request #1129 from jietan/pullRequest
...
remove sonnet dependency
2017-05-18 16:37:49 -07:00
Erwin Coumans
f5d7aac5cc
bump up pybullet to 1.0.6, prepare to tag Bullet 2.87 release
2017-05-17 21:21:33 -07:00
erwincoumans
d40787f3fd
Merge pull request #1128 from erwincoumans/master
...
.obj file caching, update VR camera even when setRealTimeSimulation(0) + position-only tracking
2017-05-17 21:19:01 -07:00
Erwin Coumans
a2a83975f2
update pybullet quickstart guide pdf from https://docs.google.com/document/d/10sXEhzFRSnvFcl3XxNGhnD4N2SedqwdAvK3dsihxVUA/edit#
2017-05-17 19:42:28 -07:00
Erwin Coumans
c2fdffba35
pybullet.enableJointForceTorqueSensor kwlist was not properly terminated
2017-05-17 19:37:51 -07:00
Erwin Coumans
19295f2859
enable file caching, currently only for Wavefront .obj files. You can disable file caching using
...
pybullet.setPhysicsEngineParameter(enableFileCaching=0)
Allow VR camera tracking only using position tracking, no orientation tracking (use
pybullet.setVRCamera([posX,posY,posZ],trackObjectFlag=0 or pybullet.VR_CAMERA_TRACK_OBJECT_ORIENTATION)
2017-05-17 19:29:12 -07:00
Erwin Coumans
972660f825
Only initialized values if provided (and don't initialize default if not provided!)
...
fixes getCameraImage(width,height) crash
2017-05-17 17:25:34 -07:00
Erwin Coumans
9c4a5f9336
update VR camera even if setRealTimeSimulation(0)
...
also update w component in setVRCameraState orientation
2017-05-17 16:29:30 -07:00
erwincoumans
40f923647a
Merge pull request #1127 from erwincoumans/master
...
fix issue when re-connecting to physics server, after removeBody.
2017-05-16 17:40:40 -07:00
Erwin Coumans
ea10c6d335
fix issue when re-connecting to physics server, after removeBody.
2017-05-16 17:19:45 -07:00
erwincoumans
ba22f4a4dc
Merge pull request #1126 from erwincoumans/master
...
allow to enable/disable VR picking and VR teleport. Disabling VR pick…
2017-05-16 13:55:47 -07:00
Erwin Coumans
433d11d8cf
Add a btIDEbugDraw::clearLines, helps multi-threaded rendering of lines (while updating those lines in a dynamics world in a different thread)
...
Expose COV_ENABLE_VR_RENDER_CONTROLLERS, to enable/disable rendering of controllers (and some frames) in VR
Expose COV_ENABLE_RENDERING to enable/disable rendering.
Fix some multi-threading issues (potential crashes), related to debug drawing/rendering in one thread, while changing the dynamics world/removing/resetSimulation in a different thread.
2017-05-16 12:19:03 -07:00
Erwin Coumans
4dea68e43e
allow to enable/disable VR picking and VR teleport. Disabling VR picking will also disable the rendering of the VR controller frames.
2017-05-15 11:39:39 -07:00
erwincoumans
945b9b1b1d
Merge pull request #1125 from erwincoumans/master
...
GLInstancingRenderer: don't crash but assert/return -1 when exceeding vertex capacity
2017-05-15 09:37:28 -07:00
Erwin Coumans
a554c250a7
GLInstancingRenderer: don't crash but assert/return -1, if the # vertices exceeds the maximum capacity.
2017-05-15 09:02:49 -07:00
Erwin Coumans
dfe618bd62
initialize UrdfGeometry members
2017-05-15 07:59:07 -07:00
erwincoumans
cd78379899
Merge pull request #1124 from erwincoumans/master
...
initialize alpha component of color
2017-05-14 21:34:56 -07:00
Erwin Coumans
11fa56513b
initialize alpha component of color
2017-05-14 21:14:56 -07:00
erwincoumans
4e72ff4a30
Merge pull request #1123 from erwincoumans/master
...
clear unused visual shape data, bump up pybullet version, update pybullet quickstart guide pdf
2017-05-14 19:29:48 +00:00
Erwin Coumans
987b9541a5
clear unused visual shape data (was de-allocated at the end, not during each 'resetSimulation')
2017-05-14 11:09:32 -07:00
Erwin Coumans
196d3248b4
update pybullet quickstart guide, bump up pybullet to version 1.0.4 (will update pypi)
2017-05-13 19:13:32 -07:00
erwincoumans
f74ef9dd76
Merge pull request #1122 from erwincoumans/master
...
added getJointStates and make humanoid_running.py use it to reduce Py…
2017-05-14 02:05:44 +00:00
Erwin Coumans
bb4c195118
added getJointStates and make humanoid_running.py use it to reduce Python<->C++ calling overhead a lot.
2017-05-13 18:07:49 -07:00
erwincoumans
6ca6f5541f
Merge pull request #1121 from erwincoumans/master
...
don't render objects with zero alpha, expose the changeVisualShape RGBA color
2017-05-13 21:25:43 +00:00
Erwin Coumans
8b90885cf6
more compile fixes
2017-05-13 13:58:05 -07:00
Erwin Coumans
e954374e56
build system fixes
2017-05-13 13:50:35 -07:00
Erwin Coumans
ef7a7f9004
Potential fix for Linux slow performance (usleep(0) takes a lot of time)
...
Remove b3RobotSimAPI, use RobotSimulator/b3RobotSimulatorClientAPI.h instead
2017-05-13 13:37:49 -07:00
Erwin Coumans
0944790577
migrating from b3RobotSimAPI to b3RobotSimulatorClientAPI (step by step)
...
allow to run the client/server code in the example browser without this b3RobotSimAPI hack.
2017-05-13 11:15:20 -07:00
Erwin Coumans
f80838e989
expose the changeVisualShape RGBA color for TinyRenderer, OpenGL3 renderer.
2017-05-13 09:18:36 -07:00
erwincoumans
f445a734a6
Merge pull request #1120 from erwincoumans/master
...
removeBody: also remove CPU/TinyRenderer visual shapes
2017-05-13 14:41:16 +00:00
Erwin Coumans
7cb763e4c8
don't render objects with zero alpha color (RGBA)
2017-05-13 07:38:00 -07:00
Erwin Coumans
f692973f47
update pybullet quickstart guide. See also pip install pybullet.
2017-05-12 20:45:22 -07:00
Erwin Coumans
e2d596f4d0
remove visual shape from CPU/TinyRenderer with removeBody
...
(thanks to Jeff Bingham for reporting the bug!)
2017-05-12 20:24:10 -07:00
Erwin Coumans
845eb43610
Merge branch 'master' of https://github.com/erwincoumans/bullet3
2017-05-12 17:18:10 -07:00
Erwin Coumans
85c84ce09a
remove other humanoids in single humanoid_running.py example
2017-05-12 17:18:04 -07:00
Erwin Coumans
79e2c10506
add second humanoid_running_3.py example with 3 humanoids, for testing. Created a humanoid_symmetric_no_ground.xml and ground.xml:
...
if the ground is duplicated, simulation is unstable (too many contacts in the same area?)
2017-05-12 17:17:27 -07:00
erwincoumans
43a59795ba
Merge pull request #1119 from AndrewMeadows/minor-cleanup-contraints
...
fix typo in btHingeConstraint method name
2017-05-12 23:35:06 +00:00
erwincoumans
3480574e60
Merge pull request #1118 from erwincoumans/master
...
fix in pybullet pybullet_calculateInverseKinematics: physicsClientId should always go last
2017-05-12 20:56:46 +00:00
erwincoumans
9356019572
Merge pull request #1116 from olegklimov/master
...
Rewrite collision filtering code for C API
2017-05-12 20:56:26 +00:00
Erwin Coumans
3bdc60c050
fix pybullet inversekinematics argument order (O/i)
...
add spinning friction to some tutorial
2017-05-12 11:18:33 -07:00
Erwin Coumans
3bcdd29bf5
Merge remote-tracking branch 'bp/master'
2017-05-12 10:17:31 -07:00
erwincoumans
233717625b
Merge pull request #1117 from erwincoumans/master
...
googley colors, textured sphere, capsule, multi-sphere shapes
2017-05-12 06:55:41 +00:00
Erwin Coumans
8085068603
Merge remote-tracking branch 'bp/master'
2017-05-11 23:00:00 -07:00
Erwin Coumans
b22ffcf61c
Use more googley colors in the examples.
...
Add high-resolution textured sphere, and automatically convert sphere, capsule and multi-sphere shape to use this, with caching to avoid duplicates.
2017-05-11 22:59:27 -07:00
erwincoumans
ac7518d24b
Update humanoid_running.py
...
remove obsolete fps comment, runs at > 1000FPS on my laptop
2017-05-11 22:51:50 -07:00
erwincoumans
0e12277cfb
Update humanoid_running.py
...
disable sleep and use GUI mode by default
2017-05-11 22:26:49 -07:00
erwincoumans
d4ec33d8e4
Merge pull request #1115 from erwincoumans/master
...
added the humanoid_running.py from this pull request, modified so it …
2017-05-12 05:16:50 +00:00
Erwin Coumans
951da22e59
Merge remote-tracking branch 'bp/master'
2017-05-11 17:50:48 -07:00
Erwin Coumans
97235578fb
added the humanoid_running.py from this pull request, modified so it works with plain pybullet.
2017-05-10 18:08:43 -07:00
erwincoumans
f74adffb84
Merge pull request #1114 from YunfeiBai/master
...
Add an example to decode the packed button events from vr log.
2017-05-10 23:41:12 +00:00
erwincoumans
9a80b529d8
Merge pull request #1112 from erwincoumans/master
...
bump up setup.py pybullet pypi pip version to 1.0.2
2017-05-10 23:19:21 +00:00
Erwin Coumans
53a82819a0
expose b3LoadMJCFCommandSetFlags / pybullet.pybullet_loadMJCF(fileName,flags=pybullet.URDF_USE_SELF_COLLISION_EXCLUDE_ALL_PARENTS)
2017-05-10 15:01:25 -07:00
erwincoumans
7da4a362e1
Merge pull request #1111 from erwincoumans/master
...
fix hash functions, pybullet: implement setJointMotorControlArray
2017-05-09 23:56:43 +00:00
erwincoumans
beec3f1025
Merge pull request #1110 from YunfeiBai/master
...
Fix the z-buffer fighting by adding back face culling. Optimize tinyrender by precompute matrix multiplication in vertex shader.
2017-05-09 21:43:57 +00:00
erwincoumans
566a59295b
Merge pull request #1103 from YunfeiBai/master
...
Add default specular value and an example for rendering specular reflection. Add API to get dynamic info.
2017-05-09 18:29:46 +00:00
Erwin Coumans
0f5b400895
pybullet: implement setJointMotorControlArray, the array version of setJointMotorControl2. This can improve performance in reinforcement learning loops (training / inference) by reducing Python/C-API/shared memory calling overhead.
2017-05-08 13:41:07 -07:00
erwincoumans
47eae8db35
Merge pull request #1105 from erwincoumans/master
...
optimizations for btMultiBodyJointMotor, btMultiBodyJointLimitConstraint
2017-05-08 16:34:28 +00:00
Erwin Coumans
18dbf6f018
Merge remote-tracking branch 'bp/master'
2017-05-08 09:08:50 -07:00
Erwin Coumans
a69442d119
Some optimizations for btMultiBodyJointMotor (skip constraint generation if maxImpulse/maxForce = 0) and
...
skip constraint row generation if joint limit is not violated.
2017-05-08 09:06:39 -07:00
erwincoumans
67392b85d5
Merge pull request #1099 from gregeryb/patch-4
...
getSolveSwingLimit() returns wrong value
2017-05-06 16:47:33 +00:00
erwincoumans
c4844c650f
Merge pull request #1078 from olegklimov/master
...
Random improvements 2
2017-05-06 16:46:59 +00:00
erwincoumans
7e5e48eee6
Merge pull request #1098 from erwincoumans/master
...
update benchmark
2017-05-06 01:06:29 +00:00