Registry / data / coal-library

coal-library

JSON →
library3.0.1pypypiunverified

An extension of the Flexible Collision Library (FCL) for collision detection and distance computation. Supports convex primitives, meshes, octrees, and BVH. Version 3.0.1, with recent patch 3.0.2.c1. Release cadence: irregular.

pip install coal-library
INSTALL
IMPORT
SIG · COAL-LIBRARY
C
coal-library
datapythonv3.0.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

CoalObject
from cmeel.prefix import CoalObject
from coal import CoalObject

Simple collision check between two identical boxes.

import coal # Create a box collision object box = coal.Box(1, 2, 3) obj = coal.CollisionObject(box) # Perform collision check res = coal.collide(obj, obj, coal.CollisionRequest()) print(res.is_collision)
Debug
Known issues
breakingIn coal-library v3.x, the main module is imported as `import coal` not `import coal_library`. The PyPI package name differs from the import name.
fix
Use `import coal` and `from coal import ...` for all symbols.
affects: >=3.0.0
gotchaCollision objects require explicit transform updates; transformations are not automatically applied after creation.
fix
Set the transformation using `obj.setTransform(transform)` before calling collide or distance.
affects: all
deprecatedThe `CollisionRequest` and `DistanceRequest` constructors now require keyword arguments for flags and settings; positional arguments are deprecated.
fix
Use `coal.CollisionRequest(enable_contact=True)` instead of `coal.CollisionRequest(True)` .
affects: >=3.0.0
Upgrade
Version history
3.0.1latest on PyPI · released Feb 12, 2025
Audit
Dependencies

No dependency data recorded yet.

Agent activity
11 hits · last 30 days
node
8
OpenAI (training)
1
Resources
coal-library — pip install coal-library · libregistry