cont_ops_cron.py
Go to the documentation of this file.
00001 #!/usr/bin/env python
00002 
00003 # Call the mapping task every N minutes 
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     


semanticmodel
Author(s): Julian ("Mac") Mason
autogenerated on Thu Dec 12 2013 12:39:10