FCL performs collision detection, distance, tolerance checks, and continuous collision between pairs of geometric models built from triangles. It accepts mesh soups without special topology.
Overview
The Flexible Collision Library answers proximity questions between two geometric models represented as lists of triangles. It can report overlap, minimum separation distance, whether shapes are within a tolerance band, and whether moving models intersect over time, optionally returning contact normals and points.
Shapes include boxes, spheres, ellipsoids, capsules, cones, cylinders, convex objects, half-spaces, planes, meshes, and optionally octrees via OctoMap. Convex checks rely on libccd; Eigen is required for builds. CMake generates Linux makefiles or Windows Visual Studio projects.
Workflows set per-object geometry and transforms, optionally wrapped as collision objects, then run request/result structures for collision, distance, or continuous collision with a goal transform. Requests can trade speed for rich contact data.
Broadphase CollisionManager structures batch many objects to avoid quadratic pairwise work, returning collision pairs or the closest distance pair. Documentation and tests illustrate single-pair and broadphase usage, including octree interactions.
Key features
- Triangle mesh collision detection
- Minimum distance computation
- Tolerance verification
- Continuous collision detection
- Optional contact normals and points
- Broadphase collision managers
- Many primitive shape types
- Optional octree support via OctoMap
Use cases
- Robotics motion planning safety checks
- Game physics overlap testing
- Animating models with continuous collision