Scans for available robot connections via WebSerial.
{`// Options
{
robotConfigs?: RobotConfig[], // Optional: Saved configs to try reconnecting
onMessage?: (msg: string) => void // Callback for status updates
}
// Returns
{
result: Promise // A promise that resolves with found robots
}`}
{/* calibrate */}
lerobot.calibrate(robot, options)
Starts the calibration process for a specific robot.
{`// Parameters
robot: RobotConnection // The robot instance to calibrate
// Options
{
onLiveUpdate: (data: LiveCalibrationData) => void, // Callback for real-time joint data
onProgress: (msg: string) => void // Callback for status messages
}
// Returns
{
result: Promise, // A promise that resolves with final calibration
stop: () => void // Function to stop the calibration recording
}`}
{/* teleoperate */}
lerobot.teleoperate(robot, options)
Initializes the teleoperation interface for a robot.