Skip to content

Whistle detection#755

Closed
val-ba wants to merge 90 commits intomainfrom
feature/whistle_detection
Closed

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

Conversation

@val-ba
Copy link
Copy Markdown
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 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
…bio_ik

subrepo:
  subdir:   "src/lib/bio_ik"
  merged:   "ffec29f7a"
upstream:
  origin:   "git@github.com:bit-bots/bio_ik.git"
  branch:   "ros2"
  commit:   "ffec29f7a"
git-subrepo:
  version:  "0.4.9"
  origin:   "https://github.com/ingydotnet/git-subrepo"
  commit:   "ea10886"
@texhnolyze
Copy link
Copy Markdown
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 👍

@jaagut
Copy link
Copy Markdown
Member

jaagut commented Mar 12, 2026

image

@jaagut
Copy link
Copy Markdown
Member

jaagut commented Mar 12, 2026

image

@texhnolyze
Copy link
Copy Markdown
Contributor

Superseeded by #775

@texhnolyze texhnolyze closed this Mar 12, 2026
@github-project-automation github-project-automation Bot moved this from 🏗 In progress to ✅ Done in Software Mar 12, 2026
@texhnolyze texhnolyze deleted the feature/whistle_detection branch March 12, 2026 19:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

7 participants