l1.5-safety-system/safety_master_plugin/scripts/master_callback_handler.py

21 lines
642 B
Python

from python_qt_binding.QtCore import QObject
from python_qt_binding.QtCore import pyqtSignal
from robot_info import RobotInfo
class CallbackHandler(QObject):
robot_info_signal = pyqtSignal(object)
add_robot_signal = pyqtSignal(int)
remove_robot_signal = pyqtSignal(int)
def __init__(self):
super(CallbackHandler, self).__init__()
def connect_robot_info_signal(self,slot):
self.robot_info_signal.connect(slot)
def connect_add_robot_signal(self,slot):
self.add_robot_signal.connect(slot)
def connect_remove_robot_signal(self,slot):
self.remove_robot_signal.connect(slot)