Skip to content
This repository was archived by the owner on Oct 8, 2024. It is now read-only.

Capture the end-of-match screenshot before fade-down - #391

Open
PeterJCLaw wants to merge 2 commits into
mainfrom
screenshot-before-red
Open

Capture the end-of-match screenshot before fade-down#391
PeterJCLaw wants to merge 2 commits into
mainfrom
screenshot-before-red

Conversation

@PeterJCLaw

@PeterJCLaw PeterJCLaw commented Feb 24, 2023

Copy link
Copy Markdown
Member

This changes when we capture the end-of-match screenshot to just before the fade-down rather than afterwards, in order to present a more consistent view of the world relative to the captured video.

It appears that the video itself only captures a frame or two into the red fade-down, meaning that there's up to 80ms between the end of the video and when the post-fade-up screenshot is captured. When comparing that screenshot to the end of the video there can therefore be considerable discrepancies, which are rather unexpected.

With this change we present a more consistent view of the world.

Contributes to #386.

This is derived from lots of manual testing of Webots to find both
a point in time and a combination of captures which actually outputs
the right frame. While this iteration isn't shippable, I'm committing
this as a known working reference.
This reworks the code to be more portable and explains what is
going on without fundamentally changing any part of it.
@PeterJCLaw
PeterJCLaw marked this pull request as ready for review February 24, 2023 19:54
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant