Constraint

class compas_fab.robots.Constraint(type, weight=1.0)[source]

Bases: object

Base class for robot constraints.

weight

A weighting factor for this constraint. Denotes relative importance to other constraints. Closer to zero means less important. Defaults to 1.

Type

float, optional

Methods

__init__(type[, weight])

Initialize self.

copy()

scale(scale_factor)

transform(transformation)

Attributes

JOINT

ORIENTATION

POSITION

possible_types

__init__(type, weight=1.0)[source]

Initialize self. See help(type(self)) for accurate signature.