-
Notifications
You must be signed in to change notification settings - Fork 102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SDFormat URDF to SDF converter silently set to identity sensor pose if sensor is attached to lumped link #378
Comments
Upstream issue: robotology/icub-models-generator#140 . |
I can see this behavior with |
I've just published a related fix for |
The fix from #525 has been released into libsdformat 10.4.0. But I'm not sure if it fixed this issue or not. Moreover, the issue was reported to Gazebo 11, which uses libsdformat 9. |
potential fix in #1114 |
When converting a fixed joint in a URDF file to SDFormat, by default the contents of the child link are merged into the parent link, but poses in gazebo extensions such as //gazebo/sensor/pose are not properly transformed (#378). This issue has already been fixed in newer branches by #525, so the test and that fix have been backported and refactored to reduce code duplication (about 30 lines removed from parser_urdf.cc) and also fix the treatment of //gazebo/light/pose. Fixes #378. Signed-off-by: Steve Peters <[email protected]>
fixed by #1114 |
Thanks @scpeters ! |
you're welcome! sorry it took so long 😅 |
The SDFormat URDF to SDF converter if fixed joints are present in the URDF, fuses the child link with its parent, transferring all the information from the lumped link to the remaining link. However, it seems that due to a bug the sensor pose are not correctly propagated.
The issue is clear with this example (done with Gazebo 11.1). Let's say that we have two URDF files:
model_sensor_on_root_link.urdf
:model_sensor_on_base_link.urdf
:The only difference between the two files is the line
<gazebo reference="root_link">
and<gazebo reference="base_link">
in another. The URDF files can be converted to SDF with the following command:that results in the following output:
model_sensor_on_root_link.urdf
:model_sensor_on_base_link.sdf
:The difference between this two files:
So it is possible to see that in the
model_sensor_on_base_link.sdf
case works fine, while in the case ofmodel_sensor_on_root_link.sdf
the pose of the sensor is silently set to the identity.The text was updated successfully, but these errors were encountered: