Files
bullet3/data
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
..
2018-02-23 18:56:11 -08:00
2019-11-08 14:28:11 -08:00
2015-04-16 10:17:35 -07:00
2014-01-17 22:19:12 -08:00
2019-11-19 19:20:08 -08:00
2019-11-19 19:20:08 -08:00
2018-02-11 21:29:02 -08:00
2014-01-17 22:19:12 -08:00
2016-05-13 22:57:41 -07:00
2013-03-22 16:24:09 -07:00
2019-09-28 14:43:40 -07:00
2017-10-19 14:29:43 -07:00
2019-09-04 18:48:00 -07:00
2013-03-18 20:44:26 -07:00
2017-06-01 20:13:39 -07:00
2013-03-18 20:44:26 -07:00
2018-02-14 15:41:10 -08:00