Esempio n. 1
0
    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))
Esempio n. 2
0
 def blink_rate(self, mean, variation):
     msg = BlinkCycle()
     msg.mean = mean
     msg.variation = variation
     self.blink_pub.publish(msg)
Esempio n. 3
0
	def blink_rate(self, mean, variation):
		msg = BlinkCycle()
		msg.mean = mean
		msg.variation = variation
		self.blink_pub.publish(msg)