本文整理汇总了Python中PyPR2.moveHeadTo方法的典型用法代码示例。如果您正苦于以下问题:Python PyPR2.moveHeadTo方法的具体用法?Python PyPR2.moveHeadTo怎么用?Python PyPR2.moveHeadTo使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PyPR2
的用法示例。
在下文中一共展示了PyPR2.moveHeadTo方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: refill
# 需要导入模块: import PyPR2 [as 别名]
# 或者: from PyPR2 import moveHeadTo [as 别名]
def refill():
PyPR2.moveArmWithJointPos(**left_intermediate)
PyPR2.moveHeadTo(0.1,0.3)
time.sleep(3)
PyPR2.moveArmWithJointPos(**right_refill)
PyPR2.moveHeadTo(-0.7,0.3)
time.sleep(3)
PyPR2.moveHeadTo(-0.2,0.3)
PyPR2.moveArmWithJointPos(**left_refill)
time.sleep(4)
PyPR2.moveArmWithJointPos(**right_pick)
PyPR2.moveHeadTo(-0.2,0.19)
time.sleep(2)
PyPR2.closeGripper(2)
time.sleep(3)
PyPR2.moveArmWithJointPos(**right_pick_further)
time.sleep(2)
PyPR2.moveArmWithJointPos(**left_pick_further)
time.sleep(4)
PyPR2.moveArmWithJointPos(**r2)
PyPR2.moveArmWithJointPos(**l2)
示例2: revolve_acw
# 需要导入模块: import PyPR2 [as 别名]
# 或者: from PyPR2 import moveHeadTo [as 别名]
def revolve_acw():
(a,b) = PyPR2.getHeadPos()
#PyPR2.say("searching")
PyPR2.moveHeadTo(a-0.3,0.0)
示例3: alt_bow_arrow
# 需要导入模块: import PyPR2 [as 别名]
# 或者: from PyPR2 import moveHeadTo [as 别名]
def alt_bow_arrow():
PyPR2.openGripper(2)
PyPR2.moveHeadTo(0.0,0.15)
PyPR2.moveArmWithJointPos(**left_shooting)
PyPR2.openGripper(2)
time.sleep(2)
PyPR2.moveHeadTo(0.0,0.0)
PyPR2.moveArmWithJointPos(**alt_right_intermediate)
PyPR2.moveHeadTo(0.0,0.3)
time.sleep(3)
PyPR2.moveArmWithJointPos(**alt_right_shooting)
time.sleep(3)
PyPR2.closeGripper(2)
time.sleep(2)
PyPR2.moveHeadTo(0.0,0.18)
PyPR2.moveArmWithJointPos(**best_pullback_right)
time.sleep(5)
PyPR2.moveHeadTo(0.0,0.1)
PyPR2.openGripper(2)
#PyPR2.moveHeadTo(0.0,0.0)
PyPR2.moveArmWithJointPos(**alt_right_release)
PyPR2.moveHeadTo(0.0,0.1)