Erwin Coumans
17c6839a77
add example of using vhacd in pybullet
2020-03-15 18:15:14 -07:00
Erwin Coumans
f0528db5e9
embed V-HACD directly into Pybullet to make it easier to use:
...
pip3 install pybulle
import pybullet as p
p.connect(p.DIRECT)
p.vhacd("teddy.obj", "teddy_large_newout.obj", "newlog.txt", depth=2,resolution=1000000)
2020-03-16 00:38:52 -07:00
Erwin Coumans
1c39f763bb
Merge branch 'master' of https://github.com/erwincoumans/bullet3
2020-03-15 22:55:07 -07:00
Erwin Coumans
623bd27bac
VHACD -> use Bullet/src/LinearMath instead of a copy of those files
2020-03-15 22:54:01 -07:00
Erwin Coumans
2d5e8ea1f3
convert upper/lower limits in urdfEditor.py
2020-03-13 20:49:39 -07:00
erwincoumans
4ab1ded781
Merge pull request #2657 from fuchuyuan/activate
...
Activate
2020-03-05 11:55:22 -08:00
Chuyuan Fu
d02989cc96
fix space
2020-03-05 10:50:54 -08:00
Chuyuan Fu
b37448278a
fix rigidbody activation
2020-03-05 10:48:56 -08:00
erwincoumans
8a3e2e9fa6
Merge pull request #2653 from xhan0619/master
...
Bug fix in barycentric weight calculation
2020-03-03 11:53:22 -08:00
Xuchen Han
1cb9a0630f
bug fix in barycentric weight calculation
2020-03-02 22:48:25 -08:00
erwincoumans
acb7f7ee8a
Merge pull request #2652 from xhan0619/master
...
Support separate render and simulation obj & fix sleeping issue for deformable.
2020-03-02 17:06:37 -08:00
erwincoumans
2b1e27834b
Merge pull request #2649 from erwincoumans/master
...
use PyBullet's own visualizer for enjoy script, + add a time.sleep si…
2020-03-02 16:43:21 -08:00
Xuchen Han
62537436f2
more Motor->NonContactInner
2020-03-02 16:03:27 -08:00
Xuchen Han
4f36e09747
Motor->NonContactInner
2020-03-02 16:00:40 -08:00
Xuchen Han
2869a386a7
prevent geometric collision for sleeping deformable objects
2020-03-02 13:32:04 -08:00
Xuchen Han
c86da93d58
fix type error
2020-03-02 13:29:59 -08:00
Erwin Coumans
1f3c0057e5
increase the number of steps from 1000 to 2000, to mimic multiple cycles
2020-03-02 12:52:14 -08:00
Xuchen Han
a6bc125945
formatting
2020-03-02 12:12:04 -08:00
Xuchen Han
dbf2050269
extrapolate render mesh
2020-03-02 12:12:04 -08:00
erwincoumans
44ddb17c0c
Merge pull request #2645 from xhan0619/master
...
Separate motor constraint iterations and expose API.
2020-03-01 21:48:22 -08:00
Erwin Coumans
6b393dffca
set correct reward for deep_mimic gymenv (max episode = 1000 steps, 1 reward at each step)
...
terminate testrl.py at 1000, show reward
2020-03-01 21:27:30 -08:00
Erwin Coumans
81c1daacbb
Connect deep_mimic_env.py to internal pybullet_deep_mimic_env.py
...
This adds two untested Gym environments to pybullet_envs. todo: train using PPO2 etc
HumanoidDeepMimicBackflipBulletEnv-v1
HumanoidDeepMimicWalkBulletEnv-v1
2020-03-01 21:13:10 -08:00
Erwin Coumans
7c5073d3ab
prepare towards HumanoidDeepMimicBackflipBulletEnv-v1 and HumanoidDeepMimicWalkBulletEnv-v1
...
remove unused SubprocVecEnv from stable_baselines/enjoy.py
2020-03-01 13:11:47 -08:00
Erwin Coumans
7ecb769a9c
add flag to assure deterministicOverlappingPairs
2020-03-01 12:22:47 -08:00
Erwin Coumans
da5ac61baa
use PyBullet's own visualizer for enjoy script, + add a time.sleep since it is way too fast (1000FPS for cart pole)
2020-02-29 22:02:01 -08:00
erwincoumans
35fa7f908d
Merge pull request #2648 from erwincoumans/master
...
workaround for Tensorflow 2.x breaking API:
2020-02-29 21:41:58 -08:00
Erwin Coumans
8e8955571f
workaround for Tensorflow 2.x breaking API:
...
try:
import tensorflow.compat.v1 as tf
except Exception:
import tensorflow as tf
2020-02-29 20:35:05 -08:00
Xuchen Han
7ad19fde6f
formatting
2020-02-26 14:16:51 -08:00
Xuchen Han
84117b8440
separate motor constraint iterations and expose API
2020-02-26 14:11:41 -08:00
erwincoumans
dc11c43666
Merge pull request #2641 from erwincoumans/master
...
fix memleak due to custom container, release memory of m_deformableBodySolver in ClothFriction demo
2020-02-22 11:18:41 -08:00
Erwin Coumans
dc19da18ee
fix memory leak due to custom container not handling copy operator for recursive containers
2020-02-22 10:54:23 -08:00
Erwin Coumans
36738b7676
release memory of m_deformableBodySolver in ClothFriction demo.
2020-02-22 10:40:31 -08:00
erwincoumans
279a5c19d5
Merge pull request #2640 from erwincoumans/master
...
PyBullet: add option to merge fixed links in URDF file, capsule field init
2020-02-21 17:49:51 -08:00
erwincoumans
3f4299d588
Merge pull request #2630 from vabr-g/vabr-g-dlerror-patch
...
Include dlerror() in handling of failed dlopen()
2020-02-21 17:26:13 -08:00
erwincoumans
e78eb2706d
Merge pull request #2627 from araffin/feat/sb-enjoy
...
Add enjoy script for Stable Baselines
2020-02-21 17:25:39 -08:00
erwincoumans
49960d18df
Update UrdfParser.cpp
...
fix cast
2020-02-21 16:49:05 -08:00
Erwin Coumans
0fd8598ca3
fix pybullet constants in previous commit
2020-02-21 16:16:13 -08:00
Erwin Coumans
f5afe9a1d1
Merge remote-tracking branch 'bp/master'
2020-02-21 15:12:17 -08:00
Erwin Coumans
6e18cd0fd7
bump up pybullet version to 2.6.6
2020-02-21 15:05:37 -08:00
Erwin Coumans
e29ba9fe5c
add option to merge fixed links in URDF file (improves performance, can handle URDF files with many fixed links)
...
add option to ignore visual and collision shapes in URDF file
2020-02-21 15:04:26 -08:00
Erwin Coumans
6910fc9229
initialize capsule from_to field
2020-02-21 02:05:01 -08:00
erwincoumans
981d5f2bf3
Merge pull request #2634 from stephengold/safeNormalize
...
use safeNormalize() to avoid assert failure in btVector3::normalize()
2020-02-20 10:57:42 -08:00
erwincoumans
bfba4ac2b6
Merge pull request #2637 from drigz/tf-compat
...
Replace tensorflow with tf.compat.v1
2020-02-20 10:56:21 -08:00
erwincoumans
e8e0673e34
Merge pull request #2626 from erwincoumans/master
...
unsupported: expose collisionMargin to changeDynamics/getDynamicsInfo
2020-02-20 10:55:42 -08:00
Rodrigo Queiro
d18531cc6a
Replace tensorflow with tf.compat.v1
...
This means they won't break when using TensorFlow 2.0.
2020-02-19 17:35:48 +01:00
Stephen Gold
43877214bd
use safeNormalize() to avoid assert failure in btVector3::normalize()
2020-02-17 22:45:22 -08:00
Antonin RAFFIN
21efd84c18
Add enjoy script for Stable Baselines
2020-02-15 21:06:10 +01:00
Erwin Coumans
0617f4f3cd
expose computeDofCount to pybullet
...
expose computeDofCount and calculateMassMatrix to BulletRobotics C++ API
(all untested)
2020-02-14 19:58:32 -08:00
Erwin Coumans
56e6893ed9
Merge remote-tracking branch 'bp/master'
2020-02-14 17:37:18 -08:00
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