From c925f4e0939d05eb48c3b0737a97c22f2edd8bbc Mon Sep 17 00:00:00 2001 From: Olek Bojda Date: Wed, 19 Sep 2018 21:59:30 +0200 Subject: [PATCH] Releasing and handling connection loss works in user plugin --- safety_user_plugin/scripts/qt_wrapper.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/safety_user_plugin/scripts/qt_wrapper.py b/safety_user_plugin/scripts/qt_wrapper.py index eb32776..e797903 100644 --- a/safety_user_plugin/scripts/qt_wrapper.py +++ b/safety_user_plugin/scripts/qt_wrapper.py @@ -205,6 +205,9 @@ class QtWrapper: # self.widget.logsBrowser.append(str(self.logger_counter) + '\t[ERROR]\t' + error_text) def connection_to_robot_lost(self,lost_robot_id): + self.clear_robot_info() + self.disconnect_signals() + self.connect_signals() self.log_info('Utrata polaczenia z robotem PIONIER' + str(lost_robot_id))