@Override()
def calculate(self):
    with BaseCalculator.LOCK[self._sub_topic]:
        current_vel = BaseCalculator.MSG[self._sub_topic]
    flag_test_ready = True
    if (current_vel == None):
        flag_test_ready = False
    if (flag_test_ready == True):
        msg = self.PubDict[self._pub_topic]()
        msg.header.stamp = rospy.Time.now()
        if (abs((self.compare_param - current_vel.data)) <= self.tolerance):
            msg.data = True
        else:
            msg.data = False
        self.PubDiag[self._pub_topic].publish(msg)
@Override()
def calculate(self):
    with BaseCalculator.LOCK[self._sub_topic]:
        current_vel = BaseCalculator.MSG[self._sub_topic]
    flag_test_ready = True
    if (current_vel == None):
        flag_test_ready = False
    if (flag_test_ready == True):
        msg = self.PubDict[self._pub_topic]()
        msg.header.stamp = rospy.Time.now()
        if (abs((self.compare_param - current_vel.data)) <= self.tolerance):
            msg.data = True
        else:
            msg.data = False
        self.PubDiag[self._pub_topic].publish(msg)