-
Notifications
You must be signed in to change notification settings - Fork 23
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
simmechanics-to-urdf bug when exporting frames with the same link name #275
simmechanics-to-urdf bug when exporting frames with the same link name #275
Comments
Good catch, the regression was in robotology/icub-models@bdcf4e4 . In #276 I enabled some tests that we only had in iCub3 to detect these kind of problems, but they are passing, so probably there is some bug in the tests. |
I started by doing two PRs that are related to this problem, even if now they just cleanup the test infrastructure to make sure that we will detect similar problems in the future: |
…URDF frames for a single simmechanics frame See robotology/simmechanics-to-urdf#62 Fix #275 .
Commit that fixed the problem: robotology/icub-models@3faa952 . |
Working on:
@Nicogene and I found a bug in
simmechanics-to-urdf
. We usediCubGazeboV2_7
model (icub-models on the latest devel) on Gazebo with ros2 nws since we wanted to visualize the model on RViz. Using the RViz plugin that allows to visualize the wrenches reading from the topic, we couldn't visualize anything and a bench of this error appeared in the RViz terminal:Looking at the latest version of the URDF, I noticed that the frame for both
l_arm_ft
andr_arm_ft
was missing, there was only the Gazebo tag. Looking into the YAML file used for generating the URDF, we realized that when we added the exportation of the IMUs for the FTs:which have the same name as the FT, the exported frame gets overwritten (in the YAML, the IMU export comes after the FT sensor export, so the IMU link is present in the URDF).
We patched it by exporting the FT frames of the arms as XML blobs:
This worked. For the time being, I could open a PR with the proposed changes.
For the future, another solution could be to revert this PR:
and the twins on robots-configuration and ergocub-software. In this way, the FT and the IMU would have the same name and the frame would be exported once for both.
cc @traversaro
The text was updated successfully, but these errors were encountered: