AGENT SKILL

robot-control-data-collection

Safely configure, calibrate, teleoperate, record, and replay LeRobot-compatible physical robots, motors, cameras, and teleoperators.

License 许可
Apache-2.0
最近更新
2026-09-03
Stars
★ 351
Forks
27

01 前言 Front Matter

name
robot-control-data-collection
license
Apache 2.0
metadata
{ "disco-role": "operating" }
description
Safely configure, calibrate, teleoperate, record, and replay LeRobot-compatible physical robots, motors, cameras, and teleoperators.
disable-model-invocation
true

02 资源文件 9

03 SKILL.md 正文

Robot control and data collection

Use this route when the task involves a physical LeRobot device, SO-100/SO-101, LeKiwi, Reachy 2, OMX, OpenArm, reBot, Unitree G1, serial or CAN buses, camera discovery, calibration, teleoperation, recording, replay, or hardware rollout. This skill plans and verifies hardware work; it never substitutes for an operator's emergency-stop procedure.

Safety boundary

Treat connect, calibrate, setup_motors, camera probing that opens devices, teleoperation, recording, and replay as side-effecting. Before any such command, ask for the exact robot, teleoperator, ports/interfaces, workspace, power state, operator, emergency-stop location, and the user's explicit confirmation to proceed. The bundled scripts below are dry-run or non-opening probes only. Never start a policy rollout from this route; send policy selection/checkpoints to policy-training-inference, simulation to simulation-and-rl, and async or network service orchestration to extensions-and-services.

Required inputs and outputs

Collect these inputs before proposing a live command:

  • robot type, unique --robot.id, port/CAN channel or robot IP, motor variant, and whether the device is single or bimanual;
  • teleoperator type, id, port/network/phone mode, and whether it needs a keyboard, gamepad, SDK, or calibration;
  • camera types, identifiers, requested width, height, FPS, color/depth streams, and whether each camera is attached to the robot or external;
  • OS/backend, installed LeRobot extras, permissions, power supply, network and SDK credentials (if any);
  • dataset repo id or local root, task text, target FPS, episode/reset duration, episode count, video/Hub policy, and replay episode;
  • validation target: imports/help only, a mock test, a non-actuating camera check, a supervised live teleop, or a supervised recording/replay.

Return a staged plan, exact nested configuration, preflight results, calibration identity, dataset feature/FPS checks, and an explicit live-action gate. Separate verified mock behavior from hardware behavior that still needs the operator's device.

Route and decide

  1. Read hardware-overview.md to select the registered type and conditional extra. If the type is not listed, inspect the installed plugin package without importing or actuating it, then route custom plugin implementation to extensions-and-services.
  2. Read configuration.md and normalize every nested --robot.*, --teleop.*, --dataset.*, and camera field. A robot camera must have explicit width, height, and FPS; reject incomplete camera config before motion.
  3. Run the safe package/config probe: python skills/disco/lerobot/sub-skills/robot-control-data-collection/scripts/hardware_environment_probe.py --robot-type <type> --teleop-type <type> --camera-type <type>. From an arbitrary directory, use the bundled script's actual path in the installed skill tree. It lists package availability but does not open a bus, camera, socket, or robot.
  4. Use safety.md to choose the next gate. --help is safe; port discovery, camera discovery, motor setup, calibration, connection, teleop, recording, and replay are progressively more invasive.
  5. Use workflows.md for the selected flow and api-reference.md for Python-level inspection. Stop on any missing required extra, unknown type, mismatched feature, stale calibration, wrong port, unsafe workspace, or emergency-stop uncertainty.
  6. Diagnose only after preserving the failed command and exact error; use troubleshooting.md. Do not repeatedly power cycle a faulting arm or bypass a permission, voltage, CAN, or watchdog error.

Safe command planning

  • Build a recording command with record_command_builder.py. It prints a command and preflight checklist only, and defaults Hub upload off.
  • Build a replay command with replay_command_builder.py. Its output is always labeled ACTUATES ROBOT and requires a separate human confirmation in the workflow; the script never executes it.
  • Use hardware_environment_probe.py for import/version, OS, optional-backend, and non-opening device-file checks.
  • Keep command values quoted, use stable /dev/serial/by-id/... names when available, and never copy a port from another arm without unplug/replug identification.

Completion criteria

A non-actuating check is complete only when imports/config parsing/help and script checks pass. A live teleop is complete only after a bounded low-speed motion check, observed camera frames, operator confirmation, and clean disconnect. A recording is complete only after each retained episode is saved, its features and FPS match the robot/camera configuration, and the local dataset can be inspected; Hub upload is a separate credentialed action. A replay is complete only after the dataset episode is validated, the robot and workspace are confirmed, the operator is at the emergency stop, and cleanup runs even on Ctrl-C. Route all policy training, checkpoint, and evaluation selection to policy-training-inference after this handoff.

Intentional limits

This route does not guess motor IDs, joint limits, CAN wiring, SDK versions, network reachability, safe poses, camera support profiles, or physical safety ratings. The reference notes distinguish source-backed configuration contracts from mock-only tests; actual device behavior remains an operator verification.

04 同仓库更多 Skills

VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-triton-opt

Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-solve

END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-skill

PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-pattern-fusion

Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-orchestrate

Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-feedback

Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).

★ 351