Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: soft body collisions are not thread safe #4675

Open
samojordan opened this issue Nov 29, 2024 · 1 comment
Open

Bug: soft body collisions are not thread safe #4675

samojordan opened this issue Nov 29, 2024 · 1 comment

Comments

@samojordan
Copy link

We are using a modified version of the multithreaded dispatcher (btCollisionDispatcherMt) to distribute near-collisions
over two threads. We observed thread safety issues and tracked them down to softbody collision algorithms not
being thread safe. More precisely we have observed both threads accessing

btSoftBody::m_rcontacts

concurrently. Other containers just next to m_rcontacts are probably also affected.

We have resolved this issue in our modified version of bullet by adding an exception to compute
near collisions for soft body objects only with one single thread.

@zhaohe6
Copy link

zhaohe6 commented Dec 18, 2024

Hello,I'm a novice at pubullet.I have been struggling with how to load a soft body in pybullet env.When i tried to load a soft body the pybullet will tell me thet "can not load a soft body".So i hope you can tell me how to load a soft body. I used vtk file to display a soft body. If you can give me a correct soft body file,i will appreciate it very much.Here is my code:

soft_body_id = p.loadSoftBody("./ur5e/output.vtk", basePosition = [0.7,0,0])

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants