def run(self):
rate = rospy.Rate(5.0)
while not rospy.is_shutdown():
try:
#listener("Game_MAKI")
if self.key == True:
print 'last_msg', self.last_msg
print 'current_msg', self.current_msg
print 'task', self.task, self.colorTask
#dm = RobotManager()
###working area April 6th
for elem in self.task:
self.dm.say(elem, wait = True)
self.task = []
self.last_msg = self.current_msg
self.lastColor = self.currentColor
self.key = False
###
except rospy.ROSInterruptException:
pass
rate.sleep()
评论列表
文章目录