Implement new_safety_system
This commit is contained in:
parent
2b7c1ac615
commit
9e23df89a1
@ -28,7 +28,7 @@ class QtWrapper:
|
|||||||
|
|
||||||
if lang == 'eng':
|
if lang == 'eng':
|
||||||
self.language = ET
|
self.language = ET
|
||||||
self.log_info('Started english version of plugin NEW')
|
self.log_info('Started english version of plugin')
|
||||||
elif lang == 'pol':
|
elif lang == 'pol':
|
||||||
self.language = PT
|
self.language = PT
|
||||||
self.log_info('Polska wersja pluginu uruchomiona')
|
self.log_info('Polska wersja pluginu uruchomiona')
|
||||||
@ -335,4 +335,4 @@ class QtWrapper:
|
|||||||
self.widget.obstacleText.setText(self.language.obstacle_text)
|
self.widget.obstacleText.setText(self.language.obstacle_text)
|
||||||
self.widget.robotText.setText(self.language.robot_text)
|
self.widget.robotText.setText(self.language.robot_text)
|
||||||
self.widget.historyLabel.setText(self.language.history_text)
|
self.widget.historyLabel.setText(self.language.history_text)
|
||||||
self.widget.restrictionsLabel.setText(self.language.restrictions_text)
|
self.widget.restrictionsLabel.setText(self.language.restrictions_text)
|
@ -57,10 +57,10 @@ class ROSWrapper:
|
|||||||
if self.periodic_timer != None:
|
if self.periodic_timer != None:
|
||||||
self.shutdown_timer(self.periodic_timer)
|
self.shutdown_timer(self.periodic_timer)
|
||||||
self.periodic_timer = rospy.Timer(rospy.Duration(0.1),self.publish_periodic_update)
|
self.periodic_timer = rospy.Timer(rospy.Duration(0.1),self.publish_periodic_update)
|
||||||
print("NEW")
|
|
||||||
if self.connection_timer != None:
|
if self.connection_timer != None:
|
||||||
self.shutdown_timer(self.connection_timer)
|
self.shutdown_timer(self.connection_timer)
|
||||||
self.connection_timer = rospy.Timer(rospy.Duration(5),self.handle_robot_connection_lost)
|
self.connection_timer = rospy.Timer(rospy.Duration(1.5),self.handle_robot_connection_lost)
|
||||||
|
|
||||||
if self.master_connection_timer != None:
|
if self.master_connection_timer != None:
|
||||||
self.shutdown_timer(self.master_connection_timer)
|
self.shutdown_timer(self.master_connection_timer)
|
||||||
|
Loading…
Reference in New Issue
Block a user