Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
File size: 991 Bytes
8344179 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
/**
* Producer client for controlling robots in LeRobot Arena
*/
import { RoboticsClientCore } from './core.js';
import type { JointData, WebSocketMessage, ClientOptions } from './types.js';
export declare class RoboticsProducer extends RoboticsClientCore {
constructor(baseUrl?: string, options?: ClientOptions);
connect(workspaceId: string, roomId: string, participantId?: string): Promise<boolean>;
sendJointUpdate(joints: JointData[]): Promise<void>;
sendStateSync(state: Record<string, number>): Promise<void>;
sendEmergencyStop(reason?: string): Promise<void>;
protected handleRoleSpecificMessage(message: WebSocketMessage): void;
/**
* Create a room and automatically connect as producer
*/
static createAndConnect(baseUrl?: string, workspaceId?: string, roomId?: string, participantId?: string): Promise<RoboticsProducer>;
/**
* Get the current room ID (useful when auto-created)
*/
get currentRoomId(): string | null;
}
|