Spaces:
Sleeping
Sleeping
File size: 1,000 Bytes
8344179 51f51c3 8344179 b83a268 8344179 b83a268 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 RobotHub TransportServer
*/
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;
}
|