Skip to content

Init fail because of OpenCVΒ #2

@heuzef

Description

@heuzef

Hi, i'm pretty hype with your project, specially with check_positions script, but i have an issue during the setup.

python check_positions.py
πŸš€ Starting Robot Position Monitor...
⚠  READ-ONLY MODE: Robot will connect and then DISABLE TORQUE
πŸ”“ After connection, you can move the robot manually
πŸ“– Move your robot manually to see position updates

πŸ”Œ Connecting to robot...
2025-09-30 15:19:58,446 INFO: Initializing in READ-ONLY mode
2025-09-30 15:19:58,476 INFO: Mismatch between calibration values in the motor and the calibration file or no calibration file found
Press ENTER to use provided calibration file associated with the id None, or type 'c' and press ENTER to run calibration: 
2025-09-30 15:20:07,475 INFO: Writing calibration file associated with the id None to the motors
2025-09-30 15:20:09,665 INFO: OpenCVCamera(0) connected.
[ WARN:0@11.234] global cap_v4l.cpp:914 open VIDEOIO(V4L2:/dev/video1): can't open camera by index
[ERROR:0@11.422] global obsensor_uvc_stream_channel.cpp:163 getStreamChannelGroup Camera index out of range
2025-09-30 15:20:09,853 ERROR: Failed to connect to robot: Failed to open OpenCVCamera(1).Run `lerobot-find-cameras opencv` to find available cameras.
2025-09-30 15:20:09,853 ERROR: Failed to connect to robot in read-only mode: Failed to open OpenCVCamera(1).Run `lerobot-find-cameras opencv` to find available cameras.

❌ Error during position monitoring: Failed to open OpenCVCamera(1).Run `lerobot-find-cameras opencv` to find available cameras.
lerobot-find-cameras opencv

--- Detected Cameras ---
Camera #0:
  Name: OpenCV Camera @ /dev/video0
  Type: OpenCV
  Id: /dev/video0
  Backend api: V4L2
  Default stream profile:
    Format: 0.0
    Width: 640
    Height: 480
    Fps: 30.0
--------------------
Camera #1:
  Name: OpenCV Camera @ /dev/video2
  Type: OpenCV
  Id: /dev/video2
  Backend api: V4L2
  Default stream profile:
    Format: 0.0
    Width: 640
    Height: 480
    Fps: 30.0
--------------------
Camera #2:
  Name: OpenCV Camera @ /dev/video4
  Type: OpenCV
  Id: /dev/video4
  Backend api: V4L2
  Default stream profile:
    Format: 0.0
    Width: 640
    Height: 480
    Fps: 30.0
--------------------

Finalizing image saving...
Image capture finished. Images saved to outputs/captured_images

Any idea ?
Btw, i have somes issue with the calibration file too, maybe there is a way to force my json file ?

Thanks for help πŸ™

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions