Commit Graph
1148 Commits
Author SHA1 Message Date
Erwin Coumans 89a7907f45 add vesion of laikago with limits. 2020-04-14 13:39:43 -07:00
Erwin Coumans b45d697d28 always use python release version (not debug) on Windows, similar hack as pybind11 2020-04-10 09:19:51 -07:00
Chuyuan Fu 3829887ced twin torus 2020-04-01 21:27:48 -07:00
Erwin Coumans 05efff3c4f move pickup.zip inside pickup2.zip 2020-03-30 14:59:41 -07:00
Erwin Coumans d725b3fd0e add pickup2.zip (that contains pickup.zip) 2020-03-30 14:35:28 -07:00
Erwin Coumans 762c21601f cache zipfile, and also allow to read zipfile from memory
this allows zipfiles to be stored anywhere in already registed fileIO (such as zipfiles inside other zipfiles)
see Bullet/examples/pybullet/examples/fileIOPlugin.py
enable vhacd, fileIO and zipFileIO in premake version of PyBullet
fix potential memory leak in mtl loading
2020-03-30 14:24:20 -07:00
Erwin Coumans e20b858a28 add pybullet_utils.transformations from ROS geometry:
https://github.com/ros/geometry/blob/melodic-devel/tf/src/tf/transformations.py
2020-03-24 10:34:02 -07:00
erwincoumans eab851635e Merge pull request #2679 from erwincoumans/master
Embed TCP remote graphics server in PyBullet (enable WFH), fixes for compilation on Visual C++ for Python 9.0
2020-03-22 14:04:35 -07:00
Erwin Coumans 0b6457d318 fix cmake/premake builds 2020-03-22 11:58:39 -07:00
Erwin Coumans 377069bfa5 add laikago/xarm in pybullet_robots 2020-03-22 11:37:08 -07:00
Antonin RAFFIN a6314958a6 Add CheckpointCallback and load best automatically 2020-03-22 13:44:05 +01:00
Erwin Coumans 99c7c32b10 tcp fixes and allow to run graphics server on mainloop (for Mac) 2020-03-20 16:50:44 -07:00
Erwin Coumans 911355fe62 fixes for Mac OSX 2020-03-20 15:57:19 -07:00
Erwin Coumans 344bd629ee embed TCP graphics server in PyBullet for easier working-from-home
This allows to render at a different machine, sending all assets across the TCP network, using port 6667 by default.
You can use ssh port forwarding to get this working:
ssh -R 6667:localhost:6667 username@remotehost.com -v

python3 -m pybullet_utils.graphicsServer
python3 -m pybullet_utils.graphicsClient

Note that there are still some tcp networking issues that can cause a hang, just restart graphics server and graphics client if it hangs.
2020-03-20 15:43:52 -07:00
Erwin Coumans c06859723b Embed graphics server (shared memory) in PyBullet. Use pybullet.connect(pybullet.GRAPHICS_SERVER) to enable it.
TODO: enable for Mac OSX on mainloop, add tcp bridges from and to shared memory.
2020-03-19 14:18:35 -07:00
Erwin Coumans fde6cffecc create BulletRoboticsGUI CMake target, pybullet links against it
fix BulletRobotics header install
2020-03-16 23:15:18 -07:00
Erwin Coumans 1640eef937 pybullet: enable getMeshData for multibody/rigid body (and filter on collisionShapeIndex for compound shapes) 2020-03-17 00:38:12 -07:00
Erwin Coumans 27fbbfee7f pybullet removeAllParameters (sliders, buttons)
pybullet addUserDebugParameter adds button instead of slider, if min > max.
2020-03-16 21:29:30 -07:00
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 2d5e8ea1f3 convert upper/lower limits in urdfEditor.py 2020-03-13 20:49:39 -07: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
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
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 e78eb2706d Merge pull request #2627 from araffin/feat/sb-enjoy
Add enjoy script for Stable Baselines
2020-02-21 17:25:39 -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
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 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
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
Erwin Coumans 6195f40c02 fix compile issue in pybullet.c 2020-02-06 09:11:18 -08:00
Tigran Gasparian 34db76d263 Adds an option to syncUserData to specify the bodies for which to sync. 2020-01-23 14:46:33 +01:00
Tigran Gasparian a88ffea416 . 2020-01-17 13:30:26 +01:00
Tigran Gasparian 68d3fb28e0 Adds support for loading user data from URDF files. 2020-01-17 11:55:42 +01:00
Erwin Coumans 1be6a1d16b fix loadpanda video generation
remove duplicate code (formerly Windows ffpmeg needed different settings?)
2020-01-12 08:07:54 -08:00
Erwin Coumans 84e2ea918c add xarm, modify loadpanda to work with pybullet_robots module 2020-01-12 07:20:32 -08:00
Erwin Coumans fb15aea414 add example robots in pybullet_robots module 2020-01-12 07:11:57 -08:00
Erwin Coumans 3ca233193f : 2020-01-12 07:03:38 -08:00
Erwin Coumans 2f08938110 Merge branch 'master' of https://github.com/erwincoumans/bullet3 2020-01-11 16:52:01 -08:00
erwincoumans a9615258d3 Merge pull request #2580 from erwincoumans/master
add --mp4fps=30 command line parameter for ExampleBrowser, various other fixes
2020-01-11 15:14:11 -08:00