Collision.from_primitive

classmethod Collision.from_primitive(primitive, **kwargs)[source]

Create collision link from a primitive shape.

Parameters:
primitivecompas.geometry.Shape

A primitive shape.

**kwargsdict[str, Any], optional

The keyword arguments (kwargs) collected in a dict. These allow using non-standard attributes absent in the URDF specification.

Returns:
Mesh

A collision description object.