Skip to content

Add external-controller relay channels - #40

Merged
rmatsuda merged 2 commits into
BiomagLab:mainfrom
0nu:pipeline-relay-channels
Nov 21, 2026
Merged

rmatsuda merged 2 commits into
BiomagLab:mainfrom
0nu:pipeline-relay-channels

Conversation

@0nu

@0nu 0nu commented Nov 17, 2026

Copy link
Copy Markdown
Contributor

Part of the NeuroPilot project.

Summary

Let an external experiment pipeline join the existing robot <-> neuronavigation
relay conversation.

Changes

  • Add a new from_external_controller Socket.IO event.
  • Forward messages from it to to_robot and to_neuronavigation.
  • Copy robot and neuronavigation traffic to to_external_controller.
  • Keep existing from_robot and from_neuronavigation forwarding behavior and
    payloads unchanged.
  • Update dependency ranges so the robot controller can share the NeuroPilot
    environment while staying within the existing major API versions.

Why

The NeuroPilot controller needs to observe robot and navigation traffic and
send its own commands without changing the existing robot or InVesalius
clients.

0nu added 2 commits November 10, 2026 08:42
Adds two channels to the relay so an external experiment pipeline can
join the existing robot <-> neuronavigation conversation:
- a new from_external_controller event; messages arriving on it are
  forwarded to to_robot and to_neuronavigation
- robot and neuronavigation traffic is additionally copied to
  to_external_controller

19 lines, additive only -- the existing from_robot /
from_neuronavigation behavior and payloads are unchanged, so current
clients keep working unmodified.
Replace exact pins with compatible ranges so the robot controller can share the NeuroPilot environment. Keep the numpy 1.26 line and the robot's socketio, scipy, matplotlib, and requests APIs within their existing major versions.
@rmatsuda
rmatsuda marked this pull request as ready for review November 21, 2026 12:05
@rmatsuda

Copy link
Copy Markdown
Collaborator

Awesome!! Thanks! Merging

@rmatsuda
rmatsuda merged commit 07716a3 into BiomagLab:main Nov 21, 2026
1 check passed
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.

2 participants