News for hackers. Stuff that matters.
Re:Semaphore: A Full-Body Keyboard by fheisler on Wednesday April 12, 2023 @07:35AM (#35538023)
Author here! Pleasant surprise to find my project at the top of HN this morning with such positive feedback :) I'm happy to answer any questions or hear suggestions for future tweaks. Planning to make this into a customizable full-body game controller as well.
Re:Semaphore: A Full-Body Keyboard by hypernovawebant on Wednesday April 12, 2023 @07:41AM (#35538089)
I'm actually already working on exactly that -- after trying it out on a couple of mini-games such as https://github.com/mristin/pop-that-balloon-desktop, https://github.com/mristin/cactusss-desktop and https://github.com/mristin/ski-leu-desktop.

Please let me know if you want to join forces! You can find my contact information at: https://github.com/mristin.

I figured that I don't mind my kids playing computer games as long as they move. The first stage for me is to find a workable approach to DOS games. In particular, I thought about adapting ski-leu to race games such as Outrun & ilks.

Re:Semaphore: A Full-Body Keyboard by fheisler on Wednesday April 12, 2023 @07:56AM (#35538235)
Excellent, I'll reach out! Your balloon game looks a bit more like my face keyboard interface: https://github.com/everythingishacked/CheekyKeys#readme
Re:Semaphore: A Full-Body Keyboard by pl90087 on Wednesday April 12, 2023 @02:28PM (#35544464)
For some idea sourcing, you guys could consider mapping to musical notes as well. Then each melody maps to a particular dance.
Re:Semaphore: A Full-Body Keyboard by fheisler on Wednesday April 12, 2023 @03:50PM (#35545749)
Hmm like a camera-based full-body theremin?
Re:Semaphore: A Full-Body Keyboard by somethoughts on Wednesday April 12, 2023 @03:16PM (#35545202)
>> I figured that I don't mind my kids playing computer games as long as they move.

These could also be of interest for inspiration as well - basic idea this Youtuber is doing is to use console gamer joystick re-mapper hardware to convert joycon acceleration readings to button presses/button combos.

Can you Lose weight by playing Breath of the Wild? - Ringfit Controller Mod Explained Version

https://www.youtube.com/watch?v=HYn3pWXMPF8

- Today we talk about the Ringfit Adventure controller mod for Zelda: Breath of the Wild. With this mod you can Exercise and play BotW at the same time.

I made a Ring Fit Adventure Mod for Mario Kart - Controller Bending

https://www.youtube.com/watch?v=CNZSfunw85A

- Today on Controller Bending we mod the Ring fit controller to play Mario Kart 8 Deluxe with. With this Ring-con mod you have to run to drive. Literally. Squeezing the ring-con activates items! I would love to have Nintendo officially support this switch mod. Seriously, Ring fit mario kart is the most fun I've had in a while. Maybe I should speedrun with a ring fit controller

I'd imagine a lot of similar mods could be done via computer vision instead of using joycon accel readings.

I think the key would be to show up to a gaming console as a PS4/XBox controller instead of just a keyboard. I think there are Python libraries to do this.

Re:Semaphore: A Full-Body Keyboard by hypernovawebant on Thursday April 13, 2023 @06:22AM (#35553350)
Cool ideas!

I implemented a couple of mini-games using a dance mat as well:

https://github.com/mristin/dance-a-mole-desktop

https://github.com/mristin/judo-dance-desktop/

https://github.com/mristin/dance-cat-to-mouse

https://github.com/mristin/burpee-frog-desktop

https://github.com/mristin/dance-runaway-desktop

Dance mat could be even easier to integrate as it acts just as a normal joystick. The problem, though, is that many games expect reaction times achievable with a keyboard & mouse, but leg movements are a bit slower.

The problem with the dance mat is that you can not use it in a school class as you need extra equipment. It worked well in a dojo for my judo classes, though.

Re:Semaphore: A Full-Body Keyboard by somethoughts on Thursday April 13, 2023 @01:33PM (#35559071)
Cool stuff!
Re:Semaphore: A Full-Body Keyboard by funnyfoobar on Thursday April 13, 2023 @12:09AM (#35550836)
Demo is very cool, how do I run these games on Unix? Looks like it's an exe file. Is there a way to build this myself.
Re:Semaphore: A Full-Body Keyboard by mristin on Thursday April 13, 2023 @01:07AM (#35551197)
I'll try to package it for Linux this morning. So far nobody asked for it.
Re:Semaphore: A Full-Body Keyboard by funnyfoobar on Thursday April 13, 2023 @03:21AM (#35552158)
Even instructions on which python files to run would also work for me :)
Re:Semaphore: A Full-Body Keyboard by hypernovawebant on Thursday April 13, 2023 @06:15AM (#35553315)
You can find the packages here:

https://github.com/mristin/ski-leu-desktop/releases/download...

https://github.com/mristin/pop-that-balloon-desktop/releases...

If you want to run the code manually, install it in the virtual environment. Then you can simply run commands `ski-leu` or `pop-that-balloon`.

Btw., I use pop-that-balloon for basketball dribbling training, and a friend uses it for boxing. Have fun & please let me know if you use it for yet another sport :).

Edit: removed bullet points

Re:Semaphore: A Full-Body Keyboard by senectus1 on Wednesday April 12, 2023 @07:53AM (#35538202)
that youtube video was hilarious and very clever... you're about to become a overnight sensation mate :-D
Re:Semaphore: A Full-Body Keyboard by HopenHeyHi on Wednesday April 12, 2023 @07:54AM (#35538220)
I thought it was awesome. It occurred to me when you mentioned tinkering with magic values that it won't be very tweekable for other users like that.

Instead of MediaPipe try training a simple NN with a quickstart asking new players to assume the positions for fine tuning? :P

Re:Semaphore: A Full-Body Keyboard by fheisler on Wednesday April 12, 2023 @07:59AM (#35538262)
Thanks! Yeah, I definitely chose the easy way over the 'right' way for this version with just setting simple thresholds.

I'm not sure how well it will work yet, but for a game controller I might try to have users record their own custom motions - as in, "show me a few of your chosen [high punch] motions to match against in-game."

Re:Semaphore: A Full-Body Keyboard by hn_throwaway_99 on Wednesday April 12, 2023 @08:38AM (#35538678)
I loved this! Should be customizable so that twerking also allows you to double letters :)
Re:Semaphore: A Full-Body Keyboard by spit2wind on Wednesday April 12, 2023 @08:48AM (#35538790)
I hope the video was dramatized and that you didn't actually hurt yourself!

Rather than type every letter, a more efficient system is to represent sounds with keys. This is how stenography works. Each stoke of the keys is mapped to a series of characters; a letter, a grouping (such as 'sh' or 'ing'), or a complete phrase. Using such a system would allow one motion, for example for 'b', to map to a whole word, such as 'be'. Something as simple as that would reduce your risk of injury by something like 50%.

A major difference between stenography and typing is that steno is chorded: the signal is sent when the keys are released, not when they are depressed. I'm not sure how that would work with the full body.

Check out the OpenStenoProject for more about steno. Their community would probably enjoy discussing a full body steno theory (if they haven't already) .

Take care and thanks for all the effort that went into producing the video! It was a lot of fun :)

Re:Semaphore: A Full-Body Keyboard by fheisler on Wednesday April 12, 2023 @11:34AM (#35541490)
Interesting, I wonder if you could make a BodyChord or FaceChord setup using steno... Can you actually write code using a steno keyboard - as in, full access to all the usual symbols and modifiers - or would it just be for letters and basic punctuation?
Re:Semaphore: A Full-Body Keyboard by michaelmior on Wednesday April 12, 2023 @12:26PM (#35542292)
There are plenty of chorded keyboards that are programmable enough to allow use of whatever symbols you want or need when programming.

The Charachorder One is one example

https://www.charachorder.com/products/charachorder-one

Re:Semaphore: A Full-Body Keyboard by zeta0134 on Wednesday April 12, 2023 @02:14PM (#35544210)
Yes! Here is a really great talk on the state of doing so, with a fantastic realtime demo near the end. Mirabai live-codes using her Plover setup and narrates her thought process as she types out each command.

https://www.youtube.com/watch?v=Wpv-Qb-dB6g

Re:Semaphore: A Full-Body Keyboard by fheisler on Wednesday April 12, 2023 @03:49PM (#35545725)
Amazing! The spoken demo reminds me of Victor Borge's Phonetic Punctuation. This would be such a great way to spend so much time getting slightly more efficient...
Re:Semaphore: A Full-Body Keyboard by 1-more on Wednesday April 12, 2023 @04:00PM (#35545885)
I saw her at a keyboard meetup in NYC. She blew my mind with her vim setup: chords representing commands meant that the keystrokes didn't exactly matter: you could have the chord represent an arbitrarily annoying set of keystrokes and have a correspondingly complicated vimrc to handle them. Very cool!!
Re:Semaphore: A Full-Body Keyboard by varjag on Wednesday April 12, 2023 @03:32PM (#35545459)
Can't code with that.
Re:Semaphore: A Full-Body Keyboard by BrandoElFollito on Wednesday April 12, 2023 @03:46PM (#35545688)
Completely unrelated, but your comment about stenography reminded me how our French president announced the COVID lockdown. It was a speech full of key information (some I could not hear because when he announced that the schools would close children erupted in yells) but that was not the best part.

The best part was that the speech was also signed for the deaf (that part was normal) and subtitled by a ..., well, ... stenography trainee.

He or she had all wrong, could not keep the speed, was mixing words and skipping whole parts. At some point they seem to have said to themselves "oh fuck it" and were typing more or less random words.

The whole country was with them, hoping that they will go on typing until the end (which they did). That was a memorable event and people actually learned about stenography and the fact that they apparently use a special keyboard in the form of a butterfly.

Re:Semaphore: A Full-Body Keyboard by izietto on Wednesday April 12, 2023 @09:00AM (#35538952)
As a remote software developer, if this became a product that could be used daily I'd surely buy it. It would be the key link between programming and body exercise.
Re:Semaphore: A Full-Body Keyboard by ghodith on Wednesday April 12, 2023 @10:09AM (#35539926)
Yoga pose based programming?
Re:Semaphore: A Full-Body Keyboard by izietto on Wednesday April 12, 2023 @10:16AM (#35540058)
YDD, Yoga Driven Development
Re:Semaphore: A Full-Body Keyboard by samstave on Wednesday April 12, 2023 @02:10PM (#35544139)
>DDDD

>>Downward Dog Driven Development

Re:Semaphore: A Full-Body Keyboard by teddyh on Wednesday April 12, 2023 @11:19AM (#35541233)
Re:Semaphore: A Full-Body Keyboard by nicorn789 on Wednesday April 12, 2023 @11:15AM (#35541161)
My back agrees with you
Re:Semaphore: A Full-Body Keyboard by VikingCoder on Wednesday April 12, 2023 @09:20AM (#35539185)
Have you found or implemented a "reader"?

Imagine teaching some ML your personal body movements, and then you could have it transcribe text into Semaphore-output video (or live rendering)... At least well enough that Semaphore-input could read it?

Re:Semaphore: A Full-Body Keyboard by fheisler on Wednesday April 12, 2023 @11:39AM (#35541567)
I started building a super simplified version of something like this to help me practice flag semaphore, but ended up learning the alphabet a lot faster than finishing that script :o)
Re:Semaphore: A Full-Body Keyboard by gorjusborg on Wednesday April 12, 2023 @09:54AM (#35539701)
Your project (especially the video) made my life a little brighter. Thank you for putting it out there, and having a sense of humor :)
Re:Semaphore: A Full-Body Keyboard by illiarian on Wednesday April 12, 2023 @10:14AM (#35540022)
Your video is a work of art.

You could probably combine senaphore keyboard with some sort of stenography software for faster input (e.g. Plover https://youtu.be/KZGuBV1xe64)

Re:Semaphore: A Full-Body Keyboard by fheisler on Wednesday April 12, 2023 @11:35AM (#35541501)
I replied to a similar comment above, definitely worth an experiment!
Re:Semaphore: A Full-Body Keyboard by munchler on Wednesday April 12, 2023 @10:16AM (#35540054)
Enjoyed your video, but quick FYI: Your SSN is visible on the shot of your tax form. Might not want that detail to go viral.
Re:Semaphore: A Full-Body Keyboard by J_tt on Wednesday April 12, 2023 @10:30AM (#35540331)
I don’t think that is the authors SSN, since the first number closely matches a song title and the second is “69 420 007”, which is definitely a joke.
Re:Semaphore: A Full-Body Keyboard by markstos on Wednesday April 12, 2023 @10:46AM (#35540620)
I’ll keep this mind the next time I’m stuck on a burning rooftop and trying to communicate with the rescue chopper. I only hope the pilot understands Semaphore!
Re:Semaphore: A Full-Body Keyboard by cushychicken on Wednesday April 12, 2023 @10:54AM (#35540768)
Big Jack Stratton energy in your demo GIF.

Here’s hoping this ends up in a Vulf music video.

Re:Semaphore: A Full-Body Keyboard by dmead on Wednesday April 12, 2023 @11:07AM (#35541010)
how much did you love the nintendo powerglove back in the day?
Re:Semaphore: A Full-Body Keyboard by mrandish on Wednesday April 12, 2023 @12:08PM (#35542021)
The video on your site, from the clothing to your expression, is absolute perfection!
Re:Semaphore: A Full-Body Keyboard by elijahbenizzy on Wednesday April 12, 2023 @12:30PM (#35542366)
Thank you for this! Watching this brought me quite a bit of joy.
Re:Semaphore: A Full-Body Keyboard by wpietri on Wednesday April 12, 2023 @02:05PM (#35544069)
Can I just say how much I liked the small details here? Like your choice of matching sweatbands, your jazz hands on the last symbol, your choice of pose for backspace, and the commit message, "Updated readme for pedantry". In your honor, I am performing the chef's-kiss gesture. (Which I hope you will include as you add emoji to your input device.)
Re:Semaphore: A Full-Body Keyboard by fheisler on Wednesday April 12, 2023 @03:45PM (#35545671)
Thank you! Although TBF I only merged the pedantic README update :D
Re:Semaphore: A Full-Body Keyboard by michaelcampbell on Thursday April 13, 2023 @08:47AM (#35554565)
The jazz-hands sold it for me, too.
Re:Semaphore: A Full-Body Keyboard by major505 on Wednesday April 12, 2023 @02:17PM (#35544267)
I wish this existed 20 years ago when I done my college capstone project. It would be great present this to the examination board
Re:Semaphore: A Full-Body Keyboard by pstorm on Wednesday April 12, 2023 @04:05PM (#35545952)
Have you considered adding an autocomplete? Maybe add in three most likely completions to your word and have three separate signals to select each respectively? Maybe that's cheating, but that could up your words per minute drastically!
Re:Semaphore: A Full-Body Keyboard by otikik on Wednesday April 12, 2023 @04:15PM (#35546137)
Have you considered making a full body musical instrument?
Re:Semaphore: A Full-Body Keyboard by fheisler on Thursday April 13, 2023 @01:07PM (#35558629)
Yes, hoping to do something along these lines for a future update! I'm not sure if it would be individual notes/chords per motion, or something based on samples and a looper. If anyone knows of related projects, I'd love to get some ideas for inspiration.
Re:Semaphore: A Full-Body Keyboard by SirLJ on Wednesday April 12, 2023 @06:57PM (#35548200)
This is absolutely great! Thank you Sir!
Re:Semaphore: A Full-Body Keyboard by YeBanKo on Friday April 14, 2023 @04:34PM (#35574377)
This is amazing! I think there is a lot of potential for education. This makes studying letters way more fun.