Rename ID -> id

This commit is contained in:
Simon Alibert 2025-03-15 13:14:05 +01:00
parent 5006da72ff
commit 2037cc0219
4 changed files with 9 additions and 9 deletions

View File

@ -87,7 +87,7 @@ python lerobot/scripts/configure_motor.py \
--brand dynamixel \
--model xl330-m288 \
--baudrate 1000000 \
--ID 1
--id 1
```
Then unplug your first motor and plug the second motor and set its ID to 2.
@ -97,7 +97,7 @@ python lerobot/scripts/configure_motor.py \
--brand dynamixel \
--model xl330-m288 \
--baudrate 1000000 \
--ID 2
--id 2
```
Redo the process for all your motors until ID 6.

View File

@ -139,7 +139,7 @@ python lerobot/scripts/configure_motor.py \
--brand feetech \
--model sts3215 \
--baudrate 1000000 \
--ID 1
--id 1
```
Note: These motors are currently limitated. They can take values between 0 and 4096 only, which corresponds to a full turn. They can't turn more than that. 2048 is at the middle of this range, so we can take -2048 steps (180 degrees anticlockwise) and reach the maximum range, or take +2048 steps (180 degrees clockwise) and reach the maximum range. The configuration step also sets the homing offset to 0, so that if you misassembled the arm, you can always update the homing offset to account for a shift up to ± 2048 steps (± 180 degrees).
@ -151,7 +151,7 @@ python lerobot/scripts/configure_motor.py \
--brand feetech \
--model sts3215 \
--baudrate 1000000 \
--ID 2
--id 2
```
Redo the process for all your motors until ID 6. Do the same for the 6 motors of the leader arm.

View File

@ -191,7 +191,7 @@ python lerobot/scripts/configure_motor.py \
--brand feetech \
--model sts3215 \
--baudrate 1000000 \
--ID 1
--id 1
```
> [!NOTE]
@ -204,7 +204,7 @@ python lerobot/scripts/configure_motor.py \
--brand feetech \
--model sts3215 \
--baudrate 1000000 \
--ID 2
--id 2
```
Redo the process for all your motors until ID 6. Do the same for the 6 motors of the leader arm.

View File

@ -21,7 +21,7 @@ python lerobot/scripts/configure_motor.py \
--brand feetech \
--model sts3215 \
--baudrate 1000000 \
--ID 1
--id 1
```
"""
@ -131,10 +131,10 @@ if __name__ == "__main__":
parser.add_argument("--port", type=str, required=True, help="Motors bus port")
parser.add_argument("--brand", type=str, required=True, choices=brand_choices, help="Motor brand")
parser.add_argument("--model", type=str, required=True, choices=model_choices, help="Motor model")
parser.add_argument("--ID", type=int, required=True, help="Desired ID of the current motor (e.g. 1,2,3)")
parser.add_argument("--id", type=int, required=True, help="Desired ID of the current motor (e.g. 1,2,3)")
parser.add_argument(
"--baudrate", type=int, default=1_000_000, help="Desired baudrate for the motor (default: 1_000_000)"
)
args = parser.parse_args()
configure_motor(args.port, args.brand, args.model, args.ID, args.baudrate)
configure_motor(args.port, args.brand, args.model, args.id, args.baudrate)