PositionConstraint.from_sphere
-
classmethod
PositionConstraint.
from_sphere
(link_name, sphere, weight=1.0)[source] Creates a
PositionConstraint
from acompas.geometry.Sphere
.Examples
>>> from compas_fab.robots import PositionConstraint >>> from compas.geometry import Sphere >>> sphere = Sphere((3,4,5), 0.5) >>> pc = PositionConstraint.from_sphere('link_0', sphere, weight=1.)