Definition of the inertia tensor
Consider the following two definitions of the Inertia tensor
Definition 1:
Definition 2:
Which of these two definitions, if any, does apply for the URDF specification for the link element here: http://wiki.ros.org/urdf/XML/link
Asked by felixcra on 2019-11-20 04:54:23 UTC
Answers
As far as I know Definition 2 is the one used by most implementation of URDF parsers, even if indeed this is technically left unspecified in the URDF "specification". Unfortunately, there is no issue tracker for the URDF specification itself (see https://github.com/ros/urdfdom_headers/issues/62), so no obvious place to debug this. Furthermore, note that even your definition are not completely unambiguous, as a definition for the meaning of the elements of the matrix and by the matrix itself should be provided to avoid confusion.
However, in my experience without a better reference the KDL URDF parser, one of the first libraries that uses this URDF tags, may be a good reference. There you can see that it seems that Definition 2 is used:
- https://github.com/ros/kdl_parser/blob/2.5.0/kdl_parser/src/kdl_parser.cpp#L111
- https://github.com/orocos/orocos_kinematics_dynamics/blob/v1.4.0/orocos_kdl/src/rotationalinertia.cpp#L30
Asked by Silvio Traversaro on 2021-04-06 08:00:01 UTC
Comments
Definition 1 is most commonly used one, but, I'm very much interested for the ros-experts to leave here an answer.
Asked by pmuthu2s on 2019-11-26 07:49:39 UTC