urdf2webots icon indicating copy to clipboard operation
urdf2webots copied to clipboard

Converter prunes URDF branches of sensors

Open astumpf opened this issue 3 years ago • 2 comments

Unfortunately, I found out about this problem only recently. But latest version of the converter is pruning important (static/fixed) links from the URDF where sensors are attached. In this specific case, the optical frames of cameras are truncated.

Current behavior:

Camera frame is supposed to be the optical link that is truncated by the converter. I suspect that Webot has a fallback to attach them to the root link as seen in the following screenshot.

Screenshot from 2022-06-27 18-02-35

Expected behavior:

Cheated by changing the URDF to set the camera frame to the last non-truncated link.

Screenshot from 2022-06-27 18-01-06

astumpf avatar Jun 27 '22 16:06 astumpf

The RemoveDummyLinksAndStaticBaseFlag function doesn't check if a link has sensors, as they haven't been parsed at that point. Additionally a preserveFixedJoint or preserveLink tag would be needed in case some frames are needed in ros applications.

FrederikBark avatar Jul 05 '22 16:07 FrederikBark

This issue is currently a major blocker when working with Webots. Any hint or ideas to fix it?

astumpf avatar Aug 08 '22 08:08 astumpf

Solved with #189

astumpf avatar Oct 06 '22 09:10 astumpf