Robobot MQTT-client: Difference between revisions

From Rsewiki
(Created page with "Back to Robobot_B ==MQTT-client in Python== This skeleton is intended as the mission controller app. 700px")
 
Line 6: Line 6:


[[file:mqtt-client-blocks-2025.png | 700px]]
[[file:mqtt-client-blocks-2025.png | 700px]]
=== mqtt-client.py ===
This is the primary file in the mission control skeleton.
It is intended to run on the Raspberry Pi, using the command:
cd ~/svn/robobot/mqtt_python
python3 mqtt-client.py
All the interfaces, except the GPIO (General Purpose Input Output), have a network interface.
This allows the app to run anywhere there is network access to the robot.
=== Command line parameters ===
The app has defined a few command line parameters, among these help:
python3 mqtt-client.py --help
''% Starting
''usage: mqtt-client.py [-h] [-w] [-g] [-l] [-s] [-n]
''Robobot app 2024
''options:
'' -h, --help    show this help message and exit
'' -w, --white  Calibrate white tape level
'' -g, --gyro    Calibrate gyro
'' -l, --level  Calibrate horizontal
'' -s, --silent  Print less to console
'' -n, --now    Start drive now (do not wait for start button)
=== Main loop ===
The

Revision as of 18:06, 18 January 2025

Back to Robobot_B

MQTT-client in Python

This skeleton is intended as the mission controller app.

mqtt-client.py

This is the primary file in the mission control skeleton.

It is intended to run on the Raspberry Pi, using the command:

cd ~/svn/robobot/mqtt_python
python3 mqtt-client.py

All the interfaces, except the GPIO (General Purpose Input Output), have a network interface. This allows the app to run anywhere there is network access to the robot.

Command line parameters

The app has defined a few command line parameters, among these help:

python3 mqtt-client.py --help
% Starting
usage: mqtt-client.py [-h] [-w] [-g] [-l] [-s] [-n]
Robobot app 2024
options:
 -h, --help    show this help message and exit
 -w, --white   Calibrate white tape level
 -g, --gyro    Calibrate gyro
 -l, --level   Calibrate horizontal
 -s, --silent  Print less to console
 -n, --now     Start drive now (do not wait for start button)


Main loop

The