Waypoints
- class compas_fab.robots.Waypoints[source]
Bases:
Data
Represents a sequence of kinematic target for motion planning.
Waypoints represent a sequence of targets the robot should pass through in the order they are defined. This is in contrast to
Target
which represent only a single target. The initial (starting) point should not be included in the waypoints list. It is valid for a Waypoints object to have one target.Waypoints are useful for tasks like painting, welding, or 3D printing, where the programmer wants to define the waypoints the robot should pass through.
Waypoints are intended to be used for motion planning with a planning backend by using
compas_fab.robot.plan_cartesian_motion()
. Note that different backends support different types of waypoints. The method of interpolation between the waypoints is controlled by the motion planner backend.See also
- Attributes:
- namestr , optional, default = ‘target’
A human-readable name for identifying the target.
- tool_coordinate_frame
compas.geometry.Frame
orcompas.geometry.Transformation
, optional The tool tip coordinate frame relative to the flange of the robot.
Methods
Returns a scaled copy of the waypoints.
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.