Go to the documentation of this file.00001
00002
00003 import roslib; roslib.load_manifest('kelsey_sandbox')
00004 import rospy
00005 import roslib.message
00006 import rosbag
00007 import sys
00008 import rosservice
00009 from datetime import datetime
00010 from hrl_lib.util import save_pickle
00011 import yaml
00012
00013
00014
00015
00016 if __name__ == "__main__":
00017 service_args = []
00018 for arg in sys.argv[2:]:
00019 if arg == '':
00020 arg = "''"
00021 service_args.append(yaml.load(arg))
00022 req, resp = rosservice.call_service(sys.argv[1], service_args)
00023 a = datetime.now().isoformat('-')
00024 name = '-'.join(a.split(':')).split('.')[0]
00025 save_pickle(resp, sys.argv[1].split('/')[-1] + name + ".pickle")
00026