Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • RICSystem

Index

Constructors

Properties

_addOnManager: RICAddOnManager
_calibInfo: null | RICCalibInfo = null
_connectedAddOns: RICHWElem[] = ...
_defaultWiFiHostname: string = "Marty"
_hwElemsExcludingAddOns: RICHWElem[] = ...
_maxSecsToWaitForWiFiConn: number = 20
_ricFriendlyName: null | RICFriendlyName = null
_ricMsgHandler: RICMsgHandler
_ricWifiConnStatus: RICWifiConnStatus = ...
_systemInfo: null | RICSystemInfo = null

Methods

  • _getHostnameFromFriendlyName(): string
  • Get hostname of connected WiFi

    Returns string

    string - hostname of connected WiFi

  • calibrate(cmd: string, jointList: string[], jointNames: {}, servoControllers?: {}): Promise<false | RICOKFail>
  • Parameters

    • cmd: string
    • jointList: string[]
    • jointNames: {}
      • [key: string]: string
    • servoControllers: {} = ...
      • [key: string]: string

    Returns Promise<false | RICOKFail>

  • getHWElemList(filterByType?: string): Promise<RICHWElem[]>
  • getHWElemList - get the list of hardware elements connected to the robot - the result (if successful) is processed as follows: = if no filter is applied then all non-add-ons found are stored in this._hwElemsExcludingAddOns and all addons are stored in this._connectedAddOns = if a filter is applied and this filter is RSAddOns then this._connectedAddOns is updated with the new list of addons = in all cases the discovered list is returned

    Parameters

    • Optional filterByType: string

    Returns Promise<RICHWElem[]>

    Promise

  • getRICCalibInfo(forceGetFromRIC?: boolean): Promise<RICCalibInfo>
  • getRICSystemInfo(forceGetFromRIC?: boolean): Promise<RICSystemInfo>
  • getWiFiConnStatus(): Promise<null | boolean>
  • Get Wifi connection status

    Returns Promise<null | boolean>

    boolean - true if connected

  • invalidate(): void
  • pauseWifiConnection(pause: boolean): Promise<boolean>
  • pause Wifi connection

    Parameters

    • pause: boolean

    Returns Promise<boolean>

    boolean - true if successful

  • retrieveInfo(): Promise<boolean>
  • getSystemInfo - get system info

    Returns Promise<boolean>

    Promise

  • runCommand(commandName: string, params: object): Promise<RICOKFail>
  • runCommand

    Parameters

    • commandName: string

      command API string

    • params: object

      parameters (simple name value pairs only) to parameterize trajectory

    Returns Promise<RICOKFail>

    Promise

  • setRICName(newName: string): Promise<boolean>
  • setRICName

    Parameters

    • newName: string

      name to refer to RIC - used for BLE advertising

    Returns Promise<boolean>

    Promise true if successful

  • wifiConnect(ssid: string, password: string): Promise<boolean>
  • Connect to WiFi

    Parameters

    • ssid: string
    • password: string

    Returns Promise<boolean>

    boolean - true if successful

  • wifiDisconnect(): Promise<boolean>
  • Disconnect WiFi

    Returns Promise<boolean>

    boolean - true if successful

  • wifiScanStart(): Promise<boolean>
  • WiFiScan start

    Returns Promise<boolean>

    boolean - true if successful

Generated using TypeDoc