How is it possible to vary joint stiffness of robot models dynamically?
I am trying to simulate a 7 dof robotic arm in which links are connected through tendons. In fact, in the Gazebo model, the links of the arm do not have any physical tendon like connectors. My plan to is to simulate effects of tendon on the robot by changing joint stiffness/damping parameters. I understood that joint stiffness/damping can be changed in SDF or URDF of the robot. This is a method of varying parameter statically. However, I want to change these properties dynamically while a gripping task is being carried out by the arm. To be more precise, if a joint angle between the links of the arm varies from zero to 90 degrees, stiffness should also be varied dynamically (proportional variation of stiffness with angle is also desirable). In other words, if the arm lies in a relaxed position stiffness should be less and if arm is stretched, the stiffness should be high. Does Gazebo simulation allow dynamic variation of stiffness properties? If yes, would anyone explain how? if no, kindly suggest alternative methods to achieve this?