feat(head): add USB eRPC joint and expression control #2

Merged
linbo merged 3 commits from tkt_dev into dev 2026-11-13 10:36:43 +08:00
Owner

Adds direct USB eRPC control for the five-channel head through the existing BioHeadService, device factory, configuration, logging and control arbiter.

Clients can send complete radian targets or select six saved expressions by exact name or UUID. Expressions use bounded 20 ms minimum-jerk transitions, a connection-local five-joint Immediate ACK baseline, target validation and cancellation. Initialization probes the device without position motion; home and reconnect remain explicit operations.

Existing ESP32 behavior, RPC signatures and protobuf field numbers are preserved. USB serial and eRPC implementations remain inside the head module. Firmware ACKs report accepted targets; the current protocol provides no measured position or hardware emergency-stop command.

Validation: cmvr_es build, protocol and PTY serial tests, 17 head backend cases, 14 loopback gRPC cases, protobuf compatibility checks, and a live USB/gRPC state query.

Adds direct USB eRPC control for the five-channel head through the existing BioHeadService, device factory, configuration, logging and control arbiter. Clients can send complete radian targets or select six saved expressions by exact name or UUID. Expressions use bounded 20 ms minimum-jerk transitions, a connection-local five-joint Immediate ACK baseline, target validation and cancellation. Initialization probes the device without position motion; home and reconnect remain explicit operations. Existing ESP32 behavior, RPC signatures and protobuf field numbers are preserved. USB serial and eRPC implementations remain inside the head module. Firmware ACKs report accepted targets; the current protocol provides no measured position or hardware emergency-stop command. Validation: cmvr_es build, protocol and PTY serial tests, 17 head backend cases, 14 loopback gRPC cases, protobuf compatibility checks, and a live USB/gRPC state query.
tkt added 1 commit 2026-11-11 15:35:44 +08:00
Add a head-local USB serial/eRPC backend through the existing device factory,
configuration, BioHeadService, logging and control arbiter. Support typed joint
commands, custom five-joint expressions and six frozen upper-computer presets
with 20 ms transitions, validation, ACK baselines and cancellation.

Retain existing ESP32 behavior and API field numbers. Publish only USB head
registration; preserve the machine-local AGV disable override in the worktree.

Validation: cmvr_es build; four head test targets (17 backend and 14 gRPC cases,
plus protocol and serial tests); live USB connection and gRPC state query.
The user additionally confirmed physical testing passed.
tkt scheduled this pull request to auto merge when all checks succeed 2026-11-11 15:37:19 +08:00
tkt added 1 commit 2026-11-13 10:22:58 +08:00
tkt added 1 commit 2026-11-13 10:25:01 +08:00
linbo requested review from linbo 2026-11-13 10:36:08 +08:00
linbo merged commit a06b421239 into dev 2026-11-13 10:36:43 +08:00
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: SmartBench/cmvr-es#2
No description provided.