Open JeffHough opened 1 year ago
With the current implementation of fcl, I don't think you are able to do:
And I would like to tell fcl to treat the lowest level meshes as convex, so changing this line:
The way I would do it is to create a bunch of fcl::CollisionObject<> using fcl::Convex<> as the collision geometry, and add these collision objects into a broadphase collision manager (e.g. fcl::DynamicAABBTreeCollisionManager<>).
I'm currently using FCL to perform collision detection on non-convex shapes, which I have broken down into several convex meshes. I then group together these convex meshes into
fcl::BVHModel<fcl::OBBRSSd>
models to create rigid bodies, and perform the collision checks using thefcl::DynamicAABBTreeCollisionManagerd
broadphase collision manager (these are the settings which I have found to have the highest speed).I recently noticed while rereading the documentation that fcl supports a
fcl::Convex<>
primative type. Presumably, this would use a better support function at the narrowphase level, and give a pretty significant speed boost compared to assuming the meshes may be non-convex. However, I cannot seem to find a way to add a convex mesh file into any broadphase collision managers?Basically, my current code looks something like this:
And I would like to tell
fcl
to treat the lowest level meshes as convex, so changing this line:to something like this:
Thanks!