def blink(self, mean, variation): """ Set the robot's blink cycle :param float mean: mean time in seconds between blinks :param float variation: a random deviation from the mean blink time in seconds :return: None """ msg = BlinkCycle() msg.mean = mean msg.variation = variation self.blink_pub.publish(msg) rospy.logdebug("published blink(mean={}, variation={})".format(mean, variation))
def blink_rate(self, mean, variation): msg = BlinkCycle() msg.mean = mean msg.variation = variation self.blink_pub.publish(msg)