Skip to content

Conversation

scpeters
Copy link
Member

➡️ Forward port

Port sdf15 to main

Part of gazebosim/gz-jetty#17, gazebosim/gz-jetty#112.

Branch comparison: main...sdf15

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

nkoenig and others added 17 commits November 18, 2024 13:35
* Prepare for sdf 14.6.0

Signed-off-by: Nate Koenig <natekoenig@gmail.com>

---------

Signed-off-by: Nate Koenig <natekoenig@gmail.com>
This avoids an unnecessary CMake warning on builds where tests are
disabled, such as [sdformat_vendor](https://github.com/gazebo-release/sdformat_vendor)

Signed-off-by: Addisu Z. Taddese <addisu@openrobotics.org>
Co-authored-by: Steve Peters <scpeters@openrobotics.org>
(cherry picked from commit 9661794)
#1422)

The ability to automatically compute inertial values by setting
the `//inertial/@auto` attribute to true is very convenient, but it
is difficult to see what inertial values were computed. This adds
an `--expand-auto-inertials` argument to `gz sdf --print` to
show the auto-computed inertial values in the printed output.
Note that it does not compute inertial values for mesh shapes.

To enable this behavior, a new enum value
SAVE_CALCULATION_IN_ELEMENT is added to
ConfigureResolveAutoInertials in ParserConfig.hh, and the Link
will store auto-computed inertial values directly in its
sdf::Element when this configuration is set.

Signed-off-by: Steve Peters <scpeters@openrobotics.org>
(cherry picked from commit 3f84210)
Support auto-inertia computation using mass and density. Implemented based on the suggestions in #1482. Inertia is first auto resolved from all collisions as usual. If mass is specified, we normalize the inertia to get unit inertia, then scaling is applied to match the desired mass.

---------

Signed-off-by: Steve Peters <scpeters@openrobotics.org>
Signed-off-by: Ian Chen <ichen@openrobotics.org>
Co-authored-by: Steve Peters <scpeters@openrobotics.org>
(cherry picked from commit aaadeea)
Signed-off-by: Addisu Z. Taddese <addisu@openrobotics.org>
If CalculateInertial fails to find valid inertial values,
report an error by default, but allow users to choose
a policy that uses default inertial values with a warning
instead of a hard failure.

The policy is used in Collision::CalculateInertial and tested.

Signed-off-by: Steve Peters <scpeters@openrobotics.org>
Signed-off-by: Ian Chen <ichen@openrobotics.org>
Co-authored-by: Ian Chen <ichen@openrobotics.org>
(cherry picked from commit 39826d4)
The value of this variable may change if other code paths
call find_package(Python3), so move the warning to be
co-located with the add_subdirectory call.

Signed-off-by: Steve Peters <scpeters@openrobotics.org>
(cherry picked from commit 25c4dc0)
Part of gazebo-tooling/release-tools#1288

Signed-off-by: Jose Luis Rivero <jrivero@honurobotics.com>
This adds AxisAlignedBox support for SDF geometries. Now
each volumetric geometry type such as Box, Capsule, Cone,
Cylinder, Ellipsoid, Sphere, and Mesh has an AxisAlignedBox()
function that computes its bounding box from the geometry
dimensions. The Geometry class uses these functions to
determine the correct AABB, allowing a custom calculator for
meshes , which is a special case since no mesh loading is
performed in the sdf::Mesh class.

Signed-off-by: Gabriel Pacheco <gabriel.fpacheco@gmail.com>
(cherry picked from commit e073ffa)
Check embedSdf.py return code and print stderr on failure.
Partial backport of #1549.

Signed-off-by: Steve Peters <scpeters@openrobotics.org>
Signed-off-by: Ian Chen <ichen@openrobotics.org>
Signed-off-by: Silvio Traversaro <silvio@traversaro.it>
Co-authored-by: Steve Peters <scpeters@openrobotics.org>
(cherry picked from commit 71fe504)
…1509)

Signed-off-by: Silvio Traversaro <silvio@traversaro.it>
(cherry picked from commit 4ebe022)
@github-project-automation github-project-automation bot moved this from Inbox to In review in Core development Aug 13, 2025
@azeey azeey merged commit 7da5670 into main Aug 13, 2025
15 checks passed
@azeey azeey deleted the scpeters/merge_15_main branch August 13, 2025 02:55
@github-project-automation github-project-automation bot moved this from In review to Done in Core development Aug 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🪵 jetty Gazebo Jetty

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

7 participants