Skip to content

resolve daemon warnings for threading methods #33

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 13, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -85,17 +85,17 @@ def start(self):
sg = threading.Thread(target=self.sub_gripper_status)
sp = threading.Thread(target=self.sub_pump_status)

pa.setDaemon(True)
pa.daemon = True
pa.start()
pb.setDaemon(True)
pb.daemon = True
pb.start()
sa.setDaemon(True)
sa.daemon = True
sa.start()
sb.setDaemon(True)
sb.daemon = True
sb.start()
sg.setDaemon(True)
sg.daemon = True
sg.start()
sp.setDaemon(True)
sp.daemon = True
sp.start()

pa.join()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,17 +92,17 @@ def start(self):
sg = threading.Thread(target=self.sub_gripper_status)
sp = threading.Thread(target=self.sub_pump_status)

pa.setDaemon(True)
pa.daemon = True
pa.start()
pb.setDaemon(True)
pb.daemon = True
pb.start()
sa.setDaemon(True)
sa.daemon = True
sa.start()
sb.setDaemon(True)
sb.daemon = True
sb.start()
sg.setDaemon(True)
sg.daemon = True
sg.start()
sp.setDaemon(True)
sp.daemon = True
sp.start()

pa.join()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,17 +89,17 @@ def start(self):
sg = threading.Thread(target=self.sub_gripper_status)
sp = threading.Thread(target=self.sub_pump_status)

pa.setDaemon(True)
pa.daemon = True
pa.start()
pb.setDaemon(True)
pb.daemon = True
pb.start()
sa.setDaemon(True)
sa.daemon = True
sa.start()
sb.setDaemon(True)
sb.daemon = True
sb.start()
sg.setDaemon(True)
sg.daemon = True
sg.start()
sp.setDaemon(True)
sp.daemon = True
sp.start()

pa.join()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,17 +87,17 @@ def start(self):
sg = threading.Thread(target=self.sub_gripper_status)
sp = threading.Thread(target=self.sub_pump_status)

pa.setDaemon(True)
pa.daemon = True
pa.start()
pb.setDaemon(True)
pb.daemon = True
pb.start()
sa.setDaemon(True)
sa.daemon = True
sa.start()
sb.setDaemon(True)
sb.daemon = True
sb.start()
sg.setDaemon(True)
sg.daemon = True
sg.start()
sp.setDaemon(True)
sp.daemon = True
sp.start()

pa.join()
Expand Down
2 changes: 1 addition & 1 deletion mecharm/mecharm_pi/mecharm_pi/simple_gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ def main(args=None):
# -----------

# w = threading.Thread(target=Window(window).run())
# w.setDaemon(True)
# w.daemon = True
# t.start()
# w.start()
# window.mainloop()
Expand Down
12 changes: 6 additions & 6 deletions mycobot_communication/mycobot_communication/mycobot_topics.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,17 +97,17 @@ def start(self):
sg = threading.Thread(target=self.sub_gripper_status)
sp = threading.Thread(target=self.sub_pump_status)

pa.setDaemon(True)
pa.daemon = True
pa.start()
pb.setDaemon(True)
pb.daemon = True
pb.start()
sa.setDaemon(True)
sa.daemon = True
sa.start()
sb.setDaemon(True)
sb.daemon = True
sb.start()
sg.setDaemon(True)
sg.daemon = True
sg.start()
sp.setDaemon(True)
sp.daemon = True
sp.start()

pa.join()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,17 +104,17 @@ def start(self):
sg = threading.Thread(target=self.sub_gripper_status)
sp = threading.Thread(target=self.sub_pump_status)

pa.setDaemon(True)
pa.daemon = True
pa.start()
pb.setDaemon(True)
pb.daemon = True
pb.start()
sa.setDaemon(True)
sa.daemon = True
sa.start()
sb.setDaemon(True)
sb.daemon = True
sb.start()
sg.setDaemon(True)
sg.daemon = True
sg.start()
sp.setDaemon(True)
sp.daemon = True
sp.start()

pa.join()
Expand Down
12 changes: 6 additions & 6 deletions mycobot_communication/mycobot_communication/mycobot_topics_pi.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,17 +100,17 @@ def start(self):
sg = threading.Thread(target=self.sub_gripper_status)
sp = threading.Thread(target=self.sub_pump_status)

pa.setDaemon(True)
pa.daemon = True
pa.start()
pb.setDaemon(True)
pb.daemon = True
pb.start()
sa.setDaemon(True)
sa.daemon = True
sa.start()
sb.setDaemon(True)
sb.daemon = True
sb.start()
sg.setDaemon(True)
sg.daemon = True
sg.start()
sp.setDaemon(True)
sp.daemon = True
sp.start()

pa.join()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,17 +98,17 @@ def start(self):
sg = threading.Thread(target=self.sub_gripper_status)
sp = threading.Thread(target=self.sub_pump_status)

pa.setDaemon(True)
pa.daemon = True
pa.start()
pb.setDaemon(True)
pb.daemon = True
pb.start()
sa.setDaemon(True)
sa.daemon = True
sa.start()
sb.setDaemon(True)
sb.daemon = True
sb.start()
sg.setDaemon(True)
sg.daemon = True
sg.start()
sp.setDaemon(True)
sp.daemon = True
sp.start()

pa.join()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,17 +86,17 @@ def start(self):
sg = threading.Thread(target=self.sub_gripper_status)
sp = threading.Thread(target=self.sub_pump_status)

pa.setDaemon(True)
pa.daemon = True
pa.start()
pb.setDaemon(True)
pb.daemon = True
pb.start()
sa.setDaemon(True)
sa.daemon = True
sa.start()
sb.setDaemon(True)
sb.daemon = True
sb.start()
sg.setDaemon(True)
sg.daemon = True
sg.start()
sp.setDaemon(True)
sp.daemon = True
sp.start()

pa.join()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,17 +88,17 @@ def start(self):
sg = threading.Thread(target=self.sub_gripper_status)
sp = threading.Thread(target=self.sub_pump_status)

pa.setDaemon(True)
pa.daemon = True
pa.start()
pb.setDaemon(True)
pb.daemon = True
pb.start()
sa.setDaemon(True)
sa.daemon = True
sa.start()
sb.setDaemon(True)
sb.daemon = True
sb.start()
sg.setDaemon(True)
sg.daemon = True
sg.start()
sp.setDaemon(True)
sp.daemon = True
sp.start()

pa.join()
Expand Down
18 changes: 9 additions & 9 deletions ultraArm/ultraArm_Testtool/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def build_code(self):
build_mes = 'start build...'
self.textBrowser.append('[' + str(current_time) + ']' + ' ' + build_mes)
t1 = threading.Thread(target=self.start_bulid)
t1.setDaemon(True)
t1.daemon = True
t1.start()

def start_bulid(self):
Expand All @@ -80,25 +80,25 @@ def run_program(self):
if self.comboBox.currentText() == 'rviz2':
self.textBrowser.append('[' + str(current_time) + ']' + ' ' + 'start test.....')
t1 = threading.Thread(target=self.rviz_test)
t1.setDaemon(True)
t1.daemon = True
t1.start()

elif self.comboBox.currentText() == '滑块控制':
self.textBrowser.append('[' + str(current_time) + ']' + ' '+ 'start slider control......')
t1 = threading.Thread(target=self.rviz_test)
t1.setDaemon(True)
t1.daemon = True
t1.start()
else:
if self.comboBox.currentText() == 'rviz2':
self.textBrowser.append('[' + str(current_time) + ']' + ' ' + 'start test.....')
t1 = threading.Thread(target=self.rviz_test)
t1.setDaemon(True)
t1.daemon = True
t1.start()

elif self.comboBox.currentText() == 'slider control':
self.textBrowser.append('[' + str(current_time) + ']' + ' '+ 'start slider control......')
t1 = threading.Thread(target=self.rviz_test)
t1.setDaemon(True)
t1.daemon = True
t1.start()

except Exception as e:
Expand Down Expand Up @@ -127,23 +127,23 @@ def close_rviz(self):
if self.comboBox.currentText() == 'rviz2':
self.textBrowser.append('[' + str(current_time) + ']' + ' ' + 'rviz2 test closed ! ! !')
t1 = threading.Thread(target=self.close_test)
t1.setDaemon(True)
t1.daemon = True
t1.start()
elif self.comboBox.currentText() == '滑块控制':
self.textBrowser.append('[' + str(current_time) + ']' + ' ' + 'slider control closed ! ! !')
t1 = threading.Thread(target=self.close_test)
t1.setDaemon(True)
t1.daemon = True
t1.start()
else:
if self.comboBox.currentText() == 'rviz2':
self.textBrowser.append('[' + str(current_time) + ']' + ' ' + 'rviz2 test closed ! ! !')
t1 = threading.Thread(target=self.close_test)
t1.setDaemon(True)
t1.daemon = True
t1.start()
elif self.comboBox.currentText() == 'slider control':
self.textBrowser.append('[' + str(current_time) + ']' + ' ' + 'slider control closed ! ! !')
t1 = threading.Thread(target=self.close_test)
t1.setDaemon(True)
t1.daemon = True
t1.start()

except Exception as e:
Expand Down