Skip to content

Conversation

@j-rivero
Copy link
Contributor

@j-rivero j-rivero commented Dec 8, 2025

Summary

This PR updates gz-sim to display physics engine version information in the Component Inspector by extending the PhysicsEnginePlugin component to use the new GetEngineVersion() API from gz-physics.

Dependencies:

Changes:

  • Updated PhysicsEnginePlugin component to store engine name with version in "name-version" format
  • Physics engine version now dynamically retrieved and displayed (e.g., "dartsim-6.13.0", "bullet-3.24", "tpe-1.0")
  • Removed need for separate version component by extending existing PhysicsEnginePlugin

User-visible changes:

  • Component Inspector now shows physics engine with version when selecting world entity
  • Example: PhysicsEnginePlugin: "dartsim-6.13.0" (previously showed library path or hardcoded name)

Implementation details:

  • Calls engine->GetName() and engine->GetVersion() from gz-physics API
  • Concatenates name and version with hyphen separator when version is non-empty
  • Updates component data in both static and dynamic plugin loading paths

Test it

Build from source the gz-physics PR and this branch. Launch any world and see the GUI:

image

Expected output in Component Inspector:

  • bullet: "bullet-3.24"
  • bullet-featherstone: "bullet-featherstone-3.24"
  • dartsim: "dartsim-6.13.0" (or current DART version)
  • tpe: "tpe-1.0"

Checklist

  • Signed all commits for DCO
  • Added tests
  • Added example and/or tutorial
  • Updated documentation (as needed) - Added changelog entry
  • Updated migration guide (as needed) - Non-breaking change
  • 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
  • Was GenAI used to generate this PR? If so, make sure to add "Generated-by" to your commits. (See this policy for more info.)

Generated-with: GitHub Copilot (Claude Sonnet 4.5)

@github-actions github-actions bot added the 🪵 jetty Gazebo Jetty label Dec 8, 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: Inbox

Development

Successfully merging this pull request may close these issues.

2 participants