open_house_demo.py 文件源码

python
阅读 17 收藏 0 点赞 0 评论 0

项目:maki_demo 作者: jgreczek 项目源码 文件源码
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()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号