pinocchio icon indicating copy to clipboard operation
pinocchio copied to clipboard

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

Open MegMll opened this issue 1 year ago • 1 comments

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.

MegMll avatar Sep 24 '24 12:09 MegMll

We must provide an homogeneous API to read each format.

  • Some don't have argument in the same orders
  • There is many arguments
  • There is many version of the same function to avoid breaking the API. It's even worst in Python. We can maybe use the builder pattern to provide an API that can evolve without breaking the API and that manage lot of optional arguments.

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

jorisv avatar Sep 24 '24 13:09 jorisv