ProtoTwin API
    Preparing search index...

    Class RobotInstructionAbstract

    Base class for instructions that can be executed by a robot controller.

    It is not possible to create custom/scripted robot instructions. Instead, create a custom component that extends

    • and use the
    • to command the robot controller to execute it.

    Hierarchy (View Summary)

    Index

    Accessors

    Methods

    Accessors

    • get program(): null | RobotProgram

      The program to which the instruction has been assigned.

      Returns null | RobotProgram

      If the program is null then the instruction hasn't been added to a program.

    • set program(value: null | RobotProgram): void

      Parameters

      Returns void

    Methods

    • Executes the instruction.

      Parameters

      Returns Future<any>

      The future that is resolved once the instruction has been executed.

      This function is called by the program when the robot controller commands it to execute.

    • The label for the instruction, as it is to be displayed in the inspector.

      Parameters

      Returns string

      The label.