phobos icon indicating copy to clipboard operation
phobos copied to clipboard

Capsules

Open kavonszadkowski opened this issue 8 years ago • 2 comments

Currently, capsules for collision objects or visual objects are not supported by URDF and dealing with them is thus a bit problematic. However, there is some discussion to add them to URDF at some point, and they might at least end up in the successor of URDF.

Also, Blender allows to add them using its Extra Objects add-on, which would have to be activated from within Phobos.

I propose to solve this issue by simply adding capsules as a geometry type and add an operator that allows to transform them into two cylinders and two spheres for URDF compatibility. Object properties such as simulation friction or collision settings etc. would have to be copied to all new objects.

kavonszadkowski avatar Aug 30 '17 10:08 kavonszadkowski

Instead of replacing the capsules by other meshes, we could just calculate the output for sphere and cylinder on the fly, similar to the new Mesh Inertia Calculation (#146).

SDF does not handle capsules either. So we best, make this a util function. We could even make this a generic tool, so users can replace more complex shapes (which are used alot) with their on configuration?

Amudtogal avatar Jul 04 '18 15:07 Amudtogal

Pushed to 1.1 .

Could be done via Principle Component Analysis of the point cloud.

AlCap23 avatar Jan 28 '19 11:01 AlCap23