Skip to content

Commit 7598aea

Browse files
mishig25pkooij
andauthored
Update 10_use_so100.md; use diff syntax (#944)
Co-authored-by: Pepijn <[email protected]>
1 parent 4485cc0 commit 7598aea

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

examples/10_use_so100.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ sudo chmod 666 /dev/ttyACM1
128128
#### d. Update config file
129129

130130
IMPORTANTLY: Now that you have your ports, update the **port** default values of [`SO100RobotConfig`](../lerobot/common/robot_devices/robots/configs.py). You will find something like:
131-
```python
131+
```diff
132132
@RobotConfig.register_subclass("so100")
133133
@dataclass
134134
class So100RobotConfig(ManipulatorRobotConfig):
@@ -141,7 +141,8 @@ class So100RobotConfig(ManipulatorRobotConfig):
141141
leader_arms: dict[str, MotorsBusConfig] = field(
142142
default_factory=lambda: {
143143
"main": FeetechMotorsBusConfig(
144-
port="/dev/tty.usbmodem58760431091", <-- UPDATE HERE
144+
- port="/dev/tty.usbmodem58760431091",
145+
+ port="{ADD YOUR LEADER PORT}",
145146
motors={
146147
# name: (index, model)
147148
"shoulder_pan": [1, "sts3215"],
@@ -158,7 +159,8 @@ class So100RobotConfig(ManipulatorRobotConfig):
158159
follower_arms: dict[str, MotorsBusConfig] = field(
159160
default_factory=lambda: {
160161
"main": FeetechMotorsBusConfig(
161-
port="/dev/tty.usbmodem585A0076891", <-- UPDATE HERE
162+
- port="/dev/tty.usbmodem585A0076891",
163+
+ port="{ADD YOUR FOLLOWER PORT}",
162164
motors={
163165
# name: (index, model)
164166
"shoulder_pan": [1, "sts3215"],

0 commit comments

Comments
 (0)