00001
00002
00003 import time
00004
00005 import roslib
00006 roslib.load_manifest('cob_script_server')
00007 import rospy
00008
00009 from simple_script_server import script
00010
00011 import tf
00012 from geometry_msgs.msg import *
00013
00014 class GraspScript(script):
00015
00016 def Initialize(self):
00017
00018
00019 self.sss.init("head")
00020
00021
00022 handle01 = self.sss.move("head","home")
00023 handle01.wait()
00024
00025 def Run(self):
00026 handle01=self.sss.move("head","nod");
00027 handle01.wait()
00028 handle01=self.sss.move("head","shake");
00029 handle01.wait()
00030
00031 if __name__ == "__main__":
00032 SCRIPT = GraspScript()
00033 SCRIPT.Start()