Guide for agents that change this repository¶
Rules¶
No real-arm commands without the user. Do not run
rebot-controlwithout--sim, scripts withbackend="real", or anything that openscan0, unless the user asks in the current session and is at the arm. A simulation run is always allowed.Do not relax safety. Do not raise or remove any of these unless the user asks for that specific change:
jump guard, rate limit, torque cap (
max_error), feedforward clip (tau_max);stall detection, temperature limits, soft joint limits;
Cartesian limits and the staged fold. Do not remove the confirmation prompt in
cli.py.
Keep the real path and the simulated path identical. Control logic belongs in
ServoLoop/Arm, not in a backend. A backend only converts units and moves frames.Units. Radians and SI in code. Degrees only in YAML
*_degkeys, converted inconfig.py.Thread safety. Change anything the servo thread reads (
ServoLooptargets, gains, mode,RobotModelinertias and frames) only underServoLoop._lock. Each thread uses its ownpin.Data.Checks before you finish.
ruff check src testsandpytest(needsmujoco). If you changed the documentation, alsopython docs/build.py.Comments. Write comments and docstrings in English.
Documentation. Update the page of the reader that the change affects, in English (
docs/) and in Chinese (docs/zh/), in the same change. See../developer/documentation.md.Hardware notes. Put raw notes from a real-arm session in
docs/internal/(ignored by git). Changedocs/developer/hardware-notes.mdonly when the user asks.
Where things are¶
See codebase-map.md. For recipes (add a config key, a tool, a calibration routine, a backend, a CLI command), see recipes.md.
Context¶
The library controls the Seeed reBot Arm B601-RS. Its purpose is experiments with interchangeable tools: Cartesian control, a configurable TCP, self-calibration.
docs/developer/hardware-notes.mdlists the hardware facts that the code relies on and the questions that are open on each arm. Treat an open question as an unknown, not as a fact.Seeed’s
reBotArm_control_pyhas no license. Do not copy code from it.