Go to the documentation of this file.00001
00002
00003 import roslib; roslib.load_manifest('pr2_sith')
00004 import rospy
00005 from pr2_precise_trajectory.full_controller import FullPr2Controller
00006 import sys
00007 import yaml
00008
00009 if __name__ == '__main__':
00010 rospy.init_node('sith')
00011
00012 scripts = []
00013 scripts.append(yaml.load( open("scripts/start%s.yaml"% sys.argv[1], 'r')))
00014 scripts.append(yaml.load( open("scripts/attack%s.yaml"%sys.argv[2], 'r')))
00015 scripts.append( scripts[0] )
00016
00017 controller = FullPr2Controller(['r'])
00018 controller.do_action(scripts)
00019