From d001f9587e8ba6992b8d6e5f1747df1550f92d2d Mon Sep 17 00:00:00 2001 From: Felix Agner <felix.agner@control.lth.se> Date: Tue, 17 Oct 2023 08:53:22 +0200 Subject: [PATCH] update readme --- README.md | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 3bbbd63..0ea15b7 100644 --- a/README.md +++ b/README.md @@ -29,8 +29,8 @@ from omnibot.tcp import Connection from time import time, sleep # Insert suitable IP-adress -HOST = "192.168.0.101" -PORT = 9001 +HOST = "xxx.xxx.xxx.xxx" +PORT = yyyy with Connection(HOST, PORT) as bot: @@ -59,8 +59,8 @@ A pre-defined script which rotates first one way, then the other, and prints log from omnibot.dummybot import run_dummybot # Insert suitable IP-adress -HOST = "192.168.0.101" -PORT = 9001 +HOST = "xxx.xxx.xxx.xxx" +PORT = yyyy run_dummybot(HOST, PORT) ``` @@ -68,7 +68,12 @@ run_dummybot(HOST, PORT) You can get the maximum absolute value of servo-speed-setpoints with `max_speed = bot.get_max_speed()`. Any value above (below) `max_speed` (`-max_speed`) is rounded down (up) on the server side. ### Network -At the department of automatic control, you should be connected to the omnibots via the same router. Currently this has been done with the router with name *robotlab*. You can connect to this router via IP `130.235.83.171`. Use port `90XX` to rout to bot number `XX`, e.g. `9006` routs to bot number 6. +The omnibots automatically connect to the router named "robotlab". You can connect to the omnibots via this router, IP `130.235.83.171`. Use port `90XX` to rout to bot number `XX`, e.g. `9006` routs to bot number 6. In the example above you would use +``` +HOST = "130.235.83.171" +PORT = 9006 +``` +to connect to bot number 6. ## Support felix.agner@control.lth.se -- GitLab