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

The collision file generation for YCB objects #12

Closed
zerchen opened this issue Mar 16, 2023 · 2 comments
Closed

The collision file generation for YCB objects #12

zerchen opened this issue Mar 16, 2023 · 2 comments

Comments

@zerchen
Copy link

zerchen commented Mar 16, 2023

Hi @yzqin,

Thank you for sharing the code for this great work!
I would like to know how to generate the collsion files (in stl format) for YCB objects. I find that sometimes collision files for a certain object (e.g., mug) consist of many parts of its mesh (here). Could you please share some tips or codes about how to decompose the mesh and generate these collsion files?
I notice there is a closed issue #8 related to the YCB format, but I guess it is mainly about how to generate the visual mesh.
Thanks in advance!

Best,
Zerui

@yzqin
Copy link
Owner

yzqin commented Mar 17, 2023

Hi Zerui,

Why there are so many mesh for a certain object: Many simulator, e.g. MuJoCo, requires convex mesh to better handle collision detection. Thus we need to perform convex decomposition before use it in simulator. Some objects, like mug, are highly non-convex. So the convex decomposition may generate many mesh files.

When I am working on the dexmv project, I am using vhacd for convex decomposition.

You can also choose to use coacd to do that. It is a recent work that can provide better performance than the vhacd.

@zerchen
Copy link
Author

zerchen commented Mar 17, 2023

Hi @yzqin ,

It makes sense! Thanks a lot for your detailed explanations!

@zerchen zerchen closed this as completed Mar 17, 2023
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