feat: add Reachy Mini NATS sidecar support#4
Open
armwaheed wants to merge 3 commits intoatsyplikhin:feat/reachy-mini-guidefrom
Open
feat: add Reachy Mini NATS sidecar support#4armwaheed wants to merge 3 commits intoatsyplikhin:feat/reachy-mini-guidefrom
armwaheed wants to merge 3 commits intoatsyplikhin:feat/reachy-mini-guidefrom
Conversation
Author
|
Attn: @atsyplikhin |
Author
|
Follow-up: the private broker/dashboard path is now confirmed working. The required private-broker configuration is: export NATS_URL='nats://137.184.86.16:4222'
export TENANT='souravpati'
export DEVICE_ID='reachy-mini-1'
export NATS_CREDENTIALS_FILE='/path/to/souravpati-reachy-mini-1.creds.json'
export REACHY_HOST='127.0.0.1'
export REACHY_PORT='8000'
export REACHY_TRANSPORT_MODE='websocket'The important correction is that I pushed an additional update to this branch to:
Observed success log on the private broker: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds a working Reachy Mini Device Connect sidecar flow for Raspberry Pi deployments that already have a local Reachy daemon or app running.
What changed
run_reachy_nats.pyas a small Reachy NATS sidecar runnertransport_modeoverride support toReachyMiniDriverwebsocketwhen Reachy is local to the Pi but Device Connect traffic should go over NATSWhy
The original Reachy docs were oriented around a standalone daemon flow and Zenoh examples. On the Pi we validated a different production-relevant pattern:
127.0.0.1:8000Without the transport override, the driver auto-detection can select the wrong real-time transport for this topology.
Validation
Validated on a Raspberry Pi Reachy setup using:
127.0.0.1:8000nats://nats-nlb-52ebd3849ae4cb02.elb.us-east-1.amazonaws.com:4222Observed successful registration logs:
Connected to NATS broker: [...]Driver connected: reachy_miniDevice registered: ...Subscribed to commands on device-connect.default.reachy-mini-1.cmdNotes
The reusable Reachy Device Connect bridge remains in
strands_robots/device_connect/.App-specific Reachy browser-control behavior should stay in the separate
conference-roomrepo.