Constraint
- class compas_fab.robots.Constraint[source]
Bases:
object
Base class for robot constraints.
- Parameters:
- constraint_type
Constraint type, one of
Constraint.CONSTRAINT_TYPES
.- weight
float
, optional A weighting factor for this constraint. Denotes relative importance to other constraints. Closer to zero means less important. Defaults to
1
.
Notes
- Constraint.JOINT
Joint constraint type.
- Constraint.POSITION
Positional constraint type.
- Constraint.ORIENTATION
Orientational constraint type.
- Constraint.CONSTRAINT_TYPES
List of possible constraint types.
- Attributes:
- constraint_type
Constraint type, one of
Constraint.CONSTRAINT_TYPES
.- weight
float
A weighting factor for this constraint. Denotes relative importance to other constraints. Closer to zero means less important.
Methods
Create a copy of this
Constraint
.Scale the
Constraint
.Get a scaled copy of this
Constraint
.Transform the
Constraint
.