forked from tangger/lerobot
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 <dharris@gmail.com>
This commit is contained in:
@@ -208,34 +208,36 @@ LeRobot supports saving and loading calibration data automatically. This is usef
|
|||||||
|
|
||||||
<!-- prettier-ignore-start -->
|
<!-- prettier-ignore-start -->
|
||||||
```python
|
```python
|
||||||
> @property
|
@property
|
||||||
> def is_calibrated(self) -> bool:
|
def is_calibrated(self) -> bool:
|
||||||
> return True
|
return True
|
||||||
>
|
|
||||||
> def calibrate(self) -> None:
|
def calibrate(self) -> None:
|
||||||
> pass
|
pass
|
||||||
> ```
|
```
|
||||||
|
<!-- prettier-ignore-end -->
|
||||||
|
|
||||||
### `is_calibrated`
|
### `is_calibrated`
|
||||||
|
|
||||||
This should reflect whether your robot has the required calibration loaded.
|
This should reflect whether your robot has the required calibration loaded.
|
||||||
|
|
||||||
```
|
<!-- prettier-ignore-start -->
|
||||||
<!-- prettier-ignore-end -->python
|
```python
|
||||||
@property
|
@property
|
||||||
def is_calibrated(self) -> bool:
|
def is_calibrated(self) -> bool:
|
||||||
return self.bus.is_calibrated
|
return self.bus.is_calibrated
|
||||||
```
|
```
|
||||||
|
<!-- prettier-ignore-end -->
|
||||||
|
|
||||||
### `calibrate()`
|
### `calibrate()`
|
||||||
|
|
||||||
The goal of the calibration is twofold:
|
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.
|
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.
|
||||||
|
|
||||||
|
|
||||||
<!-- prettier-ignore-start -->
|
<!-- prettier-ignore-start -->
|
||||||
```python
|
```python
|
||||||
def calibrate(self) -> None:
|
def calibrate(self) -> None:
|
||||||
|
|||||||
Reference in New Issue
Block a user