00001 #!/usr/bin/python 00002 00003 import roslib 00004 roslib.load_manifest('cob_script_server') 00005 import rospy 00006 00007 from simple_script_server import script 00008 00009 class TestScript(script): 00010 00011 def Initialize(self): 00012 self.sss.init("arm") 00013 00014 def Run(self): 00015 ### 00016 #the cartesian position needs to be with respect to /base_footprint 00017 # 00018 #ADD-ON: use another parameter to specify the reference frame and do transformation in cob_script_server::move_cart_planned 00019 ### 00020 self.sss.move_cart("arm",["base_link",[1.2, 0.0, 1.0],[0, -1.5708, 0]]) 00021 00022 00023 00024 if __name__ == "__main__": 00025 SCRIPT = TestScript() 00026 SCRIPT.Start() 00027