You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Classes RobotUtil and ForceUtil have a get_id_from_name method which returns an id number given a name string. If the name is not found, -1 is returned.
However, the return type is Eigen::VectorXd::Index, which is a typedef for unsigned int.
Code using this methods checks that the result is less than zero, which will never work.
This is obviously a mistake. The return type should be int.
By the way, I do not really understand the need of these methods. We could directly work with Pinocchio models and use its methods.
The text was updated successfully, but these errors were encountered:
Classes
RobotUtil
andForceUtil
have aget_id_from_name
method which returns an id number given a name string. If the name is not found, -1 is returned.However, the return type is
Eigen::VectorXd::Index
, which is a typedef forunsigned int
.Code using this methods checks that the result is less than zero, which will never work.
This is obviously a mistake. The return type should be
int
.By the way, I do not really understand the need of these methods. We could directly work with Pinocchio models and use its methods.
The text was updated successfully, but these errors were encountered: