-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'bugfix/192-grabbing_in_ifm3dpy' into 'main'
Bugfix/192 grabbing in ifm3dpy Closes #192 See merge request syntron/support/csr/ifm3d/ifm3d!192
- Loading branch information
Showing
7 changed files
with
40 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# | ||
# Copyright 2021-present ifm electronic, gmbh | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# | ||
|
||
import pytest | ||
import time | ||
|
||
import ifm3dpy | ||
|
||
def test_waitforframe(): | ||
cam = ifm3dpy.O3R() | ||
fg = ifm3dpy.FrameGrabber(cam, 50012) | ||
fg.start() | ||
wait_for_frame_timeout = 10000 | ||
count = 0 | ||
for i in range(10): | ||
res,frame = fg.wait_for_frame().wait_for(wait_for_frame_timeout) | ||
assert res == True , f"A timeout during wait_for_frame was detected. We did not capture data within {wait_for_frame_timeout} ms" | ||
count = count + 1 | ||
assert count == 10 | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters