-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
pybullet: unwanted convex hull collision check for obj-file with convex objects inside #1507
Comments
Your VHACD obj still contains the original cup, just remove it and it should work fine. Attached is your fixed cup.obj zipped. Instead of using Blender, you can compile the Bullet SDK using premake and there is an executable that creates VHACD from obj to obj called Bullet/bin/test_vhacd_gmake_x64_release. Various VHACD examples are in Bullet/data for example duck_vhacd.obj I just added another cup, this one has a separate visual mesh, so it looks nicer: Note that PyBullet will search relative to a data folder around your current working directory. Meshes and other assets will be searched relative to the URDF file, so a relative path works well. |
Thank you very much for the quick and very helpful response. I was not aware that I had to remove the old mesh. I thought VHACD would just replace it. Also, thanks for adding a cup to your database. That is very nice and helpful. I consider my question answered. Hence, I close this issue. |
@erwincoumans Hi, can you please tell a bit more how we can do this? I'm not sure what I should download or what command to use. Does it also work on stl files or only files with .obj format. Thanks |
@a-z-e-r-i-l-a PyBullet 2.6.7 onwards comes with vhacd included. Check the PyBullet Quickstart Guide for usage/paramaters.
|
Hi, how do I save the convex mesh from the command line? |
See attached file how to use vhacd in pybullet: |
Hi there, i use the v-hacd tool and in general i have no problems, but recently i had problems with some meshes.
The error i get is just "b3Printf: Request createCollisionShape failed" My .stl files come from a Solid Works assembled project so i think that there might be some screws or litle parts inside my main part that may cause problems. Here is one of my STLs my_piece.zip |
Dear Bullet developers,
I want to have collision checking for a concave mesh (a mug) in pybullet. Following a hint from the documentation, I created a convex decomposition using the tool v-hacd and saved the result as an obj-file. The decomposed mesh looks fine in Blender. However, when I load the mesh through a simple URDF in Bullet, it seems that there still a convex hull is used for the object.
Mesh in Blender:
Mesh in Bulllet:
My questions:
Thank you for your support! Best,
Georg.
P.S.: Here is a small ROS package with the meshes and a dummy application playthings.py that you can use to load my obj-mesh in Bullet:
my_pkg.zip
The text was updated successfully, but these errors were encountered: