Search found 4221 matches

by Erwin Coumans
Tue Mar 15, 2022 4:41 am
Forum: PyBullet Support and Feedback
Topic: Create Shared Memory Server
Replies: 1
Views: 31486

Re: Create Shared Memory Server

You can use p.GUI_SERVER and connect from one (1, not multiple) other client using p.SHARED_MEMORY.

You can also check out the runServer.py script as an example (python -m pybullet_utils.runServer)
https://github.com/bulletphysics/bullet ... nServer.py
by Erwin Coumans
Tue Mar 15, 2022 4:40 am
Forum: PyBullet Support and Feedback
Topic: pybullet.calculateInverseKinematics2 memory leak?
Replies: 1
Views: 29566

Re: pybullet.calculateInverseKinematics2 memory leak?

This needs a full minimal reproduction case, not just a small code snippet.
by Erwin Coumans
Tue Mar 15, 2022 3:00 am
Forum: PyBullet Support and Feedback
Topic: how does the pybullet client-server work?
Replies: 2
Views: 33211

Re: how does the pybullet client-server work?

If you import pybullet and connect using GUI or DIRECT, then the client and server are both in the current same process. You can start a physics server, using connect (pybullet.GUI_SERVER etc) see for example this runServer.py script. https://github.com/bulletphysics/bullet3/blob/master/examples/pyb...
by Erwin Coumans
Tue Mar 15, 2022 2:54 am
Forum: PyBullet Support and Feedback
Topic: Hanging load using spherical joints and urdf
Replies: 1
Views: 29950

Re: Hanging load using spherical joints and urdf

Did you unlock the joint motors, setting the force to zero for POSITION control:

See https://github.com/bulletphysics/bullet ... re.py#L179
by Erwin Coumans
Tue Mar 15, 2022 2:47 am
Forum: PyBullet Support and Feedback
Topic: p.getCameraImage stuck after a few calls
Replies: 3
Views: 57301

Re: p.getCameraImage stuck after a few calls

I've never seen this issue before, and many researchers used pybullet with camera rendering. Did you check memory use?
by Erwin Coumans
Tue Mar 15, 2022 2:46 am
Forum: PyBullet Support and Feedback
Topic: [Interesting finding] The humanoid can fly in Pybullet
Replies: 3
Views: 36729

Re: [Interesting finding] The humanoid can fly in Pybullet

We trained humanoid, it can have issues if you are not careful.

This can have various causes: hitting joint limits or using too large forces/torques, too large time step or other.

Try reducing the torques. Use a smaller time step.
by Erwin Coumans
Tue Mar 15, 2022 2:44 am
Forum: PyBullet Support and Feedback
Topic: Not connected to physics server when trying to run environment
Replies: 7
Views: 61393

Re: Not connected to physics server when trying to run environment

Please check out those examples, they show how to implement multiprocessing with PyBullet, you need to be careful:

https://github.com/bulletphysics/bullet ... bots/panda
by Erwin Coumans
Fri Feb 18, 2022 7:16 pm
Forum: PyBullet Support and Feedback
Topic: How to get the depth info/images with p.getCameraImage
Replies: 4
Views: 41814

Re: How to get the depth info/images with p.getCameraImage

The images display after calling 'getCameraImage'. See https://github.com/bulletphysics/bullet3/blob/master/examples/pybullet/examples/testrender_np.py Here is a snippet that shows depth (requires matplotlib and numpy, next to pybullet) import matplotlib.pyplot as plt import numpy as np import pybul...
by Erwin Coumans
Wed Oct 06, 2021 4:02 pm
Forum: PyBullet Support and Feedback
Topic: Save/restore object State with Planar Joint?
Replies: 2
Views: 30865

Re: Save/restore object State with Planar Joint?

I've never used planar joint, do you have a small example urdf and little pybullet script (attach a zip file).
by Erwin Coumans
Thu Apr 15, 2021 11:00 pm
Forum: PyBullet Support and Feedback
Topic: Issues for github.com/bullet3 have been removed? Apr 16 2021, 4:07 IST
Replies: 1
Views: 27181

Re: Issues for github.com/bullet3 have been removed? Apr 16 2021, 4:07 IST

They are not deleted, they are suspended for a while. Most of the issues belong in the forum (or in Twitter, Stackoverflow) as discussion, rather than a a reproducible bug report. I need to setup instructions to file a bug in github, and that each bug that doesn't have an easy to reproduce reproduct...
by Erwin Coumans
Sat Apr 10, 2021 11:59 pm
Forum: General Bullet Physics Support and Feedback
Topic: inverse kinematics
Replies: 1
Views: 33549

Re: inverse kinematics

Yes, PyBullet has inverse kinematics. If you set the base/torso to a specific location, you can set the IK targets for the feet, and you get joint angles that make the feet bend.
by Erwin Coumans
Tue Mar 09, 2021 2:32 am
Forum: PyBullet Support and Feedback
Topic: Create collision shape manually with API
Replies: 2
Views: 33229

Re: Create collision shape manually with API

The C++ bindings (b3RobotSimulatorClientAPI ) is limited and would need to be expanded. PyBullet uses the C-API, and so does b3RobotSimulatorClientAPI . You can just add the args you need, and look at pybullet.c how the methods are called.
by Erwin Coumans
Fri Nov 13, 2020 10:17 pm
Forum: PyBullet Support and Feedback
Topic: Doubts about setJointMotorControl2 implementation
Replies: 1
Views: 29675

Re: Doubts about setJointMotorControl2 implementation

PyBullet setJointMotorControl2 also has regular PD control. When using velocity control, it is up to the maximum force how fast the target is reached.
by Erwin Coumans
Fri Nov 13, 2020 10:15 pm
Forum: PyBullet Support and Feedback
Topic: Malloc error during creatiion of a soft body from a .vtk
Replies: 4
Views: 39466

Re: Malloc error during creatiion of a soft body from a .vtk

It could be the vtk file, can you attach (zipped) cube1.vtk?