00001
00002
00003
00004
00005 import subprocess as sp
00006 import sys
00007 import time
00008
00009 n = float(sys.argv[1])*60.0
00010 print "Calling mapping task every {0} seconds".format(n)
00011
00012 while True:
00013 sp.check_call("/opt/ros/electric/ros/bin/rosservice call --wait"
00014 " task_manager/add_task worldmodel_ops_passive_task", shell=True)
00015
00016 time.sleep(n)
00017
00018