24 lines
805 B
Python
24 lines
805 B
Python
NAME = "Cena"
|
|
|
|
|
|
def run(motion, tts):
|
|
tts.say("You can't see me")
|
|
|
|
motion.setStiffnesses("RArm", 1.0)
|
|
names = ["RShoulderPitch", "RShoulderRoll", "RElbowYaw", "RElbowRoll", "RWristYaw", "RHand"]
|
|
|
|
# Setup for tight, face-level sweep
|
|
tight_setup = [-0.4, -0.2, 0.0, 1.2, 1.5, 1.0]
|
|
motion.angleInterpolation(names, tight_setup, [0.5]*6, True)
|
|
|
|
# The horizontal "backhand" sweep
|
|
motion.angleInterpolation(["RElbowYaw"], [0.8], 0.4, True)
|
|
motion.angleInterpolation(["RElbowYaw"], [-0.8], 0.6, True)
|
|
motion.angleInterpolation(["RElbowYaw"], [0.0], 0.4, True)
|
|
|
|
# Return to neutral
|
|
neutral = [1.5, -0.15, 1.2, 0.5, 0.0, 0.0]
|
|
motion.angleInterpolationWithSpeed(names, neutral, 0.3)
|
|
# Relaxed stiffness after completion
|
|
motion.setStiffnesses("RArm", 0.3)
|