Send signal when recording images with Camera Block #107
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Since Crappy
2.0.0
, theCamera
Block never outputs messages to downstream Blocks. That is because the acquisition, display, and recording of the images are all managed from within theCamera
Block. However, as pointed out in #98, there is currently no way for other Blocks to know when an image is saved. This feature could be useful when performing image analysis in post-processing, in case actions need to be performed during the test, to synchronize with the timestamps of the saved images.With this PR, the
Camera
Block now sends messages containing the timestamp and metadata of each recorded image. It does so in case all these conditions are true:Camera
Block has at least one output LinkThe timestamp and metadata are respectively sent over the labels
't(s)'
and'meta'
. A new example was added to demonstrate the new behavior, and the documentation was updated.