Skip to content

docs: add Zenoh-to-MQTT topic mapping worked examples - #40

Open
christymanthara wants to merge 1 commit into
cyberwave-os:mainfrom
christymanthara:docs/zenoh-mqtt-topic-mapping
Open

christymanthara wants to merge 1 commit into
cyberwave-os:mainfrom
christymanthara:docs/zenoh-mqtt-topic-mapping

Conversation

@christymanthara

Copy link
Copy Markdown
Contributor

What changed and why?

Closes #32

  • Adds cyberwave/zenoh_mqtt/README.md: a worked-examples guide to the Zenoh ↔ MQTT topic mapping. Covers both directions using a syntactically valid UUID, MQTT prefix concatenation (no separator added) and the configurable inbound Zenoh prefix, nested MQTT suffixes flattening to underscores in the Zenoh channel, outbound sensor suffixes being dropped, and why the mapping is not a lossless round trip. Also documents the build_outbound_subscriptions / build_inbound_subscriptions helpers.
  • Links the guide from CONTRIBUTING.md (SDK Contributors section) as a hardware-free area to explore.

How did you test it?

Every worked example was cross-checked against cyberwave/zenoh_mqtt/topic_mapping.py and the test suite — a verification script exercising all 19 example mappings passed 19/19, and the focused test command passes:

poetry run pytest tests/test_bridge_topic_mapping.py -v
27 passed

No brokers, hardware, or live backend are needed to verify; the mapping logic is pure Python.

Contributor checklist

  • I added or updated tests for behavior changes, or explained why they are unnecessary. (documentation-only change; every example mirrors an existing passing test)
  • I updated relevant documentation or examples.
  • I noted any public API, optional dependency, or simulation/live behavior changes. (none — docs only)

Made with Cursor

Add cyberwave/zenoh_mqtt/README.md with worked examples covering both
mapping directions, MQTT prefix concatenation, nested-suffix flattening,
sensor-segment dropping, and why mapping is not a lossless round trip.
Link the guide from CONTRIBUTING.md as a hardware-free exploration area.

Closes cyberwave-os#32

Co-authored-by: Cursor <cursoragent@cursor.com>
@github-actions

github-actions Bot commented Nov 15, 2026 •

Copy link
Copy Markdown

Slack team notifications

  • opened: sent

@github-actions

Copy link
Copy Markdown

Thanks for contributing to the Cyberwave Python SDK, @christymanthara!

Maintainer contacts: @KhushiSharma22. When this PR is ready, we request a maintainer review and run an automated advisory review. CI and human review remain the source of truth.

Please describe what changed and how you tested it. See the contribution guide or ask for help on Discord. Drafts are welcome.

Merged human contributions receive a Discord thank-you. To opt out, check the PR template's Discord opt-out box or add <!-- cyberwave:no-celebration --> to the PR description.

@github-actions

Copy link
Copy Markdown

Automated advisory review · Claude

Commit: f3a6cd36f32a75f341a0744ce97382ed0dc9c498. Human review and CI are still required.

The supplied patch set adds only documentation files (CONTRIBUTING.md and a new README.md). No Python source code, test code, or configuration files are changed. There are no executable code paths, imports, async behaviors, or robotics logic to evaluate for correctness defects. The documentation content itself describes expected mapping behavior consistently within the patch. Based on these excerpts alone, no actionable bugs can be identified.

No high-confidence issues found in the supplied excerpts. This is not an approval.

Coverage: 2 of 2 changed files; patch excerpts only. Generated REST code, lockfiles, notebooks, SVGs, missing patches and files beyond the 40-file / 60,000-character budget are excluded. GitHub may truncate individual patches.

@christymanthara

Copy link
Copy Markdown
Contributor Author

@KhushiSharma22 can you take a look and merge it in if correct? lmk

This branch has not been deployed

No deployments
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.

Add worked examples explaining Zenoh-to-MQTT topic mapping

1 participant