Skip to content

Add namespace support for topic/service name#3669

Draft
C88-YQ wants to merge 22 commits into
gazebosim:mainfrom
C88-YQ:ns_support
Draft

Add namespace support for topic/service name#3669
C88-YQ wants to merge 22 commits into
gazebosim:mainfrom
C88-YQ:ns_support

Conversation

@C88-YQ

@C88-YQ C88-YQ commented Jun 8, 2026

Copy link
Copy Markdown

🎉 New feature

Related to gazebosim/sdformat#1663

Summary

Add namespace support to entities and apply it to diff drive topics.

Changes:

  • Add namespace component
  • Add utility helpers to detect whether the ECM contains namespaces and to compute an entity's scoped namespace
    from its parent hierarchy.
  • Update DiffDrive to use the scoped namespace when building default command, enable, odometry, and TF topics. Relative custom topic names are prefixed with the scoped namespace, while absolute topic names are left unchanged.

Test it

ctest

Checklist

  • Signed all commits for DCO
  • Added a screen capture or video to the PR description that demonstrates the feature
  • Added tests
  • Added example and/or tutorial
  • 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)
  • Updated Bazel files (if adding new files). Created an issue otherwise.
  • 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-by: Remove this if GenAI was not used.

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.

Backports: If this is a backport, please use Rebase and Merge instead.

C88-YQ added 10 commits May 29, 2026 14:03
Signed-off-by: C88-YQ <1409947012@qq.com>
Signed-off-by: C88-YQ <1409947012@qq.com>
Signed-off-by: C88-YQ <1409947012@qq.com>
Signed-off-by: C88-YQ <1409947012@qq.com>
Signed-off-by: C88-YQ <1409947012@qq.com>
Signed-off-by: C88-YQ <1409947012@qq.com>
Signed-off-by: C88-YQ <1409947012@qq.com>
Signed-off-by: C88-YQ <1409947012@qq.com>
Signed-off-by: C88-YQ <1409947012@qq.com>
@C88-YQ C88-YQ changed the title Add namespace support Add namespace support for topic/service name Jun 8, 2026
C88-YQ and others added 3 commits June 8, 2026 22:02
Signed-off-by: Jiayi Cai <126311933+C88-YQ@users.noreply.github.com>
Signed-off-by: C88-YQ <1409947012@qq.com>
Signed-off-by: C88-YQ <1409947012@qq.com>
Signed-off-by: C88-YQ <1409947012@qq.com>
C88-YQ added 5 commits June 17, 2026 22:38
Signed-off-by: C88-YQ <1409947012@qq.com>
Signed-off-by: C88-YQ <1409947012@qq.com>
Signed-off-by: C88-YQ <1409947012@qq.com>
Signed-off-by: C88-YQ <1409947012@qq.com>
C88-YQ added 3 commits June 26, 2026 20:30
Signed-off-by: C88-YQ <1409947012@qq.com>
Signed-off-by: C88-YQ <1409947012@qq.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

2 participants