Universal Robots TypeScript API - v10.12.0
    Preparing search index...

    Class ProgramTreeService

    Service that handles node insertion and removal of nodes

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    communicationChannel: CommunicationChannel

    Methods

    • Add a node to the root of a program block, for example the main program or the before start

      Parameters

      Returns Promise<void>

    • Add node as either child or sibling

      Parameters

      Returns Promise<void>

    • Get the contributed node instances for the URCap that are currently inserted in the program

      Returns Promise<SubtreeNode[]>

    • Get a readonly version of a given node

      Parameters

      • nodeID: string

        The node to get

      Returns Promise<Readonly<ProgramNode>>

    • Get the subtree context from a given program node. This returns the same traversals as getTreeContextFromProgramNodeById but will return a SubtreeNode for ancestor and sibling calls. For ancestor and sibling calls, where a SubtreeNode is not from the calling URCap, then the SubtreeNode id will be ''.

      Parameters

      • subTreeNodeId: string

      Returns Promise<SubtreeContext>

    • Get the tree context from a given program node

      Parameters

      • subTreeNodeId: string

      Returns Promise<TreeContext>

    • returns a reply promise to the specified message

      Type Parameters

      • T

      Parameters

      • type: string

        The type of message being sent

      • Optionaldata: any

        The message data

      Returns Promise<T>

    • returns an observable that will emit any messages replied to the specified message

      Type Parameters

      • T

      Parameters

      • type: string

        The type of message being sent

      • Optionaldata: any

        The message data

      Returns Observable<T>

    • Remove child node

      Parameters

      Returns Promise<void>

    • returns a reply promise for the requested message

      Type Parameters

      • T

      Parameters

      • type: string

        The type of message being sent

      • Optionaldata: any

        The message data

      Returns Promise<T>

    • returns an observable that will emit any messages replied to the requested message

      Type Parameters

      • T

      Parameters

      • type: string

        The type of message being sent

      • Optionaldata: any

        The message data

      Returns Observable<T>

    • Sets the given node as the active program block

      Parameters

      • nodeID: string

        The node to navigate to

      Returns Promise<void>

    • Sets the given node as the active program block

      Parameters

      • nodeID: string

        The node to navigate to

      Returns Promise<void>

    • Update child node

      Parameters

      Returns Promise<void>

      Use updateSubTreeNode instead

    • Update a specific node in the program tree using the given nodes id

      Parameters

      Returns Promise<void>