Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replaces cv2.imshow with Pygame to avoid hanging on Ubuntu (🐛 Bug) #620

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

litch
Copy link

@litch litch commented Jan 8, 2025

What this does

Fixes issues with cv2.imshow that occur especially in ubuntu. I saw a couple of others having this issue in the discord. Effectively the program would just hang when trying to execute the cv2.imshow command in the control_loop.

How it was tested

Tested by operating the robot using the control_robot.py script in several scenarios.

How to checkout & try? (for the reviewer)

Any operation that hits the control loop with cameras active will show the images in the new interface.

python lerobot/scripts/control_robot.py teleoperate --robot-path lerobot/configs/robot/so100.yaml

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant