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

Compatibility with SDFormat 15 #12

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

chhtz
Copy link
Contributor

@chhtz chhtz commented Nov 27, 2024

At some version SDFormat replaced ignition::math:: by gz::math::v8::

https://community.gazebosim.org/t/a-new-era-for-gazebo/1356
https://gazebosim.org/docs/latest/migration_from_ignition/

Not sure about the v8 part of the namespace and how stable that will be ...

(it is an inline namespace). Removed it to improve upwards compatibility
@chhtz
Copy link
Contributor Author

chhtz commented Nov 27, 2024

Turns out, the v8:: can safely be removed

@chhtz
Copy link
Contributor Author

chhtz commented Nov 27, 2024

Finding sdformat could also be done with:

pkg_search_module(SDFORMAT REQUIRED sdformat sdformat9 sdformat12 sdformat14 sdformat15)

Which (assuming CMake>=3.16) will set ${SDFORMAT_MODULE_NAME} to the first found module.

I don't know if we need to support older CMake versions (or if there is a simple workaround for them).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant