spot-sdk-ts
Version:
TypeScript bindings based on protobufs (proto3) provided by Boston Dynamics
28 lines • 1.4 kB
TypeScript
import { TimeSyncUpdateResponse, TimeSyncUpdateRequest } from "./time_sync";
export declare const protobufPackage = "bosdyn.api";
/**
* The time-sync service estimates the difference between server and client clocks.
* Time synchronization is a tool which allows applications to work in a unified timebase with
* precision. It is useful in cases where a precise time must be set, independently of network
* communication lag. In distributed systems and robotics, hardware, system-level, and per-process
* approaches can be used to obtain synchronization.
* This service implements a stand alone time synchronization service. It enables clients to
* establish a per-process offset between two processes which may be on separate systems.
*/
export interface TimeSyncService {
/**
* See the exchange documentation in time_sync.proto. This call makes one client/server
* round trip toward clock synchronization.
*/
TimeSyncUpdate(request: TimeSyncUpdateRequest): Promise<TimeSyncUpdateResponse>;
}
export declare class TimeSyncServiceClientImpl implements TimeSyncService {
private readonly rpc;
constructor(rpc: Rpc);
TimeSyncUpdate(request: TimeSyncUpdateRequest): Promise<TimeSyncUpdateResponse>;
}
interface Rpc {
request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
}
export {};
//# sourceMappingURL=time_sync_service.d.ts.map