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).

@mergify mergify bot requested a review from arjo129 as a code owner October 16, 2025 15:42
@mergify mergify bot added the conflicts label Oct 16, 2025
Copy link
Contributor Author

mergify bot commented Oct 16, 2025

Cherry-pick of bf68eae has failed:

On branch mergify/bp/gz-sim8/pr-2996
Your branch is up to date with 'origin/gz-sim8'.

You are currently cherry-picking commit bf68eaea.
  (fix conflicts and run "git cherry-pick --continue")
  (use "git cherry-pick --skip" to skip this patch)
  (use "git cherry-pick --abort" to cancel the cherry-pick operation)

Unmerged paths:
  (use "git add <file>..." to mark resolution)
	both modified:   src/systems/user_commands/UserCommands.cc

no changes added to commit (use "git add" and/or "git commit -a")

To fix up this pull request, you can check it out locally. See documentation: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally

* 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>
@azeey azeey force-pushed the mergify/bp/gz-sim8/pr-2996 branch from f5cc094 to 7edcccc Compare October 17, 2025 02:03
@azeey azeey requested a review from iche033 October 17, 2025 14:28
@azeey
Copy link
Contributor

azeey commented Oct 17, 2025

@iche033 canI get a review since I had to fix conflicts.

@github-project-automation github-project-automation bot moved this from Inbox to In review in Core development Oct 17, 2025
@azeey azeey merged commit 1017ce6 into gz-sim8 Oct 17, 2025
7 of 9 checks passed
@azeey azeey deleted the mergify/bp/gz-sim8/pr-2996 branch October 17, 2025 17:46
@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

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants