#!/usr/bin/env python3

import sys
import time
import rospy
import ROS_controller
con = ROS_controller.controller()

tt = input("Please input sleep time[s] :")

try:
    tt = int(tt)
except:
    print("no integer...")
    sys.exit()

while not rospy.is_shutdown():
    con.drive("on")
    time.sleep(tt)
    con.drive("off")
    time.sleep(tt)

51d89de88732fb32e1226d638ecffc7e453f2566
<mask token>

<mask token>
try:
    tt = int(tt)
except:
    print('no integer...')
    sys.exit()
while not rospy.is_shutdown():
    con.drive('on')
    time.sleep(tt)
    con.drive('off')
    time.sleep(tt)

<mask token>
con = ROS_controller.controller()
tt = input('Please input sleep time[s] :')
try:
    tt = int(tt)
except:
    print('no integer...')
    sys.exit()
while not rospy.is_shutdown():
    con.drive('on')
    time.sleep(tt)
    con.drive('off')
    time.sleep(tt)

import sys
import time
import rospy
import ROS_controller
con = ROS_controller.controller()
tt = input('Please input sleep time[s] :')
try:
    tt = int(tt)
except:
    print('no integer...')
    sys.exit()
while not rospy.is_shutdown():
    con.drive('on')
    time.sleep(tt)
    con.drive('off')
    time.sleep(tt)

#!/usr/bin/env python3

import sys
import time
import rospy
import ROS_controller
con = ROS_controller.controller()

tt = input("Please input sleep time[s] :")

try:
    tt = int(tt)
except:
    print("no integer...")
    sys.exit()

while not rospy.is_shutdown():
    con.drive("on")
    time.sleep(tt)
    con.drive("off")
    time.sleep(tt)
