Open traversaro opened 7 years ago
As it is missing the code with problem from issue, I try with the two following methods from ITorqueControl:
virtual bool yarp::dev::ITorqueControl::setRefTorque (int j,double t ) virtual bool yarp::dev::ITorqueControl::setRefTorques (const double * t)
I can confirm that they suffer for this issue if nan is the parameter.
Tests done with: 1)nan from the nan() API --> KO 2)inf from division by zero -->OK 3)pointer to double instead of array -->OK
If the controlboard receives a NaN torque, the simulation explodes.