python控制nao机器人身体动作实例详解
发布时间:2020-10-23 09:18:22
来源:脚本之家
阅读:89
本文实例为大家分享了python控制nao机器人身体动作的具体代码,供大家参考,具体内容如下
今天读的代码,顺便写了出来,与文档的对比,差不多。
import sys
import motion
import almath
import naoqi from ALProxy
def StiffnessOn(proxy):
pName="Body"
pStiffnessLists
pTime=1.0
proxy.stiffnessInterpolation(pName,pStiffnessLists,pTime)
def main(robotIP):
try:
motionProxy=ALProxy("ALMotion",robotIP,9559)
except Exception,e:
print:"could not create a proxy!"
print:"error is ",e
try:
postureProxy=ALProxy("ALRobotPosture",robotIP,9559)
except Exception,e:
print:"could not create a proxy!"
print:"error is ",e
Stiffnes