Skip to content

Commit 65db5af

Browse files
authored
fixes in 7_get_started_with_real_robot.md (#677)
1 parent 75d5fa4 commit 65db5af

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

examples/7_get_started_with_real_robot.md

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -626,7 +626,7 @@ Finally, run this code to instantiate and connectyour camera:
626626
from lerobot.common.robot_devices.cameras.configs import OpenCVCameraConfig
627627
from lerobot.common.robot_devices.cameras.opencv import OpenCVCamera
628628

629-
camera_config = OpenCVCameraConfig(camera_index=0)
629+
config = OpenCVCameraConfig(camera_index=0)
630630
camera = OpenCVCamera(config)
631631
camera.connect()
632632
color_image = camera.read()
@@ -668,13 +668,15 @@ Additionaly, you can set up your robot to work with your cameras.
668668
Modify the following Python code with the appropriate camera names and configurations:
669669
```python
670670
robot = ManipulatorRobot(
671-
leader_arms={"main": leader_arm},
672-
follower_arms={"main": follower_arm},
673-
calibration_dir=".cache/calibration/koch",
674-
cameras={
675-
"laptop": OpenCVCameraConfig(0, fps=30, width=640, height=480),
676-
"phone": OpenCVCameraConfig(1, fps=30, width=640, height=480),
677-
},
671+
KochRobotConfig(
672+
leader_arms={"main": leader_arm},
673+
follower_arms={"main": follower_arm},
674+
calibration_dir=".cache/calibration/koch",
675+
cameras={
676+
"laptop": OpenCVCameraConfig(0, fps=30, width=640, height=480),
677+
"phone": OpenCVCameraConfig(1, fps=30, width=640, height=480),
678+
},
679+
)
678680
)
679681
robot.connect()
680682
```
@@ -711,7 +713,7 @@ python lerobot/scripts/control_robot.py \
711713

712714
You will see a lot of lines appearing like this one:
713715
```
714-
INFO 2024-08-10 11:15:03 ol_robot.py:209 dt: 5.12 (195.1hz) dtRlead: 4.93 (203.0hz) dtRfoll: 0.19 (5239.0hz)
716+
INFO 2024-08-10 11:15:03 ol_robot.py:209 dt: 5.12 (195.1hz) dtRlead: 4.93 (203.0hz) dtWfoll: 0.19 (5239.0hz)
715717
```
716718

717719
It contains

0 commit comments

Comments
 (0)