为什么我不能使用 ALAnimationSpeech API 来让 Nao 做特定的手势,比如 ^start()

问题描述

animatedSpeechProxy = ALProxy("ALAnimatedSpeech","10.10.10.106",9559)
animatedSpeechProxy.declareAnimationsPackage("Stand")
animatedSpeechProxy.say("Hello! ^start(animations/Stand/Gestures/hey_1) Nice to meet you ^wait(animations/Stand/Gestures/hey_1)")

Nao 机器人可以在讲话时做随机手势(这些手势来自 ALAnimationSpeech认包),但它不能做我想让它做的特定手势。换句话说,我认为与 ^start() 中的路径相关的手势尚未找到。

我找到手势路径的方式:

path

path2

我的机器人坐着做手势。这会影响这个手势(^start(animations/Stand/Gestures/hey_1))的执行吗?

谁能帮我看看我哪里出错了?

解决方法

确切地说,如果机器人站立或坐着,动画会有所不同。 正如其路径所暗示的那样,动画 animations/Stand/Gestures/Hey_1 是针对机器人站立时的情况。

find an animationanimations/Sit/开头的路径。