Grey Field Fix#2503
Open
CameronLyon wants to merge 4 commits into
Open
Conversation
automated style fixes by copilot that works for me. Doesn't seem logically changing, just comment reformatting.
rishiso
approved these changes
Apr 12, 2026
rishiso
left a comment
Contributor
There was a problem hiding this comment.
Good to merge after resolving merge conflict
Squid5678
requested changes
Apr 14, 2026
Squid5678
left a comment
Contributor
There was a problem hiding this comment.
can we get rid of these weird robonav changes? otherwise lgtm
sanatd33
approved these changes
Apr 14, 2026
sanatd33
left a comment
Contributor
There was a problem hiding this comment.
lgtm after you remove the jetson stuff
should just be able to rm -rf jetson-*
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This bug has been in the stack for years, but I believe this will fix it.
The bug in question:
The ConfigServer's parse_game_settings function builds a ROS message where all bool fields default to false, and it never sets use_our_half or use_their_half -- so both are published as false, telling the VisionReceiver to discard every robot and ball and telling the UI to grey out both halves of the field. The MainWindow tries to correct this by sending the right values via a service call, but ~40% of the time it fires before DDS has discovered the ConfigServer's service, so the call is silently lost and the bad defaults persist for the entire session. Adding game_settings.use_our_half = true and game_settings.use_their_half = true in parse_game_settings fixes the defaults at the source, eliminating the race condition.
Additionally, RoboNav inserted some things into our repo (somehow) when making this PR, so jetson-inference and jetson-utils was moved/modified. If there are any issues related to that, please let me know.