Closed BuildingAtom closed 8 months ago
Hey @BuildingAtom , sorry I missed this issue! Can you file a PR with your changes? We should definitely support this use case
@fishbotics Sure thing! I just filed the PR.
Should be fixed by https://github.com/fishbotics/urchin/pull/14. Let me know if it's an issue.
Thanks for contributing!
When using urchin to load a URDF with older-style transmission tags, Urchin crashes with:
This appears to be caused by the assumption that
type
must be an element, most likely based on the current ROS page, but this causes a crash for some files as thetype
is an attribute of the node instead (some examples can be found in this discussion regarding the transmission tag linked by that ROS page).One possible fix for that that I'm using at the moment is to check the node attributes first. I expand and edit line 2078 of urdf.py so that the surrounding function now looks like:
Though, this also makes the type optional (since it seems like it might not be required anyway?).