From 7af2bb9a1e5972bd0df5dff63eefcfb0d4519092 Mon Sep 17 00:00:00 2001 From: Peter Schmidt Date: Sat, 27 Jan 2024 19:03:44 +1100 Subject: [PATCH 1/4] Update nao_setup.rst Add a Connecting to GameController Wifi section documenting bin/changeField.py --- source/setup/nao_setup.rst | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/source/setup/nao_setup.rst b/source/setup/nao_setup.rst index 942833f..9a1a3e9 100644 --- a/source/setup/nao_setup.rst +++ b/source/setup/nao_setup.rst @@ -105,3 +105,33 @@ Finally, for all robots, run PC$ nao_sync -rd treebeard # reboot again +********************************* +Connecting to GameController Wifi +********************************* + +To play a game by the SPL Rules, the `runswift` executable needs to send packets of +information to, and respond to commands from, one specific soccer field's +`GameController `_. Typically the +competition organisers will provide the list of field SSIDs and any other details +at the competition, for example `SPL_A` to `SPL_E` has been typical of RoboCup. + +One way to set this up is to SSH into the robot and use the change field script, this is +analagous to connecting to a wifi hotspot, one needs to specify things like the +`SSID `_: + +``` + PC$ ssh nao@treebeard.local + # sudo bin/changeField.py + sudo bin/changeField.py SPL_E +``` + +These could also have been set from the `runswift.cfg` file. + +Further considering the SPL Rules section on `Wireless Communications`, robots should be +changed off the field when not playing a game or on an unused field: + +``` + # runswift is not a valid SPL SSID, so the Nao's WiFi should + # disconnect and fail to connect at a competition + sudo bin/changeField.py runswift +``` From 5d8001307b471f108885b6c8d886c9fc94f90475 Mon Sep 17 00:00:00 2001 From: Peter Schmidt Date: Sat, 2 Mar 2024 16:42:12 +1100 Subject: [PATCH 2/4] Update source/setup/nao_setup.rst Co-authored-by: Ryan Samarakoon --- source/setup/nao_setup.rst | 1 - 1 file changed, 1 deletion(-) diff --git a/source/setup/nao_setup.rst b/source/setup/nao_setup.rst index 9a1a3e9..09be20d 100644 --- a/source/setup/nao_setup.rst +++ b/source/setup/nao_setup.rst @@ -125,7 +125,6 @@ analagous to connecting to a wifi hotspot, one needs to specify things like the sudo bin/changeField.py SPL_E ``` -These could also have been set from the `runswift.cfg` file. Further considering the SPL Rules section on `Wireless Communications`, robots should be changed off the field when not playing a game or on an unused field: From 26b66de58ac137c5ec4f7e73eabbd8c5d1af8413 Mon Sep 17 00:00:00 2001 From: Peter Schmidt Date: Sat, 2 Mar 2024 16:42:32 +1100 Subject: [PATCH 3/4] Update nao_setup.rst: One blank line --- source/setup/nao_setup.rst | 1 - 1 file changed, 1 deletion(-) diff --git a/source/setup/nao_setup.rst b/source/setup/nao_setup.rst index 09be20d..55eef3f 100644 --- a/source/setup/nao_setup.rst +++ b/source/setup/nao_setup.rst @@ -125,7 +125,6 @@ analagous to connecting to a wifi hotspot, one needs to specify things like the sudo bin/changeField.py SPL_E ``` - Further considering the SPL Rules section on `Wireless Communications`, robots should be changed off the field when not playing a game or on an unused field: From 67e3f9d50c3a5976a05abe918cc0424c4ddda835 Mon Sep 17 00:00:00 2001 From: Ryan Samarakoon Date: Sat, 2 Mar 2024 16:46:41 +1100 Subject: [PATCH 4/4] fix code blocks --- source/setup/nao_setup.rst | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/source/setup/nao_setup.rst b/source/setup/nao_setup.rst index 55eef3f..5d887a6 100644 --- a/source/setup/nao_setup.rst +++ b/source/setup/nao_setup.rst @@ -119,17 +119,19 @@ One way to set this up is to SSH into the robot and use the change field script, analagous to connecting to a wifi hotspot, one needs to specify things like the `SSID `_: -``` +.. code-block:: bash + PC$ ssh nao@treebeard.local # sudo bin/changeField.py sudo bin/changeField.py SPL_E -``` + Further considering the SPL Rules section on `Wireless Communications`, robots should be changed off the field when not playing a game or on an unused field: -``` +.. code-block:: bash + # runswift is not a valid SPL SSID, so the Nao's WiFi should # disconnect and fail to connect at a competition sudo bin/changeField.py runswift -``` +