@foxglove/ros1
Version:
Standalone TypeScript implementation of the ROS 1 (Robot Operating System) protocol with a pluggable transport layer
17 lines • 531 B
TypeScript
export interface ClientStats {
bytesSent: number;
bytesReceived: number;
messagesSent: number;
}
export interface Client {
on(eventName: "close", listener: () => void): this;
on(eventName: "subscribe", listener: (topic: string, destinationCallerId: string) => void): this;
transportType(): string;
connected(): boolean;
stats(): ClientStats;
write(data: Uint8Array): Promise<void>;
close(): void;
getTransportInfo(): string;
toString(): string;
}
//# sourceMappingURL=Client.d.ts.map