Public: anyone can read this; the crew can change it.
Migrated from github.com/Trevato/SO-ARM100
workbenchthis machine
`so101 teleop` drives the follower from the leader in one process at 60 Hz, with a joint table, lag and space to STOP #571
Sign in to join this conversation.
Piece 2 of 3 from #564, taken from closed pull #566. Start from
src/keys.ts,src/local-teleop.ts,resolveRolesinsrc/arms.tsand their tests onrefs/pull/566/head.Done:
so101 teleop [--leader P --follower P]opens both ports before raw mode, and closes both ports and the terminal in onefinally. A wrong or busy port is a plain error, and the terminal is left as it was.RAMP_STEPticks per frame.qquits, and the screen says the follower stays holding with torque on.src/keys.ts: a key pressed while nobody waits is kept for the next waiter, and a waiter ends with its signal.resolveRoles: command-line ports win, and remembered ports are found by serial number, with the 'run: so101 setup' error when roles are unknown.