Skip to content

Commit ec3169c

Browse files
committed
set daemon for harmonic gui threads
1 parent 2439f10 commit ec3169c

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

common/gui_interfaces/gui_interfaces/general/measuring_threading_gui_harmonic.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
from datetime import datetime
22
import json
33
import subprocess
4-
import rclpy
54
import threading
65
import time
76
import websocket
@@ -13,7 +12,7 @@
1312

1413
sys.path.insert(0, "/RoboticsApplicationManager")
1514

16-
from robotics_application_manager import LogManager
15+
from robotics_application_manager import LogManager # noqa: E402
1716

1817

1918
class MeasuringThreadingGUI:
@@ -56,11 +55,13 @@ def start(self):
5655
threading.Thread(target=self.run_websocket, daemon=True).start()
5756

5857
# Initialize and start the RTF thread
59-
self.rtf_thread = threading.Thread(target=self.get_real_time_factor).start()
58+
threading.Thread(
59+
target=self.get_real_time_factor, name="rtf_thread", daemon=True
60+
).start()
6061

6162
# Initialize and start the Frequency thread
62-
self.frequency_thread = threading.Thread(
63-
target=self.measure_and_send_frequency
63+
threading.Thread(
64+
target=self.measure_and_send_frequency, name="frequency_thread", daemon=True
6465
).start()
6566

6667
# Initialize and start the image sending thread (GUI out thread)

0 commit comments

Comments
 (0)