ConstraintSetTarget
- class compas_fab.robots.ConstraintSetTarget[source]
Bases:
Target
Represents a list of Constraint as the target for motion planning.
Given a ConstraintSetTarget, the planner aims to find a path moving the robot’s end-effector to satisfy ALL the constraints in the constraint set. Constraints can be very specific, for example defining value domains for each joint, such that the goal configuration is included, or defining a volume in space, to which a specific robot link (e.g. the end-effector) is required to move to.
This target cannot be translated into a single pose or configuration target except in trivial cases. Therefore the ending pose or configuration of the planned path can only be determined after performing the motion planning.
ConstraintSetTarget is suitable for advanced users who want to specify custom constraints for the robot motion planning. Different planner backends may support different types of Constraints. See tutorial Targets and Waypoints for more details.
ConstraintSetTarget is only supported by Free motion planning, Cartesian motion planning do not support this target type.
- Attributes:
- constraint_set
list
ofcompas_fab.robots.Constraint
A list of constraints to be satisfied.
- namestr, optional
The human-readable name of the target. Defaults to ‘Constraint Set Target’.
- constraint_set
Methods
Returns a scaled copy of the target.
Inherited Methods
Converts the instance to a string.
Make an independent copy of the data object.
Construct an object of this type from a JSON file.
Construct an object of this type from a JSON string.
Compute a hash of the data for comparison during version control using the sha256 algorithm.
Convert an object to its native data representation and save it to a JSON file.
Convert an object to its native data representation and save it to a JSON string.
Validate the data against the object's data schema.