stack-of-tasks / pinocchio

A fast and flexible implementation of Rigid Body Dynamics algorithms and their analytical derivatives
http://stack-of-tasks.github.io/pinocchio/
BSD 2-Clause "Simplified" License
1.82k stars 382 forks source link

Find a way to use homogenize parsing of models between SDF/URDF/MJCF #2433

Open MegMll opened 18 hours ago

MegMll commented 18 hours ago

Currently, Pinocchio supports multiple model formats such as URDF, SDF, and MJCF.

However, there is a lack of homogeneity in how these formats are parsed and handled.

Maybe we can try to think of a way to have some homogeneity in the way all these formats and future formats are parsed as pinocchio models, to avoid having a lot of overloaded buildModel functions.

jorisv commented 18 hours ago

We must provide an homogeneous API to read each format.

We must fix mjcf::buildModel and mjcf::buildModelFromXML that all read from a filename.