Share waldoctl's RobotError, and take home(calibrate=) from the ABC - #10
Closed
Jepson2k wants to merge 3 commits into
Closed
Share waldoctl's RobotError, and take home(calibrate=) from the ABC#10Jepson2k wants to merge 3 commits into
Jepson2k wants to merge 3 commits into
Conversation
A frontend represents a refused command the same way whichever backend raised it, so the refusal type is the contract's. Same six fields, same wire list in both directions, and an exception rather than a dataclass, so a client can raise it as-is. make_error, the catalog and extract_robot_error are unchanged. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014Bo12kumRx9PHnY9bL8qgn
RobotError serialises back to the wire and survives copy/pickle, which the controller's state snapshot needs. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014Bo12kumRx9PHnY9bL8qgn
home() matches RobotClient: calibrate re-runs the referencing sequence on an arm that is already homed, which the wire now carries as HomeCmd's force flag. The sync client and robot factory hold SyncTool, the type make_sync_tool actually returns, and a plane keep-out is now an unknown kind on the wire. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014Bo12kumRx9PHnY9bL8qgn
Owner
Author
|
Wrong repository — this work belongs on PCrnjak/PAROL6-python-API, where it now lives as PR PCrnjak#37, rebuilt on the current upstream main. |
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.
Replaces #8, which was on a branch name the cross-repo CI matching could not resolve. The chain waldoctl <- par6 <- Waldo-Commander all use
feat/thin-python-binding, so Waldo-Commander's install now picks this branch up instead of falling back to themainpin, which still requires waldoctl v0.10.0 and makes its dependency resolution impossible.RobotError is waldoctl's.
parol6/utils/error_catalog.pyaliases the shared class rather than defining a second one, so a frontend has one error type to represent whatever backend it is driving. The controller re-attributes a tool error by rebuilding it from the wire, because the exception is deep-copied and a dataclassreplaceon it does not survive that.home()matches the ABC.calibrate=Truere-runs the referencing sequence on an arm that is already homed, instead of the planned return to standby. The wire carries it asHomeCmd.force, and the planner's homed fast path honours it. The oldtimeoutkeyword keeps its position aftercalibrate.Typing. The sync client and the robot factory hold
SyncTool, which is whatmake_sync_toolreturns; a redundant cast and an unused suppression go.Tests: 194 unit, 79 integration, all passing against waldoctl on this branch.
🤖 Generated with Claude Code
https://claude.ai/code/session_014Bo12kumRx9PHnY9bL8qgn