From 2d0c9662a121d8fbd90613c5a26296590aa67a6a Mon Sep 17 00:00:00 2001 From: aestene Date: Tue, 7 Feb 2023 13:31:55 +0100 Subject: [PATCH] Rename to publishers --- main.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/main.py b/main.py index ae2edb26..6aecd163 100644 --- a/main.py +++ b/main.py @@ -60,19 +60,23 @@ ) threads.append(mqtt_thread) - robot_status: RobotStatusPublisher = RobotStatusPublisher( + robot_status_publisher: RobotStatusPublisher = RobotStatusPublisher( mqtt_queue=queues.mqtt_queue, robot=robot, state_machine=state_machine ) robot_status_thread: Thread = Thread( - target=robot_status.run, name="ISAR Robot Status Publisher", daemon=True + target=robot_status_publisher.run, + name="ISAR Robot Status Publisher", + daemon=True, ) threads.append(robot_status_thread) - robot_info: RobotInfoPublisher = RobotInfoPublisher( + robot_info_publisher: RobotInfoPublisher = RobotInfoPublisher( mqtt_queue=queues.mqtt_queue ) robot_info_thread: Thread = Thread( - target=robot_info.run, name="ISAR Robot Info Publisher", daemon=True + target=robot_info_publisher.run, + name="ISAR Robot Info Publisher", + daemon=True, ) threads.append(robot_info_thread)