Step

class compas_timber.planning.Step[source]

Bases: Data

Container for building instructions which assemble a single element

Attributes:
actorActor

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.

locationcompas.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.

Methods

transform

Inherited Methods

ToString

Converts the instance to a string.

copy

Make an independent copy of the data object.

from_json

Construct an object of this type from a JSON file.

from_jsonstring

Construct an object of this type from a JSON string.

sha256

Compute a hash of the data for comparison during version control using the sha256 algorithm.

to_json

Convert an object to its native data representation and save it to a JSON file.

to_jsonstring

Convert an object to its native data representation and save it to a JSON string.

validate_data

Validate the data against the object's data schema.