Open traversaro opened 5 years ago
Related KDL issue/comment: https://github.com/orocos/orocos_kinematics_dynamics/issues/130#issuecomment-366614268 .
what about adding the fake link in the code and not modifying the origin URDF file/parameter?
what about adding the fake link in the code and not modifying the origin URDF file/parameter?
That could be a solution, but as KDL::Tree supports inertia in the root segment, kdl_parser
could simply parse it and stop producing a warning.
but as KDL::Tree supports inertia in the root segment,
kdl_parser
could simply parse it and stop producing a warning.
Actually this is not completely correct. The existing KDL's API does not support setting the inertia of the RootSegment, https://github.com/rock-control/control-kdl_parser/commit/d1d25079daea51ab51f9301afd8c2235f13303d9 does it, but kind of hacking around API limitations via the use of const_cast
.
Original issue: https://github.com/ros/robot_model/issues/6 .
Both the C++ and the Python of the parser throw a warning when a URDF with an non-empty inertial element in its root link is parsed.
For example, the simple one link model:
creates a warning when parsed, and this is the reason why most URDFs files existing actually use a "fake" massless root link, for example: