from naoqi import ALProxy
motionProxy=ALProxy("ALMotion",IP,port)
postureProxy=ALProxy("ALRobotPosture",IP,port)
握紧右手
# 用choregraphe调Arm中的六个参数,最后一个取值在0和1之间,1表示握紧手,0表示松开手
import almathpo
EffectorName="RHand"
Arm=[0.0,0.0,0.0,0.0,0.0,1.0]
Arm=[x*almath.TO_RAD for x in Arm]
Speed=0.5
motionProxy.angleInterpolationWithSpeed(EffectorName,Arm,Speed)
返回当前的动作。如果现在的动作不在默认的动作列表中时,则返回“Unknown”
postureProxy.getPosture()
查看默认的动作列表中全部的姿势**
postureProxy.getPostureList()
使机器人进入参数中要求的预定义姿势,可以改变移动的速度,具备智能效果(自动防摔等等)
postureName=""
Speed=0.5 (0到1之间)
postureProxy.goToPosture(postureName,Speed)
和上面的方法效果一样&#