DefaultAction.PhotoWorthy.py
Go to the documentation of this file.
00001 from actions.Pr2MoveHeadAction import Pr2MoveHeadAction
00002 from actions.Pr2MoveLeftArmAction import Pr2MoveLeftArmAction
00003 from actions.Pr2MoveLeftGripperAction import Pr2MoveLeftGripperAction
00004 from actions.Pr2MoveRightArmAction import Pr2MoveRightArmAction
00005 from actions.Pr2MoveRightGripperAction import Pr2MoveRightGripperAction
00006 from actions.Pr2MoveTorsoAction import Pr2MoveTorsoAction
00007 from ActionSet import ActionSet
00008 
00009 class DefaultAction(ActionSet):
00010 
00011     def __init__(self):
00012         super(DefaultAction, self).__init__()
00013 
00014         head = Pr2MoveHeadAction()
00015         values = head.values()
00016         values[1] = 0
00017         head.set_values(values)
00018         self.add_action(head)
00019 
00020         torso = Pr2MoveTorsoAction()
00021         self.add_action(torso)
00022 
00023         lgrip = Pr2MoveLeftGripperAction()
00024         self.add_action(lgrip)
00025 
00026         rgrip = Pr2MoveRightGripperAction()
00027         self.add_action(rgrip)
00028 
00029         rarm = Pr2MoveRightArmAction()
00030         rvalues = rarm.values()
00031         rvalues[0] = -85
00032         rvalues[2] = -190
00033         rvalues[3] = -90
00034         rarm.set_values(rvalues)
00035         self.add_action(rarm)
00036 
00037         larm = Pr2MoveLeftArmAction()
00038         lvalues = larm.values()
00039         lvalues[0] = -rvalues[0]
00040         lvalues[2] = -rvalues[2]
00041         lvalues[3] = rvalues[3]
00042         larm.set_values(lvalues)
00043         self.add_action(larm)


slider_gui
Author(s): Dirk Thomas
autogenerated on Wed Aug 26 2015 15:37:50