Erwin Coumans
6afa0a463d
unsupported: expose collisionMargin to changeDynamics/getDynamicsInfo.
add cube_convex.urdf for testing this collisionMargin. Test script:
import pybullet as p
import time
p.connect(p.GUI)
plane = p.loadURDF("plane_implicit.urdf")
cube = p.loadURDF("cube_convex.urdf",[0,0,1])
p.setGravity(0,0,-10)
while (1):
p.stepSimulation()
pts = p.getContactPoints()
p.changeDynamics(plane,-1,collisionMargin=0.3)
p.changeDynamics(cube,-1,collisionMargin=0.3)
print("===================")
print("cube pos=", p.getBasePositionAndOrientation(cube)[0])
print("margin=", p.getDynamicsInfo(plane,-1)[11])
#time.sleep(1./10.)
2020-02-14 17:36:40 -08:00
..
2019-08-02 14:06:42 -07:00
2019-04-15 21:55:29 -07:00
2019-08-11 13:59:24 -07:00
2018-09-23 14:17:31 -07:00
2020-01-11 12:19:42 -08:00
2019-03-23 12:45:59 -07:00
2020-01-04 19:29:52 -08:00
2019-03-14 16:57:50 -07:00
2019-03-14 16:57:50 -07:00
2020-01-11 12:19:42 -08:00
2018-09-23 14:17:31 -07:00
2019-05-22 10:01:32 +02:00
2018-09-23 14:17:31 -07:00
2018-09-23 14:17:31 -07:00
2018-09-23 14:17:31 -07:00
2019-07-29 20:29:07 -07:00
2020-01-17 11:55:42 +01:00
2018-10-08 21:27:08 -07:00
2020-01-11 12:43:27 -08:00
2018-09-23 14:17:31 -07:00
2019-02-27 17:10:17 -08:00
2019-08-02 13:15:00 -07:00
2019-03-14 16:57:50 -07:00
2019-11-20 17:06:05 -08:00
2018-09-23 14:17:31 -07:00
2020-01-12 08:07:54 -08:00
2018-09-23 14:17:31 -07:00
2020-02-14 17:36:40 -08:00
2018-09-23 14:17:31 -07:00
2018-10-08 21:27:08 -07:00
2018-09-23 14:17:31 -07:00
2019-12-31 14:08:21 -08:00
2019-06-15 10:30:48 -07:00
2018-10-08 21:27:08 -07:00
2020-02-14 17:36:40 -08:00
2018-09-23 14:17:31 -07:00
2018-09-23 14:17:31 -07:00
2019-12-11 13:59:44 -08:00
2020-01-11 13:16:12 -08:00
2018-09-23 14:17:31 -07:00
2019-11-08 16:10:05 -08:00
2018-09-23 14:17:31 -07:00
2019-06-15 10:30:48 -07:00
2019-07-21 13:08:22 -07:00
2018-11-19 14:47:03 -08:00
2018-09-23 14:17:31 -07:00
2019-08-08 15:00:55 -07:00