Skip to content

Fix URDF fixed joint reduction of SDF joints#1089

Merged
scpeters merged 5 commits intosdf12from
scpeters/test_fixed_joint_reduction_joint_12
Jul 27, 2022
Merged

Fix URDF fixed joint reduction of SDF joints#1089
scpeters merged 5 commits intosdf12from
scpeters/test_fixed_joint_reduction_joint_12

Conversation

@scpeters
Copy link
Copy Markdown
Member

🦟 Bug fix

Part of #746, fixes bug in URDF parsing for libsdformat10+

Summary

This fixes the ReduceSDFExtensionJointFrameReplace function in the URDF parser and in a similar manner to #745. A test is added that fails without the fix in 5aabef4.

Checklist

  • Signed all commits for DCO
  • Added tests
  • Updated documentation (as needed)
  • Updated migration guide (as needed)
  • Consider updating Python bindings (if the library has them)
  • codecheck passed (See contributing)
  • All tests passed (See test coverage)
  • While waiting for a review on your PR, please help review another open pull request to support the maintainers

Note to maintainers: Remember to use Squash-Merge and edit the commit message to match the pull request summary while retaining Signed-off-by messages.

scpeters added 2 commits July 21, 2022 17:46
This adds a test case for a URDF with a chain of links
with fixed joint reduction and an SDFormat joint embedded
in a <gazebo> block whose parent link is one of the
reduced links. This confirms that the parent link name
is updated properly during fixed joint reduction.

Signed-off-by: Steve Peters <scpeters@openrobotics.org>
Repeat fix from #745 to account for the extra root
element in documents created with tinyxml2.

Signed-off-by: Steve Peters <scpeters@openrobotics.org>
@codecov
Copy link
Copy Markdown

codecov bot commented Jul 22, 2022

Codecov Report

Merging #1089 (de31761) into sdf12 (b86fdbb) will increase coverage by 0.20%.
The diff coverage is 100.00%.

❗ Current head de31761 differs from pull request most recent head bbed092. Consider uploading reports for the commit bbed092 to get more accurate results

@@            Coverage Diff             @@
##            sdf12    #1089      +/-   ##
==========================================
+ Coverage   86.27%   86.48%   +0.20%     
==========================================
  Files         109      109              
  Lines       16043    16043              
==========================================
+ Hits        13841    13874      +33     
+ Misses       2202     2169      -33     
Impacted Files Coverage Δ
src/parser_urdf.cc 84.97% <100.00%> (+1.97%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 42b101f...bbed092. Read the comment docs.

@chapulina chapulina added the bug Something isn't working label Jul 23, 2022
@scpeters scpeters merged commit f776995 into sdf12 Jul 27, 2022
@scpeters scpeters deleted the scpeters/test_fixed_joint_reduction_joint_12 branch July 27, 2022 21:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working 🏯 fortress Ignition Fortress

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants