Commit Graph
3010 Commits
Author SHA1 Message Date
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 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
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
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 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 bfba4ac2b6 Merge pull request #2637 from drigz/tf-compat
Replace tensorflow with tf.compat.v1
2020-02-20 10:56:21 -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
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
erwincoumans 665c04fbed Merge pull request #2622 from marcel303/NoGL-fixes
NoGL fixes
2020-02-14 14:54:14 -08:00
erwincoumans f80806db49 Merge pull request #2623 from marcel303/TinyRender-namespace2
Put TinyRender functions and classes inside a TinyRender namespace.
2020-02-14 14:53:33 -08:00
vabr-g dd8fcad6d8 Include dlerror() in handling of failed dlopen()
X11OpenGLWindow::X11OpenGLWindow() ends up calling dlopen() to get libX11.
When this fails, it only reports that it failed, and what filename it was looking for.
This commit adds dlerror() to the error message, which makes investigating failures easier.
2020-02-14 15:32:40 +01:00
Marcel Smit bdb0cc2f3e LuaDemo compile fix. 2020-02-14 12:07:39 +01:00
Marcel Smit 40e44caedd Put TinyRender functions and classes inside a TinyRender namespace. The TinyRender library defines some classes with very generic names, such as vec, Matrix, Model, which in my case, when compiling the example browser using a different library for graphics, is giving me name clashes. 2020-02-14 11:54:25 +01:00
Marcel Smit 3b0f5812c9 NoGL: double to btScalar. 2020-02-14 11:30:45 +01:00
Marcel Smit 04f03d78af NoGL: Update ExampleBrowserInterface and EmptyBrowser, with interface methods added to the OpenGL example browser, but didn't get added to the interface and empty interface. Required to compile the in-process example browser without OpenGL dependency. 2020-02-14 11:23:28 +01:00
Marcel Smit df0910e5a8 NoGL: Cleanup inverse kinematics example. It was still including an OpenGL-related header file, even though not using any OpenGL. 2020-02-14 11:12:47 +01:00
erwincoumans b06cdd5fc1 Merge pull request #2612 from xhan0619/master
Improve intra-deformable collision and deformable self collision
2020-02-12 19:30:46 -08:00
Erwin Coumans b3ff3ebcb1 add pendulum of 5 links 2020-02-12 13:05:51 -08:00
Erwin Coumans e7ad8a9d67 add urdf file for testing 2020-02-11 15:10:22 -08:00
Xuchen Han b9c0456d85 fix split impulse demo 2020-02-07 13:22:41 -08:00
Xuchen Han 3bc701c487 Improve intra-deformable collision and deformable self collision 2020-02-06 17:01:20 -08:00
Erwin Coumans 6195f40c02 fix compile issue in pybullet.c 2020-02-06 09:11:18 -08:00
erwincoumans b809cdef5b Merge pull request #2608 from erwincoumans/master
implement b3RobotSimulatorClientAPI_NoDirect::createVisualShape
2020-02-06 09:00:05 -08:00
Erwin Coumans d0f895fbbd Merge branch 'master' of https://github.com/erwincoumans/bullet3 2020-02-04 20:59:26 -08:00