UNPKG

@robotical/roboticaljs

Version:

Javascript/TS library for Robotical products

32 lines (31 loc) 1.89 kB
import { RaftDeviceMgrIF } from "@robotical/raftjs"; import { DeviceAttributeState, DevicesState, DeviceState } from "@robotical/raftjs"; import RICAddOnManager from "./RICAddOnManager"; import RICCommsStats from "./RICCommsStats"; import { ROSCameraData, ROSSerialAddOnStatusList, ROSSerialIMU, ROSSerialPowerStatus, ROSSerialRobotStatus, ROSSerialSmartServos } from "./RICROSSerial"; export declare class RICStateInfo implements RaftDeviceMgrIF { smartServos: ROSSerialSmartServos; smartServosValidMs: number; imuData: ROSSerialIMU; imuDataValidMs: number; power: ROSSerialPowerStatus; powerValidMs: number; addOnInfo: ROSSerialAddOnStatusList; addOnInfoValidMs: number; robotStatus: ROSSerialRobotStatus; robotStatusValidMs: number; cameraData: ROSCameraData; cameraDataValidMs: number; updateFromROSSerialMsg(rxMsg: Uint8Array, commsStats: RICCommsStats, addOnManager: RICAddOnManager, frameTimeMs: number): Array<number>; getDevicesState(): DevicesState; getDeviceState(deviceKey: string): DeviceState; setMaxDataPointsToStore(maxDataPointsToStore: number): void; addNewDeviceCallback(callback: (deviceKey: string, state: DeviceState) => void): void; removeNewDeviceCallback(callback: (deviceKey: string, state: DeviceState) => void): void; addNewAttributeCallback(callback: (deviceKey: string, attrState: DeviceAttributeState) => void): void; removeNewAttributeCallback(callback: (deviceKey: string, attrState: DeviceAttributeState) => void): void; addAttributeDataCallback(callback: (deviceKey: string, attrState: DeviceAttributeState) => void): void; removeAttributeDataCallback(callback: (deviceKey: string, attrState: DeviceAttributeState) => void): void; sendAction(deviceKey: string, action: any, data: any): void; sendCompoundAction(deviceKey: string, action: any, data: any): void; }