Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
F

foosbar

> 编程语言
Open source

Code to support my autonomous foosball playing robot

358 stars0 likes1 views
WebsiteGitHub

About

Code to support my autonomous foosball playing robot

Foosbar

The (Unverifiably but Plausibly) World's Best Foosball Robot

Video explanation: https://www.youtube.com/watch?v=xrwXZXGiP1w

Pitch

As a very enthusiastic foosball player, I've sunk countless hours into the game. As a programmer though, something about the idea of practice is fundamentally misguided. Repeating the same task over and over, in the hopes of slightly improving your marginal efficiency of it? It sounds ripe for automation.

So I did that! Foosbar is a completely autonomous foosball table that is robotically controlled on one side of the table, while a human plays on the other. It is capable of defending, passing and taking shots. It has successfully mechanized all my joy out of the game, leaving me free to pursue more important and deeply fulfilling things with my life.

Setup

Components

There are 3 main components of the project that I've dubbed software, firmware and frontend. software is the main directory for the code directly controlling the motors. frontend is for the 3d webapp enabling control of the table through a remote game controller. firmware is obsolete but originally for the teensy 4.1 mounted on the electronics connected to an e-paper display to show score, in the end I got lazy and didn't fully implement this.

Given that these are all very specific to my setup I don't anticipate anyone actually running any of this, so it's mostly here as reference for someone attempting something similar. Still, if only for my own sake here are some high level build instructions.

software

You will need to build uWebSockets and make it findable by cmake. Given that basically nobody as far as I can tell actually understands the arcane incantations required by cmake I'll tell you that I just ran make && sudo cp ./uSockets/uSockets.a /usr/local/lib/libusockets.a from inside the cloned directory. I'm sure that by saying so I'll get someone yelling at me that there's a more proper way though. You'll also need to install the qualisys realtime sdk in a similar way.

Once the requirements are installed, building is straightforward:

bash
cd software
mkdir build && cd build
cmake ..
make
./foosbar

firmware

Standard pio project, just run

bash
cd firmware
pio run -t upload

frontend

Just run

bash
cd frontend
npx vite

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

C++foosballqtmqualisysrobotics

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言