Пример #1
0
def standFromSit(): # Stands from sit down position.
    config.stiffnessOn()   # Turns the stiffness on.
    motionProxy.angleInterpolationWithSpeed("Body", sit3(), 0.3)
    motionProxy.angleInterpolationWithSpeed("Body", sit4(), 0.3)
    motionProxy.angleInterpolationWithSpeed("Body", stand6(), 0.65)
    motionProxy.angleInterpolationWithSpeed("Body", sit1(), 0.4)
    motionProxy.angleInterpolationWithSpeed("Body", sit2(), 0.2)
    motionProxy.angleInterpolationWithSpeed("Body", poseInt(), 1.0)
    fallcheck.checkFall()
Пример #2
0
def sitDown():  # Sits down from standup position.
    config.stiffnessOn()   # Turns the stiffness on.
    motionProxy.angleInterpolationWithSpeed("Body", poseInt(), 1.0)
    motionProxy.angleInterpolationWithSpeed("Body", sit2(), 1.0)
    motionProxy.angleInterpolationWithSpeed("Body", sit1(), 0.4)
    motionProxy.angleInterpolationWithSpeed("Body", stand6(), 0.7)
    motionProxy.angleInterpolationWithSpeed("Body", sit4(), 0.4)
    motionProxy.angleInterpolationWithSpeed("Body", sit5(), 0.4)
    motionProxy.angleInterpolationWithSpeed("Body", sit3(), 1.0)
    fallcheck.checkFall()
Пример #3
0
def standUpOnFront(): # Stands up from its belly.
    config.stiffnessOn()   # Turns the stiffness on.
    motionProxy.angleInterpolationWithSpeed("Body", standUpFront(), 0.5)
    motionProxy.angleInterpolationWithSpeed("Body", standUpFront1(), 0.5)
    motionProxy.angleInterpolationWithSpeed("Body", standUpFront2(), 1.0)
    motionProxy.angleInterpolationWithSpeed("Body", standUpFront3(), 0.1)
    motionProxy.angleInterpolationWithSpeed("Body", standUpFront4(), 0.1)
    motionProxy.angleInterpolationWithSpeed("Body", standUpFront5(), 0.1)
    fallcheck.checkFall()
    standFromSit()
    print "standing front"
Пример #4
0
def standUp():  # Stand up from its back.
    config.stiffnessOn()   # Turns the stiffness on.
    motionProxy.angleInterpolationWithSpeed("Body", stand(), 1.0)
    motionProxy.angleInterpolationWithSpeed("Body", stand1(), 1.0)
    motionProxy.angleInterpolationWithSpeed("Body", stand2(), 1.0)
    motionProxy.angleInterpolationWithSpeed("Body", stand3(), 0.8)
    motionProxy.angleInterpolationWithSpeed("Body", stand4(), 0.8)
    motionProxy.angleInterpolationWithSpeed("Body", stand5(), 0.8)
    motionProxy.angleInterpolationWithSpeed("Body", stand6(), 0.8)
    motionProxy.angleInterpolationWithSpeed("Body", stand7(), 0.8)
    motionProxy.angleInterpolationWithSpeed("Body", stand8(), 0.8)
    motionProxy.angleInterpolationWithSpeed("Body", stand9(), 0.8)
    motionProxy.angleInterpolationWithSpeed("Body", poseInt(), 0.8)
    fallcheck.checkFall()
    print "standing back"