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
But we rarely call this function with Eigen::Ref.
Instead, we use to write the following:
Eigen::VectorXd q = randomConfiguration(model);
Eigen::VectorXd v = Eigen::VectorXd::Zero(model.nv);
Eigen::VectorXd tau = Eigen::VectorXd::Zero(model.nv);
Eigen::VectorXd a = pinocchio::aba(model, data, q, v, tau);
This code will then rebuild the ABA function, with the following signature that mismatch the one explicitly template instantiated:
When using explicit template instantiation we heavily use
Eigen::Ref
as Matrix reference to avoid copy.As an example, here the explicit template instantiation of the ABA function:
But we rarely call this function with Eigen::Ref.
Instead, we use to write the following:
This code will then rebuild the ABA function, with the following signature that mismatch the one explicitly template instantiated:
We can avoid this issue by forcing the use of Eigen::Ref:
But it's really easy to call a different signature.
We should find a way to safely call an explicit template instantiation.
This will improve:
The text was updated successfully, but these errors were encountered: