robotology / assistive-rehab

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

Integrate wi-fi button in the demo #261

Closed vvasco closed 4 years ago

vvasco commented 4 years ago

Following the discussion reported in #250, we want to use a wi-fi button for triggering speech and integrate it in the demo. We decided to go for this one. I ordered it today, it should be arriving in 3 -5 days.

vvasco commented 4 years ago

Button arrived!

vvasco commented 4 years ago

Done in #280. The button was configured to produce a http POST request when pressed once (see #264). The POST request is managed by node-button.js, which creates a server receiving requests and sending triggers to /managerTUG/cmd:rpc, by means of yarp.js.

For the demo with the real robot, managerTUG is in charge of deciding if the trigger is a start or a stop: