You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the context of URDF files, "fake" links (i.e. links attached to their parent with a fixed joint and without any inertial tag) are commonly used to represent frames, as no "frame" concept is present in URDF (see https://discourse.ros.org/t/urdf-ng-link-and-frame-concepts/56).
This is possible as the URDF specification (http://wiki.ros.org/urdf/XML/link) clearly specify that for the inertial element the following hold:
(optional: defaults to a zero mass and zero inertia if not specified)
urdf-modifiers however does not seem to respect this, and expands "fake" links to links with unit mass and unit inertia.
Minimal Reproducible Example
In this example, we have a simple model with a real link and a fake link. If this is loaded and saved back to file when using urdf-modifiers, the mass of the model is duplicated.
How to run:
git clone https://gist.github.com/traversaro/b251019c117c14faee9d9808ac46600b
cd b251019c117c14faee9d9808ac46600b
python test.py
I am afraid that this bug is actually in urdpy . If this is the case, the problem is that urdfpy does not seems to be really responsive to upstream PRs, so once we have a fix in urdfpy we may need to understand how to handle this.
In the context of URDF files, "fake" links (i.e. links attached to their parent with a fixed joint and without any inertial tag) are commonly used to represent frames, as no "frame" concept is present in URDF (see https://discourse.ros.org/t/urdf-ng-link-and-frame-concepts/56).
This is possible as the URDF specification (http://wiki.ros.org/urdf/XML/link) clearly specify that for the inertial element the following hold:
urdf-modifiers
however does not seem to respect this, and expands "fake" links to links with unit mass and unit inertia.Minimal Reproducible Example
In this example, we have a simple model with a real link and a fake link. If this is loaded and saved back to file when using
urdf-modifiers
, the mass of the model is duplicated.How to run:
test.py:
model_with_fake_links.py
:After running the script, the model (
model_with_fake_links_converted.urdf
) becames:The text was updated successfully, but these errors were encountered: