Questions tagged [pybullet]

PyBullet is a module for physics simulation, robotics and deep reinforcement learning. It's an easy to use package and highly recommended for real-time collision detection, multi-physics for VR simulations, etc. The tag should be used when asking questions about Python implementations of the Bullet Physics SDK.

PyBullet is a Python package based upon the infamous Bullet Physics SDK/Engine for which the developer, Erwin Coumans, even won a Scientific and Technical Academy Award. The Python module has implemented most of the features the original C++ SDK has as well - referring to this GitHub repository.

With PyBullet comes a lot of functionality (for the list click here), including but not limited to physics simulation, robotics, deep reinforcement learning, dynamics simulation, inverse dynamics computation and so on. Aside from physics simulation, you're also able to either render it via CPU or visualize the data via OpenGL.

62 questions
0
votes
0 answers

Creating a load carrying multirobot simulation in pybullet

I am planning to do multirobot load carrying simulations which would like this where the two circles are robots and the rectangle is a load I have found an excellent library that has a very simple holonomic point robot simulation…
0
votes
1 answer

PyBullet: All link arrays need to be same size

When trying to create a Multibody with a base and a link (or even more links) i get the error from the title. I checked that all the length of arrays(lists) are the same and made a super simple version with only a base and one…
0
votes
1 answer

No matching distribution found for pybullet==2.7.3

I am trying to install pybullet with Python3.7.9 as python3.7 -m pip install pybullet==2.7.3. I keep getting an error that says it can't find the version and as you can see from the full error below that the version is skipped in the error…
MrDrago9
  • 13
  • 6
0
votes
1 answer

Most efficient Pybullet.getBasePositionAndOrientation vector conversion

What is the best way to convert the orientation from pybullet.getBasePositionAndOrientation to a vector in xyz axis representation in python? I could only find limited documentation so far on this issue, thanks for any insight.
Silicon
  • 21
  • 2
0
votes
1 answer

PyBullet cannot load urdf file

When I try running an example PyBullet file, like the one below, I keep getting the following error message: import pybullet as p from time import sleep import pybullet_data physicsClient =…
Mark
  • 25
  • 5
0
votes
1 answer

Python cannot load URDF file

I have the following code: import pybullet as p import time import pybullet_data physicsClient = p.connect(p.GUI) p.setGravity(0,0,-9.81) planeId = p.loadURDF("plane.urdf") startPos = [0,0,1] startOrientation =…
Mark
  • 25
  • 5
0
votes
0 answers

Pybullet on colab, cannot connect X server

I am using rl-baselines-zoo 3 to run ddpg with my custom env on colab. After I used show video function in that zoo repo, it said it cannot connect to the server. It works fine on other built-in envs, so I guess it's my env problem. please, need…
0
votes
1 answer

What is the default value of physicsClientId?

More or less all functions of pyBullet take an optional argument physicsClientId which is needed when multiple instances are running in parallel. When writing custom functions that call pybullet internally, I would like to provide this as an…
luator
  • 4,769
  • 3
  • 30
  • 51
0
votes
2 answers

Simulate camera with distortion in pyBullet

I am trying to configure a camera in pyBullet based on intrinsic and extrinsic parameters obtained from calibrating a real camera. What I have The camera is calibrated with OpenCV, giving me a camera matrix |f_x 0 c_x| | 0 f_y c_y| | 0 0 1…
luator
  • 4,769
  • 3
  • 30
  • 51
0
votes
1 answer

How to load urdf.xacro in Pybullet?

Usually in Pybullet we can do: robot = p.loadURDF(os.path.join(urdfRootPath, "robot.urdf"),useFixedBase=True) to load a URDF. Is it possible to load a urdf.xacro file directly?
Rexcirus
  • 2,459
  • 3
  • 22
  • 42
0
votes
1 answer

module '' has no attribute '__path__'

I'm using commands on terminal to run this script (plot_test.py is the name of the file): #python3 import pybullet as p import pybullet_data as p_data import time import matplotlib.pyplot as plt import numpy as np #to reshape for…
Rohit Kumar J
  • 87
  • 1
  • 8
0
votes
1 answer

‘pip install pybullet’ causes error “cannot open input file ‘Ws2_32.lib’”

When pip install pybullet is entered into the command prompt, the wheel fails to build and “errors out with exit status 1” then after a long list of red text it says: LINK : fatal error LNK1181: cannot open input file ‘Ws2_32.lib’ before trying and…
S2673
  • 269
  • 4
  • 15
0
votes
1 answer

VcXsrv WSL X server closes unexpectedly. Do I need to disable GPU?

I am trying to run some code with pybullet. I am on windows 10, have the latest vscode, and I am using WSL remote on vscode with ubuntu 18.04 LTS. I have a GTX 2070 graphics card. I just want to see this work, I've been trying to fix it for the last…
0
votes
1 answer

Can I load human as soft body in pybullet?

I do have solid model of human (.stl and .obj files). How can load it as soft body in PyBullet ? Any suggestions. Thanks
0
votes
1 answer

How to resize objects in pybullet environment?

I am new to pybullet and i was just trying to render table. I used the one given as an example on kukaarm. What i wanted to do here is resize it.So i edited the .obj file but this is the result, scaling the mesh in urdf isn't giving me any results.…
Sofi
  • 1
  • 1