Skip to content

Commit 4277116

Browse files
authored
Merge pull request #33 from emmanuel-ferdman/humble
resolve daemon warnings for threading methods
2 parents 4b134f5 + c2d5f62 commit 4277116

File tree

12 files changed

+70
-70
lines changed

12 files changed

+70
-70
lines changed

mecharm/mecharm_communication/mecharm_communication/mecharm_topics.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -85,17 +85,17 @@ def start(self):
8585
sg = threading.Thread(target=self.sub_gripper_status)
8686
sp = threading.Thread(target=self.sub_pump_status)
8787

88-
pa.setDaemon(True)
88+
pa.daemon = True
8989
pa.start()
90-
pb.setDaemon(True)
90+
pb.daemon = True
9191
pb.start()
92-
sa.setDaemon(True)
92+
sa.daemon = True
9393
sa.start()
94-
sb.setDaemon(True)
94+
sb.daemon = True
9595
sb.start()
96-
sg.setDaemon(True)
96+
sg.daemon = True
9797
sg.start()
98-
sp.setDaemon(True)
98+
sp.daemon = True
9999
sp.start()
100100

101101
pa.join()

mecharm/mecharm_communication/mecharm_communication/mecharm_topics_jsnn.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -92,17 +92,17 @@ def start(self):
9292
sg = threading.Thread(target=self.sub_gripper_status)
9393
sp = threading.Thread(target=self.sub_pump_status)
9494

95-
pa.setDaemon(True)
95+
pa.daemon = True
9696
pa.start()
97-
pb.setDaemon(True)
97+
pb.daemon = True
9898
pb.start()
99-
sa.setDaemon(True)
99+
sa.daemon = True
100100
sa.start()
101-
sb.setDaemon(True)
101+
sb.daemon = True
102102
sb.start()
103-
sg.setDaemon(True)
103+
sg.daemon = True
104104
sg.start()
105-
sp.setDaemon(True)
105+
sp.daemon = True
106106
sp.start()
107107

108108
pa.join()

mecharm/mecharm_communication/mecharm_communication/mecharm_topics_pi.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -89,17 +89,17 @@ def start(self):
8989
sg = threading.Thread(target=self.sub_gripper_status)
9090
sp = threading.Thread(target=self.sub_pump_status)
9191

92-
pa.setDaemon(True)
92+
pa.daemon = True
9393
pa.start()
94-
pb.setDaemon(True)
94+
pb.daemon = True
9595
pb.start()
96-
sa.setDaemon(True)
96+
sa.daemon = True
9797
sa.start()
98-
sb.setDaemon(True)
98+
sb.daemon = True
9999
sb.start()
100-
sg.setDaemon(True)
100+
sg.daemon = True
101101
sg.start()
102-
sp.setDaemon(True)
102+
sp.daemon = True
103103
sp.start()
104104

105105
pa.join()

mecharm/mecharm_communication/mecharm_communication/mecharm_topics_seeed.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -87,17 +87,17 @@ def start(self):
8787
sg = threading.Thread(target=self.sub_gripper_status)
8888
sp = threading.Thread(target=self.sub_pump_status)
8989

90-
pa.setDaemon(True)
90+
pa.daemon = True
9191
pa.start()
92-
pb.setDaemon(True)
92+
pb.daemon = True
9393
pb.start()
94-
sa.setDaemon(True)
94+
sa.daemon = True
9595
sa.start()
96-
sb.setDaemon(True)
96+
sb.daemon = True
9797
sb.start()
98-
sg.setDaemon(True)
98+
sg.daemon = True
9999
sg.start()
100-
sp.setDaemon(True)
100+
sp.daemon = True
101101
sp.start()
102102

103103
pa.join()

mecharm/mecharm_pi/mecharm_pi/simple_gui.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@ def main(args=None):
463463
# -----------
464464

465465
# w = threading.Thread(target=Window(window).run())
466-
# w.setDaemon(True)
466+
# w.daemon = True
467467
# t.start()
468468
# w.start()
469469
# window.mainloop()

mycobot_communication/mycobot_communication/mycobot_topics.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -97,17 +97,17 @@ def start(self):
9797
sg = threading.Thread(target=self.sub_gripper_status)
9898
sp = threading.Thread(target=self.sub_pump_status)
9999

100-
pa.setDaemon(True)
100+
pa.daemon = True
101101
pa.start()
102-
pb.setDaemon(True)
102+
pb.daemon = True
103103
pb.start()
104-
sa.setDaemon(True)
104+
sa.daemon = True
105105
sa.start()
106-
sb.setDaemon(True)
106+
sb.daemon = True
107107
sb.start()
108-
sg.setDaemon(True)
108+
sg.daemon = True
109109
sg.start()
110-
sp.setDaemon(True)
110+
sp.daemon = True
111111
sp.start()
112112

113113
pa.join()

mycobot_communication/mycobot_communication/mycobot_topics_jsnn.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -104,17 +104,17 @@ def start(self):
104104
sg = threading.Thread(target=self.sub_gripper_status)
105105
sp = threading.Thread(target=self.sub_pump_status)
106106

107-
pa.setDaemon(True)
107+
pa.daemon = True
108108
pa.start()
109-
pb.setDaemon(True)
109+
pb.daemon = True
110110
pb.start()
111-
sa.setDaemon(True)
111+
sa.daemon = True
112112
sa.start()
113-
sb.setDaemon(True)
113+
sb.daemon = True
114114
sb.start()
115-
sg.setDaemon(True)
115+
sg.daemon = True
116116
sg.start()
117-
sp.setDaemon(True)
117+
sp.daemon = True
118118
sp.start()
119119

120120
pa.join()

mycobot_communication/mycobot_communication/mycobot_topics_pi.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -100,17 +100,17 @@ def start(self):
100100
sg = threading.Thread(target=self.sub_gripper_status)
101101
sp = threading.Thread(target=self.sub_pump_status)
102102

103-
pa.setDaemon(True)
103+
pa.daemon = True
104104
pa.start()
105-
pb.setDaemon(True)
105+
pb.daemon = True
106106
pb.start()
107-
sa.setDaemon(True)
107+
sa.daemon = True
108108
sa.start()
109-
sb.setDaemon(True)
109+
sb.daemon = True
110110
sb.start()
111-
sg.setDaemon(True)
111+
sg.daemon = True
112112
sg.start()
113-
sp.setDaemon(True)
113+
sp.daemon = True
114114
sp.start()
115115

116116
pa.join()

mycobot_communication/mycobot_communication/mycobot_topics_seeed.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -98,17 +98,17 @@ def start(self):
9898
sg = threading.Thread(target=self.sub_gripper_status)
9999
sp = threading.Thread(target=self.sub_pump_status)
100100

101-
pa.setDaemon(True)
101+
pa.daemon = True
102102
pa.start()
103-
pb.setDaemon(True)
103+
pb.daemon = True
104104
pb.start()
105-
sa.setDaemon(True)
105+
sa.daemon = True
106106
sa.start()
107-
sb.setDaemon(True)
107+
sb.daemon = True
108108
sb.start()
109-
sg.setDaemon(True)
109+
sg.daemon = True
110110
sg.start()
111-
sp.setDaemon(True)
111+
sp.daemon = True
112112
sp.start()
113113

114114
pa.join()

mypalletizer_260/mypalletizer_communication/mypalletizer_communication/mypalletizer_topics.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -86,17 +86,17 @@ def start(self):
8686
sg = threading.Thread(target=self.sub_gripper_status)
8787
sp = threading.Thread(target=self.sub_pump_status)
8888

89-
pa.setDaemon(True)
89+
pa.daemon = True
9090
pa.start()
91-
pb.setDaemon(True)
91+
pb.daemon = True
9292
pb.start()
93-
sa.setDaemon(True)
93+
sa.daemon = True
9494
sa.start()
95-
sb.setDaemon(True)
95+
sb.daemon = True
9696
sb.start()
97-
sg.setDaemon(True)
97+
sg.daemon = True
9898
sg.start()
99-
sp.setDaemon(True)
99+
sp.daemon = True
100100
sp.start()
101101

102102
pa.join()

mypalletizer_260/mypalletizer_communication/mypalletizer_communication/mypalletizer_topics_seeed.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -88,17 +88,17 @@ def start(self):
8888
sg = threading.Thread(target=self.sub_gripper_status)
8989
sp = threading.Thread(target=self.sub_pump_status)
9090

91-
pa.setDaemon(True)
91+
pa.daemon = True
9292
pa.start()
93-
pb.setDaemon(True)
93+
pb.daemon = True
9494
pb.start()
95-
sa.setDaemon(True)
95+
sa.daemon = True
9696
sa.start()
97-
sb.setDaemon(True)
97+
sb.daemon = True
9898
sb.start()
99-
sg.setDaemon(True)
99+
sg.daemon = True
100100
sg.start()
101-
sp.setDaemon(True)
101+
sp.daemon = True
102102
sp.start()
103103

104104
pa.join()

ultraArm/ultraArm_Testtool/main.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def build_code(self):
6666
build_mes = 'start build...'
6767
self.textBrowser.append('[' + str(current_time) + ']' + ' ' + build_mes)
6868
t1 = threading.Thread(target=self.start_bulid)
69-
t1.setDaemon(True)
69+
t1.daemon = True
7070
t1.start()
7171

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

8686
elif self.comboBox.currentText() == '滑块控制':
8787
self.textBrowser.append('[' + str(current_time) + ']' + ' '+ 'start slider control......')
8888
t1 = threading.Thread(target=self.rviz_test)
89-
t1.setDaemon(True)
89+
t1.daemon = True
9090
t1.start()
9191
else:
9292
if self.comboBox.currentText() == 'rviz2':
9393
self.textBrowser.append('[' + str(current_time) + ']' + ' ' + 'start test.....')
9494
t1 = threading.Thread(target=self.rviz_test)
95-
t1.setDaemon(True)
95+
t1.daemon = True
9696
t1.start()
9797

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

104104
except Exception as e:
@@ -127,23 +127,23 @@ def close_rviz(self):
127127
if self.comboBox.currentText() == 'rviz2':
128128
self.textBrowser.append('[' + str(current_time) + ']' + ' ' + 'rviz2 test closed ! ! !')
129129
t1 = threading.Thread(target=self.close_test)
130-
t1.setDaemon(True)
130+
t1.daemon = True
131131
t1.start()
132132
elif self.comboBox.currentText() == '滑块控制':
133133
self.textBrowser.append('[' + str(current_time) + ']' + ' ' + 'slider control closed ! ! !')
134134
t1 = threading.Thread(target=self.close_test)
135-
t1.setDaemon(True)
135+
t1.daemon = True
136136
t1.start()
137137
else:
138138
if self.comboBox.currentText() == 'rviz2':
139139
self.textBrowser.append('[' + str(current_time) + ']' + ' ' + 'rviz2 test closed ! ! !')
140140
t1 = threading.Thread(target=self.close_test)
141-
t1.setDaemon(True)
141+
t1.daemon = True
142142
t1.start()
143143
elif self.comboBox.currentText() == 'slider control':
144144
self.textBrowser.append('[' + str(current_time) + ']' + ' ' + 'slider control closed ! ! !')
145145
t1 = threading.Thread(target=self.close_test)
146-
t1.setDaemon(True)
146+
t1.daemon = True
147147
t1.start()
148148

149149
except Exception as e:

0 commit comments

Comments
 (0)