This PR fixes the non-deterministic test failure discussed in https://github.com/conda-forge/staged-recipes/pull/21894#issuecomment-1535488061 and https://github.com/ami-iit/ADAM/pull/38 .
The source of the non-determinism was the use of non-initialized memory, as a idyntree.bindings.Twist object was created, but never initialized to zero. In most of the cases their actual value was zero, but sometime its value was actually something else, resulting in a test failure. See the following code snippet for an example:
This PR fixes the non-deterministic test failure discussed in https://github.com/conda-forge/staged-recipes/pull/21894#issuecomment-1535488061 and https://github.com/ami-iit/ADAM/pull/38 . The source of the non-determinism was the use of non-initialized memory, as a
idyntree.bindings.Twist
object was created, but never initialized to zero. In most of the cases their actual value was zero, but sometime its value was actually something else, resulting in a test failure. See the following code snippet for an example: