Skip to content

Conversation

gabrielfpacheco
Copy link
Contributor

@gabrielfpacheco gabrielfpacheco commented Mar 12, 2025

🎉 New feature

Follow-up of #2787

Summary

Computes the link bounding boxes for all link entities that have components::AxisAlignedBox present. The computation follows the same logic as the models bbox, but falls back to the SDF calculation introduced in #2787 in case the feature is not present for the selected physics plugin.

Test it

Run the following integration test:

./build/gz-sim9/bin/INTEGRATION_physics_system --gtest_filter=*LinkBoundingBox*

It will load bounding_boxes.sdf world (see below) and perform link AABB checks while the models free-fall until reaching the ground.

image

Note: after the previous PR is merged, this PR will rebase to gz-sim9 and be marked as ready to review

Checklist

  • Signed all commits for DCO
  • Added tests
  • Added example and/or tutorial
  • 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.

Copy link
Contributor

@iche033 iche033 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

did a first pass review, overall approach looks good

@iche033 iche033 added the needs upstream release Blocked by a release of an upstream library label Mar 14, 2025
@gabrielfpacheco gabrielfpacheco force-pushed the gp-link_aabb_physics_system branch from 1fed07c to 0595ea9 Compare March 14, 2025 20:52
@gabrielfpacheco
Copy link
Contributor Author

@iche033, I believe I addressed all your comments. If you agree with the proposed changes, could you please approve #2787 before? I would like to rebase this PR after the previous one is merged so that it focuses only on the physics system changes.

@iche033
Copy link
Contributor

iche033 commented Mar 26, 2025

@iche033, I believe I addressed all your comments. If you agree with the proposed changes, could you please approve #2787 before? I would like to rebase this PR after the previous one is merged so that it focuses only on the physics system changes.

Currently there's a build error as it needs the new API from sdformat. So I'm waiting for gazebosim/sdformat#1547 to be merged first. We also need a new sdformat release afterwards in order to run CI in #2787 and make sure everything is green. We can only approve and merge a PR when the required CI checks are green.

@gabrielfpacheco
Copy link
Contributor Author

So I'm waiting for gazebosim/sdformat#1547 to be merged first. We also need a new sdformat release afterwards in order to run CI in #2787 and make sure everything is green.

Yes, sure! I initially thought there might be a way to trigger the CI with dependent packages at specific branches, but then realized that the merge/release process is required, as you said.

Besides the dependency that prevents the proper CI checks, though, there are still some unresolved threads here from your first pass review, are those solved?

Regarding the sdformat PR, the CI is already green, and I believe all comments have been addressed. I've pinged the reviewers in gazebosim/sdformat#1547 (comment) recently, so I think we should be close to a merge.

@iche033
Copy link
Contributor

iche033 commented Mar 31, 2025

Besides the dependency that prevents the proper CI checks, though, there are still some unresolved threads here from your first pass review, are those solved?

yep looks good to me. Feel free to mark them as resolved once you address the comments.

@gabrielfpacheco gabrielfpacheco force-pushed the gp-link_aabb_physics_system branch from 270e71e to b5d6982 Compare April 1, 2025 20:51
@gabrielfpacheco gabrielfpacheco force-pushed the gp-link_aabb_physics_system branch 2 times, most recently from fa9726a to adfee80 Compare May 30, 2025 11:38
@gabrielfpacheco gabrielfpacheco force-pushed the gp-link_aabb_physics_system branch from 199e360 to 93770e3 Compare June 18, 2025 19:12
@gabrielfpacheco gabrielfpacheco marked this pull request as ready for review June 18, 2025 19:12
@gabrielfpacheco gabrielfpacheco requested a review from iche033 June 18, 2025 19:12
@gabrielfpacheco gabrielfpacheco force-pushed the gp-link_aabb_physics_system branch from e859bc8 to 0fb4002 Compare June 18, 2025 23:00
gabrielfpacheco and others added 2 commits July 7, 2025 17:48
Signed-off-by: Gabriel Pacheco <gabriel.fpacheco@gmail.com>

Add missing whitespace character to log message

Co-authored-by: Ian Chen <ichen@openrobotics.org>
Signed-off-by: Gabriel Pacheco <gabriel.fpacheco@gmail.com>
Signed-off-by: Gabriel Pacheco <gabriel.fpacheco@gmail.com>
@gabrielfpacheco gabrielfpacheco force-pushed the gp-link_aabb_physics_system branch from 0fb4002 to 90a65c4 Compare July 7, 2025 20:48
@gabrielfpacheco
Copy link
Contributor Author

@iche033, friendly ping :)

Copy link
Contributor

@iche033 iche033 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good!

@github-project-automation github-project-automation bot moved this from Inbox to In review in Core development Jul 7, 2025
@iche033 iche033 merged commit 716de42 into gazebosim:gz-sim9 Jul 7, 2025
14 checks passed
@github-project-automation github-project-automation bot moved this from In review to Done in Core development Jul 7, 2025
@iche033
Copy link
Contributor

iche033 commented Jul 7, 2025

@mergify backport gz-sim8

@mergify
Copy link
Contributor

mergify bot commented Jul 7, 2025

backport gz-sim8

✅ Backports have been created

mergify bot pushed a commit that referenced this pull request Jul 7, 2025
Computes the link bounding boxes for all link entities that have components::AxisAlignedBox present. The computation follows the same logic as the models bbox, but falls back to the SDF calculation introduced in #2787 in case the feature is not present for the selected physics plugin.

---------

Signed-off-by: Gabriel Pacheco <gabriel.fpacheco@gmail.com>
Co-authored-by: Ian Chen <ichen@openrobotics.org>
(cherry picked from commit 716de42)
iche033 added a commit that referenced this pull request Jul 8, 2025
Computes the link bounding boxes for all link entities that have components::AxisAlignedBox present. The computation follows the same logic as the models bbox, but falls back to the SDF calculation introduced in #2787 in case the feature is not present for the selected physics plugin.

---------

Signed-off-by: Gabriel Pacheco <gabriel.fpacheco@gmail.com>
Co-authored-by: Ian Chen <ichen@openrobotics.org>
(cherry picked from commit 716de42)
@gabrielfpacheco gabrielfpacheco deleted the gp-link_aabb_physics_system branch July 9, 2025 21:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🏛️ ionic Gazebo Ionic needs upstream release Blocked by a release of an upstream library

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants