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

camera_validator: Fix thread getting stuck (empty windows) #321

Closed
wants to merge 4 commits into from

Conversation

mintar
Copy link
Contributor

@mintar mintar commented Nov 5, 2019

Moved the creation of the cv2.namedWindow from the MonoCameraValidator constructor to the callback function. Otherwise, this caused the following error:

QObject::startTimer: Timers cannot be started from another thread

... with the result that the image windows remained black and the node became stuck.

Other changes:

  • Add support for bgra8 encoding
  • Use ApproximateTimeSynchronizer

Fixes #201 .

This PR includes a cleaned-up version of #275 , so once this is merged, #275 can be closed.

Moved the creation of the cv2.namedWindow from the MonoCameraValidator
constructor to the callback function. Otherwise, this caused the
following error:

    QObject::startTimer: Timers cannot be started from another thread

... with the result that the image windows remained black and the node
became stuck.

Fixes ethz-asl#201 .
@ethzasl-jenkins
Copy link

Can one of the admins verify this patch?

@sneheshs
Copy link

Any updates on this please?

@goldbattle
Copy link
Collaborator

This has been merged into PR #515. Let me know if any other issues. Thanks for the PR.

@goldbattle goldbattle closed this May 3, 2022
@mintar mintar deleted the fix_camera_validator_hang branch May 3, 2022 09:33
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.

kalibr_camera_validator hangs
4 participants