@@ -626,7 +626,7 @@ Finally, run this code to instantiate and connectyour camera:
626626from  lerobot.common.robot_devices.cameras.configs import  OpenCVCameraConfig
627627from  lerobot.common.robot_devices.cameras.opencv import  OpenCVCamera
628628
629- camera_config  =  OpenCVCameraConfig(camera_index = 0 )
629+ config  =  OpenCVCameraConfig(camera_index = 0 )
630630camera =  OpenCVCamera(config)
631631camera.connect()
632632color_image =  camera.read()
@@ -668,13 +668,15 @@ Additionaly, you can set up your robot to work with your cameras.
668668Modify the following Python code with the appropriate camera names and configurations:
669669``` python 
670670robot =  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)
679681robot.connect()
680682``` 
@@ -711,7 +713,7 @@ python lerobot/scripts/control_robot.py \
711713
712714You 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
717719It contains
0 commit comments