idyntree icon indicating copy to clipboard operation
idyntree copied to clipboard

Implement an extractor of OPW parameters from iDynTree::Model

Open traversaro opened this issue 5 years ago • 3 comments

As we have an extractor of DH parameters from iDynTree::Model, it would be nice to have a tool that would be able to extract OPW parameters (see their definition in https://github.com/Jmeyer1292/opw_kinematics) from 6-dofs iDynTree::Model . As in the DH case, the converter should give an error if the input model is not respecting the assumption provided in https://github.com/Jmeyer1292/opw_kinematics, in particular if the model does not have 6 dofs.

traversaro avatar Dec 07 '19 10:12 traversaro

almost no URDF is built with the DH representation. To me this extractor has to make sure to find an equivalent DH representation for a given URDF. That's a cool intership ;)

ahoarau avatar Dec 07 '19 12:12 ahoarau

To me this extractor has to make sure to find an equivalent DH representation for a given URDF. That's a cool intership ;)

I think we already have this, check the urdf2dh tool in https://github.com/robotology/idyntree/blob/master/src/tools/urdf2dh.cpp .

traversaro avatar Jan 30 '20 11:01 traversaro

Note that urdf2dh tools depends on YARP and ICUB, but that is just to output a YARP compatible .ini file, the core of the method is already part of https://github.com/robotology/idyntree/blob/master/src/model/include/iDynTree/Model/DenavitHartenberg.h and it has no dependencies (expect perhaps Eigen3). Creating a standalone urdf2dh command that just prints out the DH parameters or converts them to json format should be trivial. Now that I think of, these small utility executables are stuff that it could make sense to just distribute as statically linked executable for Win/Mac/Linux/Wasm to simplify their use.

traversaro avatar Jan 30 '20 11:01 traversaro