Skip to content

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented Oct 16, 2025

🦟 Bug fix

Summary

This removes a lot of repetitive code where a service handler simply
copies the message, creates and adds the associated command to a command
queue.

This is a precursor to a follow-up PR that changes the service handlers to wait for the execution of the command before returning.

Note: It might be easier to review each commit separately.

Checklist

  • Signed all commits for DCO
  • Added tests
  • 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
  • Was GenAI used to generate this PR? If so, make sure to add "Generated-by" to your commits. (See this policy for more info.)

Note to maintainers: Remember to use Squash-Merge and edit the commit message to match the pull request summary while retaining Signed-off-by and Generated-by messages.


This is an automatic backport of pull request #2996 done by [Mergify](https://mergify.com).

* Refactor Transport service handlers

This removes a lot of repetitive code where a service handler simply
copies the message, creates and adds the associated command to a command
queue.

Signed-off-by: Addisu Z. Taddese <addisu@openrobotics.org>

* Also refactor code for advertising services

Signed-off-by: Addisu Z. Taddese <addisu@openrobotics.org>

* Add back missing function

Signed-off-by: Addisu Z. Taddese <addisu@openrobotics.org>

* Update our usage of workerpools (#2995)

In `SimulationRunner`, we initialize a worker pool but we never actually
use it so it's pure overhead. In `ServerPrivate` we only use the
worker pool if there are multiple simulation runners, so we can optimize
for the most common use case of one runner.

Signed-off-by: Addisu Z. Taddese <addisu@openrobotics.org>

* Fix linter issues

Signed-off-by: Addisu Z. Taddese <addisu@openrobotics.org>

* Fix typo

Signed-off-by: Addisu Z. Taddese <addisu@openrobotics.org>

* Add missing constructor

Signed-off-by: Addisu Z. Taddese <addisu@openrobotics.org>

---------

Signed-off-by: Addisu Z. Taddese <addisu@openrobotics.org>
(cherry picked from commit bf68eae)
@github-project-automation github-project-automation bot moved this from Inbox to In review in Core development Oct 16, 2025
@azeey azeey enabled auto-merge (rebase) October 16, 2025 15:55
@azeey azeey disabled auto-merge October 17, 2025 14:25
@azeey azeey merged commit 4860ba7 into gz-sim9 Oct 17, 2025
14 of 15 checks passed
@azeey azeey deleted the mergify/bp/gz-sim9/pr-2996 branch October 17, 2025 14:26
@github-project-automation github-project-automation bot moved this from In review to Done in Core development Oct 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🏛️ ionic Gazebo Ionic

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant