From 6018eae75dee94f223be64a9361364ef0d3806ef Mon Sep 17 00:00:00 2001 From: YoheiKakiuchi Date: Mon, 27 Dec 2021 15:38:04 +0900 Subject: [PATCH] add joypad sample for publishing /joy topic --- doc/index.rst | 5 ++ www/browser_joy.html | 106 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 111 insertions(+) create mode 100644 www/browser_joy.html diff --git a/doc/index.rst b/doc/index.rst index 4dcd72e..83319fc 100644 --- a/doc/index.rst +++ b/doc/index.rst @@ -125,6 +125,11 @@ Chat After launching start_bridge.launch, let's open http://localhost:%PORT_OF_YOURCHOICE%/roswww/chat.html with a browser in two windows. Once you send a message from one of the windows, the message will be shown in both windows. +Gamepad(Joy) +-------------- + +After launching start_bridge.launch and connect a gamapad to the PC/tablet on which you open a browser, let's open http://%HOSTNAME%:%PORT_OF_YOURCHOICE%/roswww/browser_joy.html?wsaddress=%HOSTNAME%&wsport=%WEBSOCKET_PORT% with a browser. '/joy' topic will be published when you push buttons on the gamepad. + Basic Authentication ==================== diff --git a/www/browser_joy.html b/www/browser_joy.html new file mode 100644 index 0000000..f4e0b8d --- /dev/null +++ b/www/browser_joy.html @@ -0,0 +1,106 @@ + + + + + + +