robotology / assistive-rehab

Assistive and Rehabilitative Robotics
https://robotology.github.io/assistive-rehab/doc/mkdocs/site
BSD 3-Clause "New" or "Revised" License
21 stars 11 forks source link

Investigate the possibility to replace the Wi-Fi buttons #331

Closed mfussi66 closed 1 year ago

mfussi66 commented 1 year ago

The MyStrom Wifi Button that is now used to trigger the speech interaction in the TUG demo takes a long time to configure, needs a phone app, and requires internet connection to work in a reasonable timeframe. Additionally, it requires dedicated yarp JS code.

It might be useful to investigate if it can be replaced by a simpler device, for example a bluetooth joystick. Joysticks can be easily handled by yarp, since the dedicated device is already written, and the configuration supports launching rpcs natively (through shell scripts).

cc @pattacini @randaz81 @elandini84 @ste93 .

mfussi66 commented 1 year ago

This little device called 8BitDo works well as a bluetooth joystick on Linux. We can configure it to send speech triggers through one of the buttons, like the right top one.

PXL_20230110_120640069.jpg

mfussi66 commented 1 year ago

Just created the proper config file that mimicks the wifi button. By pressing the Right trigger, the joystickCtrl sends the message trigger, just like before towards the same managerTUG port. PR to be opened asap.

https://user-images.githubusercontent.com/38140169/212932268-3982e0e2-f4c9-455f-9c2c-85611a4e4e1c.mp4

pattacini commented 1 year ago

Integrated via: