ros/robot_model — pull request #66 by traversaro (2014-03-26 09:21:18+00:00)
Title: Fix bug in importing com if inertia and link frames are different

The URDF specification ( http://wiki.ros.org/urdf/XML/link ) specify that the center of mass is expressed in the link reference frame (as xyz of the origin element) while the inertia matrix is expressed in the "inertia reference frame" given by the origin element.

The current version of the parser is flawed because it rotates both the com and the inertia matrix, while only the inertia matrix should be rotated. I guess this went unnoticed because the large majority or URDF models uses an identity (rpy="0 0 0") for the rotational part of the "inertial" origin element.