Ivan/docs low level module plumbing - #3564
Conversation
Instead of .connect within one process, each side assigns the same typed transport to its stream and the modules run as independent scripts. Also fix the stale detector.image name in the connect example (Detection2DModule's input is color_image).
Two additions under the low-level section: a transport is directly usable from a plain script (publish/subscribe/get_next, no module or declared I/O), and modules can grow In/Out streams at runtime — introspection scans instance attributes and handle_<name> auto-binding covers anything added before start(). Both patterns verified live against LCMTransport.
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Workflows to automatically generate PRs for you. |
Greptile SummaryThis update expands the module usage documentation with lower-level LCM transport, raw publish/subscribe, and dynamically attached stream examples. The dynamic-stream example overrides T-Rex validation blockedThe focused lifecycle reproduction could not run because the required Confidence Score: 4/5The documentation should be corrected before merging so copied dynamic-stream modules retain standard startup behavior. The framework implementation directly shows that the omitted base call performs main-lifecycle startup and automatic input-handler binding. The focused runtime comparison could not reach that path because dependency installation is blocked by missing PortAudio headers. Files Needing Attention: docs/usage/modules.md needs the dynamic
What T-Rex did
Reviews (1): Last reviewed commit: "mini cleanup" | Re-trigger Greptile |
| class Dyn(Module): | ||
| def start(self): | ||
| # module can add a random input | ||
| self.echo = In(String, "echo", m) | ||
| print("Externally attached output:", self.words) |
There was a problem hiding this comment.
Codecov Report✅ All modified and coverable lines are covered by tests. @@ Coverage Diff @@
## main #3564 +/- ##
==========================================
+ Coverage 76.13% 76.44% +0.31%
==========================================
Files 1228 1247 +19
Lines 119172 120670 +1498
Branches 10684 10890 +206
==========================================
+ Hits 90726 92250 +1524
+ Misses 25345 25317 -28
- Partials 3101 3103 +2
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
No description provided.