
-
Get measures from the joint:
-
Extract transient values for this measure:
-
Get angle derivatives by extracting the time derivatives of the measure:
-
Count the number of components of this array:
-
Open the ASCII output file:
-
Loop over all time values, and write values:
-
Check if joint is « revert » or not:
-
Extract force measurements and write them to the file:
-
Get the joint reference coordinate system, and rotate the forces from the global coordinate system to the joint coordinate system: