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

    Class ProgramService

    Service for handling program related operations

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    communicationChannel: CommunicationChannel

    Methods

    • Retrieves the loaded program's information.

      This method sends a request to the backend to retrieve the information of the currently loaded program.

      Returns Promise<ProgramInformation>

      A promise that resolves to the information of the loaded program.

      // Usage example
      const programInfo = await this.presenterAPI.programService.getLoadedProgram()
      console.log('Loaded Program Information:', programInfo);
    • Get a program

      Parameters

      Returns Promise<Program>

      Promise

    • Will get information and metadata of all programs

      Returns Promise<ProgramInformation[]>

      Promise<Array>

    • Load program

      Parameters

      • programId: { programId: string }

        The id of the program to load

      Returns Promise<void>

      getPrograms for getting the ids

    • 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>

    • 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>