Step
- class compas_timber.planning.Step[source]
Bases:
Data
Container for building instructions which assemble a single element
- Attributes:
- actor
Actor
Actor which executes the step. one of [Actor.HUMAN, Actor.ROBOT]
- element_idslist(int)
List of cad element ids which are associated with the step.
- elements_heldlist(int)
List of cad element ids which are held by the actor (typically a robot) during this step.
- location
compas.geometry.Frame
Location of the step.
- instructionslist(
Instruction
) List of instructions which support the step.
- is_builtbool
Whether the step has been executed.
- is_plannedbool
Whether the step has been planned. Allows for incremental planning.
- geometrystr
Geometry type of the element to be assembled. One of [“obj”, “cylinder”, “box”]]. Used for visualization.
- priorityint
Priority of the step. Steps within the same priority can be executed in parallel.
- actor
Methods
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.