Skip to content
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

Merge 13 ➡️ 14 #1359

Merged
merged 21 commits into from
Jan 27, 2024
Merged

Merge 13 ➡️ 14 #1359

merged 21 commits into from
Jan 27, 2024

Conversation

caguero
Copy link
Contributor

@caguero caguero commented Jan 26, 2024

➡️ Forward port

Port sdf13 to sdf14

Branch comparison: sdf14...sdf13

Note to maintainers: Remember to Merge with commit (not squash-merge or rebase)

aaronchongth and others added 21 commits May 10, 2023 10:44
When converting from URDF to SDFormat, some links without
an <inertial> block or a small mass may be dropped with only
debug messages in a log file, which are easily missed.
This makes the following changes:

* When a massless link in the middle of a kinematic chain is
  successfully merged to its parent by fixed joint reduction,
  fix bug that was dropping the massless link's child links and
  joints.
* Print no warnings or debug messages when a massless link
  is successfully merged to a parent by fixed joint reduction.
* Promote debug messages to warnings / errors when links
  are dropped to improve visibility. Improve message clarity
  and suggest fixes to the user.
* Change massless threshold test to `> 0` instead of being
  within a 1e-6 tolerance of 0.
* Add unit and integration tests.

Related to #199 and #1007.

(cherry picked from commit 6ffe669)

Signed-off-by: Aaron Chong <[email protected]>
Co-authored-by: Steve Peters <[email protected]>
Signed-off-by: Addisu Z. Taddese <[email protected]>
Signed-off-by: Addisu Z. Taddese <[email protected]>
Use a compile definition for setting `GZ_CONFIG_PATH`
* Use on `push` only on stable branches to avoid duplicate runs
* Update project automation

Signed-off-by: Addisu Z. Taddese <[email protected]>
Static builds of sdformat failbecause we are creating the using_parser_urdf target and linking it against the core library target, which is then exported. When the core library is built as a static library, CMake requires that other targets linked against it are exported as well (see https://stackoverflow.com/a/71080574/283225 case (2)).

The solution in this PR is to compile the URDF sources directly into the core library instead of creating an extra target. While working on this, I realized we could create a static library that includes all the extra sources needed for tests instead of building each test with its own extra sources. I believe this will marginally improve compilation time, but more importantly, I think it cleans up the CMake file and will make adding tests easier.

---------

Signed-off-by: Addisu Z. Taddese <[email protected]>
* Cherry-pick the python3 embedSdf script and tests (#884)

These won't be used as part of the cmake build on this branch, but are
useful for generating the same file from bazel.

Co-authored-by: Bi0T1N <[email protected]>
Co-authored-by: Michael Carroll <[email protected]>
Signed-off-by: Michael Carroll <[email protected]>

* Improvements to embedSdf script

Signed-off-by: Michael Carroll <[email protected]>

* Update sdf/CMakeLists.txt

Signed-off-by: Michael Carroll <[email protected]>

Co-authored-by: Addisu Z. Taddese <[email protected]>

* Update bazel files

Signed-off-by: Michael Carroll <[email protected]>

* Lint

Signed-off-by: Michael Carroll <[email protected]>

* Add utils back to parser

Signed-off-by: Michael Carroll <[email protected]>

* Fix gz_TEST

Signed-off-by: Michael Carroll <[email protected]>

* Ignore pycache folders

Signed-off-by: Michael Carroll <[email protected]>

* Fix parser_TEST

Signed-off-by: Michael Carroll <[email protected]>

* Bazel nits

Signed-off-by: Michael Carroll <[email protected]>

* Fix path logic

Signed-off-by: Michael Carroll <[email protected]>

* Fix visibility

Signed-off-by: Michael Carroll <[email protected]>

* Fix strings

Signed-off-by: Michael Carroll <[email protected]>

* Use standard vars

Signed-off-by: Michael Carroll <[email protected]>

* Fix string conversions

Signed-off-by: Michael Carroll <[email protected]>

* Fix string conversions

Signed-off-by: Michael Carroll <[email protected]>

* Fix embedded sdf

Signed-off-by: Michael Carroll <[email protected]>

* Fix converter test

Signed-off-by: Michael Carroll <[email protected]>

* Lint

Signed-off-by: Michael Carroll <[email protected]>

* Update bazel files

Signed-off-by: Michael Carroll <[email protected]>

* Add detail prefix

Signed-off-by: Michael Carroll <[email protected]>

* Fix test path

Signed-off-by: Michael Carroll <[email protected]>

* Set homepath on Windows

Signed-off-by: Michael Carroll <[email protected]>

---------

Signed-off-by: Michael Carroll <[email protected]>
Signed-off-by: Michael Carroll <[email protected]>
Co-authored-by: Bi0T1N <[email protected]>
Co-authored-by: Bi0T1N <[email protected]>
Co-authored-by: Addisu Z. Taddese <[email protected]>
Signed-off-by: Addisu Z. Taddese <[email protected]>
Signed-off-by: Addisu Z. Taddese <[email protected]>
Signed-off-by: Addisu Z. Taddese <[email protected]>
@github-actions github-actions bot added the 🎵 harmonic Gazebo Harmonic label Jan 26, 2024
Copy link

codecov bot commented Jan 26, 2024

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (4726a53) 92.41% compared to head (c3960a5) 92.40%.

Files Patch % Lines
src/SDF.cc 87.50% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##            sdf14    #1359      +/-   ##
==========================================
- Coverage   92.41%   92.40%   -0.01%     
==========================================
  Files         134      134              
  Lines       17669    17674       +5     
==========================================
+ Hits        16328    16332       +4     
- Misses       1341     1342       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@scpeters scpeters merged commit e7d7cef into sdf14 Jan 27, 2024
11 of 13 checks passed
@scpeters scpeters deleted the 13_to_14 branch January 27, 2024 00:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🎵 harmonic Gazebo Harmonic
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

7 participants