コード例 #1
0
def 
if __name__=='__main__':
    aicontrol = AIControl() 
    count=5
    while not rospy.is_shutdown() and not self.aicontrol.isFail(count):
        aicontrol.stop()
        count-=1
    rospy.sleep(5)
        
コード例 #2
0
ファイル: stop.py プロジェクト: ppipee/ros_homework
#!/usr/bin/python2

from aicontrol import AIControl as aicontrol
import rospy

global AIControl

if __name__=='__main__':
    aicontrol = AIControl()
    count=5
    while not rospy.is_shutdown():
        aicontrol.stop()
        count-=1
    rospy.sleep(5)