see HelloBulletRobotics.cpp and use cmake to build projects:
https://github.com/bulletphysics/bullet ... tSimulator
Search found 4221 matches
- Tue Apr 25, 2023 4:44 am
- Forum: General Bullet Physics Support and Feedback
- Topic: How to load a robot from URDF in the C++ interface?
- Replies: 1
- Views: 455
- Tue Mar 15, 2022 4:41 am
- Forum: PyBullet Support and Feedback
- Topic: Create Shared Memory Server
- Replies: 1
- Views: 5935
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
You can also check out the runServer.py script as an example (python -m pybullet_utils.runServer)
https://github.com/bulletphysics/bullet ... nServer.py
- Tue Mar 15, 2022 4:40 am
- Forum: PyBullet Support and Feedback
- Topic: pybullet.calculateInverseKinematics2 memory leak?
- Replies: 1
- Views: 4974
Re: pybullet.calculateInverseKinematics2 memory leak?
This needs a full minimal reproduction case, not just a small code snippet.
- Tue Mar 15, 2022 3:00 am
- Forum: PyBullet Support and Feedback
- Topic: how does the pybullet client-server work?
- Replies: 2
- Views: 4687
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...
- Tue Mar 15, 2022 2:54 am
- Forum: PyBullet Support and Feedback
- Topic: Hanging load using spherical joints and urdf
- Replies: 1
- Views: 4189
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
See https://github.com/bulletphysics/bullet ... re.py#L179
- Tue Mar 15, 2022 2:47 am
- Forum: PyBullet Support and Feedback
- Topic: p.getCameraImage stuck after a few calls
- Replies: 3
- Views: 4689
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?
- Tue Mar 15, 2022 2:46 am
- Forum: PyBullet Support and Feedback
- Topic: [Interesting finding] The humanoid can fly in Pybullet
- Replies: 3
- Views: 5690
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.
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.
- 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: 12066
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
https://github.com/bulletphysics/bullet ... bots/panda
- 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: 6748
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...
- Wed Oct 06, 2021 4:02 pm
- Forum: PyBullet Support and Feedback
- Topic: Save/restore object State with Planar Joint?
- Replies: 2
- Views: 3312
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).
- 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: 2920
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...
- Sat Apr 10, 2021 11:59 pm
- Forum: General Bullet Physics Support and Feedback
- Topic: inverse kinematics
- Replies: 1
- Views: 3036
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.
- Tue Mar 09, 2021 2:32 am
- Forum: PyBullet Support and Feedback
- Topic: Create collision shape manually with API
- Replies: 2
- Views: 4508
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.
- Fri Nov 13, 2020 10:17 pm
- Forum: PyBullet Support and Feedback
- Topic: Doubts about setJointMotorControl2 implementation
- Replies: 1
- Views: 3409
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.
- 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: 5119
Re: Malloc error during creatiion of a soft body from a .vtk
It could be the vtk file, can you attach (zipped) cube1.vtk?