uplink β Push mock telemetry into a visualizerΒΆ
s6 uplink opens a WebSocket connection and publishes synthetic telemetry
snapshots for the visualizer to consume. It is a lightweight way to exercise
the uplink path without running s6 track.
The emitted payload currently matches these binding paths:
export.solver.B.tippoint3d_cexport.solver.B.markerpoint3d_cexport.solver.B.orientation_qexport.flags.model_visible
UsageΒΆ
# Publish forever to the default local visualizer backend
s6 uplink
# Target a different visualizer and slow the stream down
s6 uplink --uplink ws://127.0.0.1:4173/ws/uplink --hz 10
# Send a finite burst for testing
s6 uplink --count 50 --radius 0.05 --marker-offset 0.02
FlagsΒΆ
--uplink: WebSocket URL for the visualizer uplink endpoint.--hz: Publish rate in frames per second, default20.0.--radius: Radius of the synthetic tip motion, default0.02.--marker-offset: X-axis offset between the tip and marker points, default0.01.--count: Number of frames to send before exiting;0runs forever.
How it worksΒΆ
Imports
websocketsat runtime and raises a clear error if it is missing.Generates a sinusoidal tip vector around the origin in solver space.
Reuses that vector for the marker point with only the X offset applied.
Sends JSON snapshots with the
exportroot object expected by the visualizer.Sleeps for
1 / --hzseconds between messages.