removed print
Signed-off-by: Jakub Delicat <delicat.kuba@gmail.com>
This commit is contained in:
parent
b08d9a4254
commit
978b9026bd
@ -77,7 +77,6 @@ class MasterPlugin(Plugin):
|
||||
|
||||
def handle_master_stop_state_updated(self):
|
||||
"""Handles master stop state when it changes e. g. on button click and confirmed."""
|
||||
print("woking!!!")
|
||||
if self._master_info.master_stop_state == SS.RUNNING:
|
||||
self.master_stopped()
|
||||
elif self._master_info.master_stop_state == SS.STOPPED:
|
||||
|
@ -100,7 +100,6 @@ class QtWrapper:
|
||||
self.restrictions_updated_callback = callback_function
|
||||
|
||||
def handle_restrictions_update(self):
|
||||
print("double?")
|
||||
distance = float(self.widget.distanceSlider.value()) / 100
|
||||
angular_velocity = float(self.widget.angularSlider.value()) / 100
|
||||
linear_velocity = float(self.widget.linearSlider.value()) / 100
|
||||
@ -124,15 +123,18 @@ class QtWrapper:
|
||||
self.set_sliders_to_initial_values()
|
||||
|
||||
def handle_master_stop_button_clicked(self):
|
||||
print("CLick\t")
|
||||
# self.master_stop_state_updated_callback()
|
||||
# if self.master_stop_state == SS.RUNNING:
|
||||
# print("Klikam aby zablokować")
|
||||
# self.master_stop_state_updated_callback()
|
||||
# else:
|
||||
# reply = QMessageBox.warning(self.widget,"UWAGA","Na pewno chcesz odblokować wszystkie roboty?",QMessageBox.Yes,QMessageBox.No)
|
||||
# if reply == QMessageBox.Yes:
|
||||
# self.master_stop_state_updated_callback()
|
||||
if self.master_stop_state == SS.RUNNING:
|
||||
self.master_stop_state_updated_callback()
|
||||
else:
|
||||
reply = QMessageBox.warning(
|
||||
self.widget,
|
||||
"UWAGA",
|
||||
"Na pewno chcesz odblokować wszystkie roboty?",
|
||||
QMessageBox.Yes,
|
||||
QMessageBox.No,
|
||||
)
|
||||
if reply == QMessageBox.Yes:
|
||||
self.master_stop_state_updated_callback()
|
||||
|
||||
def display_master_stop_on(self):
|
||||
self.widget.masterstopButton.setStyleSheet(
|
||||
|
Loading…
Reference in New Issue
Block a user