Turns the stiffness on and off.
#-*- coding: iso-8859-15 -*-
'''Stiffness On: active stiffness of all joints and actuators'''
import config
def main():
motionProxy = config.loadProxy("ALMotion")
#We use the "Body" name to signify the collection of all joints
pNames = "Body"
pStiffnessLists = 1.0
pTimeLists = 1.0
motionProxy.stiffnessInterpolation(pNames, pStiffnessLists, pTimeLists)
# print motion state
print motionProxy.getSummary()
if __name__ == "__main__":
main()
Warning
Please make sure that the robot is not standing before trying this example.
#-*- coding: iso-8859-15 -*-
'''Stiffness Off: remove stiffness of all joints and actuators'''
import config
def main():
motionProxy = config.loadProxy("ALMotion")
#We use the "Body" name to signify the collection of all joints
pNames = "Body"
pStiffnessLists = 0.0
pTimeLists = 1.0
motionProxy.stiffnessInterpolation(pNames, pStiffnessLists, pTimeLists)
# print motion state
print motionProxy.getSummary()
if __name__ == "__main__":
main()