File size: 1,518 Bytes
bdc1ac8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
/**
 * @lerobot/node - Node.js-based robotics control using SerialPort API
 *
 * Control robotics hardware directly from Node.js applications, CLI tools, and desktop software.
 */

// Core functions
export { calibrate } from "./calibrate.js";
export { teleoperate } from "./teleoperate.js";
export { findPort, connectPort } from "./find_port.js";
export { releaseMotors } from "./release_motors.js";

// Types
export type {
  RobotConnection,
  RobotConfig,
  SerialPort,
  SerialPortInfo,
  SerialOptions,
} from "./types/robot-connection.js";

export type {
  FindPortConfig,
  FindPortProcess,
  DiscoveredPort,
} from "./types/port-discovery.js";

export type {
  CalibrateConfig,
  CalibrationResults,
  LiveCalibrationData,
  CalibrationProcess,
} from "./types/calibration.js";

export type {
  MotorConfig,
  TeleoperationState,
  TeleoperationProcess,
  TeleoperateConfig,
  TeleoperatorConfig,
  DirectTeleoperatorConfig,
} from "./types/teleoperation.js";

export type {
  RobotHardwareConfig,
  KeyboardControl,
} from "./types/robot-config.js";

// Utilities (advanced users)
export { NodeSerialPortWrapper } from "./utils/serial-port-wrapper.js";
export {
  readAllMotorPositions,
  readMotorPosition,
} from "./utils/motor-communication.js";
export {
  createSO100Config,
  SO100_KEYBOARD_CONTROLS,
} from "./robots/so100_config.js";
export { KEYBOARD_TELEOPERATOR_DEFAULTS } from "./teleoperators/index.js";
export {
  getHfHome,
  getHfLerobotHome,
  getCalibrationDir,
} from "./utils/constants.js";