Open EveCharbie opened 4 months ago
@pariterre @Ipuch This is what I was thinking about for the "biorbd wrapper". I just did a proof of concept for pendulum.py to know what you guys think before I implement it for all biorbd functions. This way, we do not have to carry around mx_reduced and I think we do not need .mx anymore neither because everything can be called directly with .cx. It might get less clean when we add arguments which we cannot assume the shape (e.g. contact forces), but will still work.
I would advocate for a supplementary interface (BiorbdModelToCasadiFunc ?) to biorbd. An entire class that does this for every function called by biorbd so we don't have to change the current class BiorbdModel, BiorbdMultiModel, Holonomic etc ...
Also, every function of the models that do not through a MX, absolutely need to be fixed. I'm thinking about rotation matrices that are still objects of biorbd for example.
Good Job !
Most of the tests are passing, but now I would need to ask you some questions @pariterre and @Ipuch :)
This change is