Skip to content

novaphy.UrdfCollision

URDF <collision> element. Pairs a frame with a UrdfGeometry plus the contact-material parameters that the scene builder copies onto the generated CollisionShape.

Attributes

Attribute Description
origin Transform of the collision frame relative to the parent link.
geometry UrdfGeometry describing the shape (box / sphere / cylinder / mesh).
friction Coulomb friction coefficient transferred to CollisionShape.friction.
restitution Restitution coefficient transferred to CollisionShape.restitution.

Example

import novaphy

col = novaphy.UrdfCollision()
col.origin = novaphy.Transform()
col.geometry = novaphy.UrdfGeometry()
col.geometry.type = novaphy.UrdfGeometryType.Box
col.geometry.size = (0.1, 0.1, 0.1)
col.friction = 0.6
col.restitution = 0.0

See Also