Skip to content

Whistle detection#755

Open
val-ba wants to merge 81 commits intomainfrom
feature/whistle_detection
Open

Whistle detection#755
val-ba wants to merge 81 commits intomainfrom
feature/whistle_detection

Conversation

@val-ba
Copy link
Contributor

@val-ba val-ba commented Feb 28, 2026

Summary

In the coming RoboCup competitions, we get extra time if we can detected whistles.
That is why we use ffts where we look at energy in frequencies used by whistles.

The detection is propagated to the body blackboard and integrated into the dsd.
The needed audio common ros packages are put into a subrepo.
The behavior has been tested in sim and on the robot and the whistle detection on my machine.
image

Proposed changes

  • create a WhistleDetectedDecision
  • add a whistle callback and a whistle detected method to a capsule ( maybe the game status capsule?)
  • initialize the whistle detected callback in the body behavior
  • Put the whistle detection software into a ros node

It is not arm compatible rn, but that is a future problem.
This is because we need pipewire and the path where it is found is for x86.

Related issues

Solves #753

Checklist

  • Run pixi run build
  • Write documentation
  • Test on your machine
  • Test on the robot
  • Create issues for future work
  • Triage this PR and label it

val-ba and others added 2 commits February 28, 2026 13:21
Co-authored-by: EnigmaBellatrix <EnigmaBellatrix@users.noreply.github.com>
@jaagut jaagut moved this from 🆕 New to 🏗 In progress in Software Mar 9, 2026
@val-ba val-ba requested a review from Flova March 11, 2026 10:06
confusedlama and others added 18 commits March 11, 2026 11:22
…/lib/game_controller_hsl

subrepo:
  subdir:   "src/lib/game_controller_hsl"
  merged:   "d55ef420e"
upstream:
  origin:   "git@github.com:bit-bots/game_controller_hsl.git"
  branch:   "rolling"
  commit:   "d55ef420e"
git-subrepo:
  version:  "0.4.9"
  origin:   "https://github.com/ingydotnet/git-subrepo"
  commit:   "ea10886"
as it seemed to introduce performance issues
and exlude `src/lib` from formatting/linting
subrepo:
  subdir:   "src/lib/game_controller_hsl"
  merged:   "2fa5731b6"
upstream:
  origin:   "git@github.com:bit-bots/game_controller_hsl.git"
  branch:   "rolling"
  commit:   "2fa5731b6"
git-subrepo:
  version:  "0.4.9"
  origin:   "https://github.com/ingydotnet/git-subrepo"
  commit:   "ea10886"
…itbots_main into Gamecontroller-update-for-HSL
@val-ba val-ba marked this pull request as ready for review March 11, 2026 18:45
@val-ba val-ba requested review from cleWu03 and jaagut March 11, 2026 18:45
@texhnolyze
Copy link
Contributor

I'd like to unravel this to make it easier for everyone to review it and have a less messy git history tomorrow.
I've started with #767 doing this for the game controller branch and would then create a new branch once that is finished/integrated cherry-picking your commits.
But let's use this tomorrow in the game, as you already merged the other branches in here 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: 🏗 In progress

Development

Successfully merging this pull request may close these issues.

7 participants