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

    Service for getting information about Sources and Signals

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    communicationChannel: CommunicationChannel

    Methods

    • Returns the generated script code for getting the value of a given signal

      Parameters

      • sourceID: string

        The ID of the source containing the signal to get

      • signalID: string

        The ID of the signal to get

      Returns Promise<string>

      use getGetSignalScript instead

    • Returns the generated script code for setting the signal to the given value

      Parameters

      • sourceID: string

        The ID of the source containing the signal to set

      • signalID: string

        The ID of the signal to set

      • value: SignalValue

        The value to set the signal to - for digital values use 0 or 1, for registers use only integers, for analog values use any float

      Returns Promise<string>

      use getSetSignalScript instead

    • Returns an object literal containing a mapping of SignalIDs -> AnalogDomains

      Parameters

      • sourceID: string

        The ID of the Source for which to get Domain data

      Returns Promise<{ [signalID: string]: SignalAnalogDomainValueEnum }>

      should be handled by the individual contribution

    • Returns the generated script code for getting the value of a given signal

      Parameters

      • groupId: string

        The Source group, containing the source to provide events for

      • sourceId: string

        The ID of the source containing the signal to get

      • signalId: string

        The ID of the signal to get

      Returns Promise<string>

    • Returns the generated script code for setting the signal to the given value

      Parameters

      • sourceGroupID: string

        The Source group, containing the source and signal to provide script for

      • sourceID: string

        The ID of the source containing the signal to set

      • signalID: string

        The ID of the signal to set

      • value: SignalValue

        The value to set the signal to - for digital values use 0 or 1, for registers use only integers, for analog values use any float

      Returns Promise<string>

    • Returns an object literal containing a mapping of SignalIDs -> Labels

      Parameters

      • sourceID: string

        The ID of the Source for which to get the Label mappings

      Returns Promise<{ [signalId: string]: string }>

      Source contributions will be responsible for providing labels for signals directly

    • Returns an object literal containing a mapping of SignalIDs -> Presets

      Parameters

      • sourceID: string

        The ID of the Source for which to get the Preset mappings

      Returns Promise<SourcePresets>

      Source contributions will be responsible for handling presets themselves

    • Returns the list of Signals in a Source

      Parameters

      • sourceID: string

        The Source to list Signals for

      • Optionalfilter: Partial<Pick<Signal, "direction" | "valueType">>

        SignalFilter used to filter only Signals which match the filter

      Returns Promise<Signal[]>

      use getSourceSignals instead

    • Returns info about the signals for a given source

      Parameters

      • groupId: string
      • sourceId: string

      Returns Promise<Record<string, ValueRange<string>>>

    • Returns an Observable providing Signal events

      Parameters

      • sourceID: string

        The Source containing the Signals to provide events for

      • Optionalfilter: Partial<Pick<Signal, "direction" | "valueType">>

        SignalFilter used to filter only events for Signals which match the filter

      Returns Observable<SignalEvent>

      use getSourceUpdates instead

    • Returns the ID's of Sources that are available to the application

      Parameters

      • Optionalfilter: Partial<Pick<Signal, "direction" | "valueType">>

        SignalFilter used to filter only Sources which contain Signals matching the filter

      Returns Promise<string[]>

    • Returns an Observable providing Signal events

      Parameters

      • sourceGroupID: string

        The Source group, containing the source to provide events for

      • sourceID: string

        The Source containing the Signals to provide events for

      • Optionalfilter: Partial<Pick<Signal, "direction" | "valueType">>

        SignalFilter used to filter only events for Signals which match the filter

      Returns Observable<SignalEvent>

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

    • Sets a value on a signal

      Parameters

      • sourceID: string

        The ID of the Source, containing the Signal to set

      • signalID: string

        The ID of the Signal to set

      • value: SignalBooleanValue | SignalFloatValue

        The value to set

      Returns Promise<void>

      use setSourceSignalValue instead

    • Sets a value on a signal

      Parameters

      • sourceGroupID: string

        The Source group, containing the source to provide events for

      • sourceID: string

        The ID of the Source, containing the Signal to set

      • signalID: string

        The ID of the Signal to set

      • value: SignalBooleanValue | SignalFloatValue

        The value to set

      Returns Promise<void>

    • Returns the source node label for the griven groupId

      Parameters

      • groupId: string

      Returns Observable<string | undefined>

    • Returns the map of source node labels

      Returns Observable<{ [groupId: string]: string }>

    • Returns the map of Sources

      Parameters

      • Optionalfilter: Partial<Pick<Signal, "direction" | "valueType">>

      Returns Observable<{ [groupId: string]: Source[] }>

    • Returns the list of Signals in a Source

      Parameters

      • sourceGroupID: string

        The Source group, containing the source to provide signals for

      • sourceID: string

        The Source to list Signals for

      • Optionalfilter: Partial<Pick<Signal, "direction" | "valueType">>

        SignalFilter used to filter only Signals which match the filter

      Returns Observable<Signal[]>

    • Performs validation on a new value that will be used in a get script

      Parameters

      • groupId: string

        The contribution groupId

      • sourceId: string

        The contribution sourceId

      • signalId: string

        The contribution signalId

      • value: SignalValue

        The value that will be got

      • operator: string

        The operator on the value that will be got

      Returns Promise<ValidationResponse>

    • Performs validation on a new value that will be used in a set script

      Parameters

      • groupId: string

        The contribution groupId

      • sourceId: string

        The contribution sourceId

      • signalId: string

        The contribution signalId

      • value: SignalValue

        The value that will be set

      Returns Promise<ValidationResponse>