From 45730cc71e604669a5a0607ddc69c0711b322500 Mon Sep 17 00:00:00 2001 From: Steven Palma Date: Fri, 17 Oct 2025 16:33:46 +0200 Subject: [PATCH] fix(docs): markdown formatting in integrate_hardware.mdx (#2232) * Fixing some markdown formatting in the Step 4 section * fix(docs): code block format --------- Co-authored-by: Doug Harris --- docs/source/integrate_hardware.mdx | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/docs/source/integrate_hardware.mdx b/docs/source/integrate_hardware.mdx index ed9dc8dd5..e1587be91 100644 --- a/docs/source/integrate_hardware.mdx +++ b/docs/source/integrate_hardware.mdx @@ -208,34 +208,36 @@ LeRobot supports saving and loading calibration data automatically. This is usef ```python -> @property -> def is_calibrated(self) -> bool: -> return True -> -> def calibrate(self) -> None: -> pass -> ``` +@property +def is_calibrated(self) -> bool: + return True + +def calibrate(self) -> None: + pass +``` + ### `is_calibrated` This should reflect whether your robot has the required calibration loaded. -``` -python + +```python @property def is_calibrated(self) -> bool: return self.bus.is_calibrated ``` + ### `calibrate()` The goal of the calibration is twofold: - - Know the physical range of motion of each motors in order to only send commands within this range. - - Normalize raw motors positions to sensible continuous values (e.g. percentages, degrees) instead of arbitrary discrete value dependant on the specific motor used that will not replicate elsewhere. + +- Know the physical range of motion of each motors in order to only send commands within this range. +- Normalize raw motors positions to sensible continuous values (e.g. percentages, degrees) instead of arbitrary discrete value dependant on the specific motor used that will not replicate elsewhere. It should implement the logic for calibration (if relevant) and update the `self.calibration` dictionary. If you are using Feetech or Dynamixel motors, our bus interfaces already include methods to help with this. - ```python def calibrate(self) -> None: