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):
|
def handle_master_stop_state_updated(self):
|
||||||
"""Handles master stop state when it changes e. g. on button click and confirmed."""
|
"""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:
|
if self._master_info.master_stop_state == SS.RUNNING:
|
||||||
self.master_stopped()
|
self.master_stopped()
|
||||||
elif self._master_info.master_stop_state == SS.STOPPED:
|
elif self._master_info.master_stop_state == SS.STOPPED:
|
||||||
|
@ -100,7 +100,6 @@ class QtWrapper:
|
|||||||
self.restrictions_updated_callback = callback_function
|
self.restrictions_updated_callback = callback_function
|
||||||
|
|
||||||
def handle_restrictions_update(self):
|
def handle_restrictions_update(self):
|
||||||
print("double?")
|
|
||||||
distance = float(self.widget.distanceSlider.value()) / 100
|
distance = float(self.widget.distanceSlider.value()) / 100
|
||||||
angular_velocity = float(self.widget.angularSlider.value()) / 100
|
angular_velocity = float(self.widget.angularSlider.value()) / 100
|
||||||
linear_velocity = float(self.widget.linearSlider.value()) / 100
|
linear_velocity = float(self.widget.linearSlider.value()) / 100
|
||||||
@ -124,15 +123,18 @@ class QtWrapper:
|
|||||||
self.set_sliders_to_initial_values()
|
self.set_sliders_to_initial_values()
|
||||||
|
|
||||||
def handle_master_stop_button_clicked(self):
|
def handle_master_stop_button_clicked(self):
|
||||||
print("CLick\t")
|
if self.master_stop_state == SS.RUNNING:
|
||||||
# self.master_stop_state_updated_callback()
|
self.master_stop_state_updated_callback()
|
||||||
# if self.master_stop_state == SS.RUNNING:
|
else:
|
||||||
# print("Klikam aby zablokować")
|
reply = QMessageBox.warning(
|
||||||
# self.master_stop_state_updated_callback()
|
self.widget,
|
||||||
# else:
|
"UWAGA",
|
||||||
# reply = QMessageBox.warning(self.widget,"UWAGA","Na pewno chcesz odblokować wszystkie roboty?",QMessageBox.Yes,QMessageBox.No)
|
"Na pewno chcesz odblokować wszystkie roboty?",
|
||||||
# if reply == QMessageBox.Yes:
|
QMessageBox.Yes,
|
||||||
# self.master_stop_state_updated_callback()
|
QMessageBox.No,
|
||||||
|
)
|
||||||
|
if reply == QMessageBox.Yes:
|
||||||
|
self.master_stop_state_updated_callback()
|
||||||
|
|
||||||
def display_master_stop_on(self):
|
def display_master_stop_on(self):
|
||||||
self.widget.masterstopButton.setStyleSheet(
|
self.widget.masterstopButton.setStyleSheet(
|
||||||
|
Loading…
Reference in New Issue
Block a user