Is there anyone familiar with the python commands used in the Rigid Body module? I need to add a load to a joint 2 based on a moment measure from joint 1. Both joints are revolute and have defined stops so that they produce a reaction when loaded.
Now I think I have the right code because it works for the Case A, which is shown in the picture below. Case A is when the link is loaded by force, which produces a torque at joint T=F*L which complies with the joint probe and drives the second joint through the script.
But the problem is, that if I load the joint directly by moment, the script stops doing what is it supposed to be doing and the reaction read by the script is 0 (even if the joint probe shows the correct reaction). The same thing occurs if the first joint is loaded by an acceleration (M=alfa*I), I get 0 reaction by the script.
Do you have any idea how to make this work?
Please see the attached .wbzp project and the script below.