-
Notifications
You must be signed in to change notification settings - Fork 31
feat(hiroz-py): rclpy alignment — P1–P8 API improvements #192
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
YuanYuYuan
wants to merge
18
commits into
main
Choose a base branch
from
dev/review-python-api
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
2b38303
feat(hiroz-py): rclpy alignment — P1–P8 API improvements
YuanYuYuan 381a9ae
fix(hiroz-py): surface P6 callback thread errors via last_error property
YuanYuYuan 46007dd
test(hiroz-py): close P1/P3/P5/P7 coverage gaps in rclpy alignment tests
YuanYuYuan fe16a33
docs(hiroz-py): document P1-P8 rclpy alignment and add migration guide
YuanYuYuan 18c01c9
fix(hiroz-py): raise TimeoutError from get_result instead of returnin…
YuanYuYuan cfde179
fix(hiroz-py): route action errors through map_call_error
YuanYuYuan 2fe4621
fix(hiroz-py): fail loudly on bad service names and type hashes
YuanYuYuan b084999
fix(hiroz-py): make map_call_error accept zenoh errors, fix get_resul…
YuanYuYuan 6e5b144
style(hiroz-py): rustfmt the get_result timeout arm
YuanYuYuan 06a64f0
fix(hiroz-py): stop boxing anyhow errors before timeout classification
YuanYuYuan b1df460
feat(hiroz-py): anchor exceptions under RuntimeError and builtins.Tim…
YuanYuYuan 2a83aa7
fix(hiroz-py): address review findings on validation, leaks and docs
YuanYuYuan 771c309
feat(hiroz-py): wire P7 into codegen; make callback-server shutdown safe
YuanYuYuan 866075a
fix(hiroz-py): hoist timeout validation out of the allow_threads clos…
YuanYuYuan af148a8
fix(hiroz-py): reject empty path components in service names
YuanYuYuan 9f72a83
test(hiroz-py): correct the invalid-name cases to what hiroz actually…
YuanYuYuan e5a274a
fix(hiroz-py): wait_for_server polls the full action-server predicate
YuanYuYuan 7c08392
chore(msgs): regenerate python msgspec stubs after rebase
YuanYuYuan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
29 changes: 29 additions & 0 deletions
29
crates/hiroz-msgs/python/hiroz_msgs_py/types/action_tutorials_interfaces.py
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| """Auto-generated ROS 2 message types for action_tutorials_interfaces.""" | ||
| import msgspec | ||
| from typing import ClassVar | ||
|
|
||
| class FibonacciGoal(msgspec.Struct, frozen=True, kw_only=True): | ||
| order: int = 0 | ||
|
|
||
| __msgtype__: ClassVar[str] = 'action_tutorials_interfaces/msg/FibonacciGoal' | ||
| __hash__: ClassVar[str] = 'RIHS01_12b2d4be0186b9d26e02c9be2cbbc9438ab3ba78b66806b3f7f4111bb75199cb' | ||
|
|
||
| class FibonacciResult(msgspec.Struct, frozen=True, kw_only=True): | ||
| sequence: list[int] = msgspec.field(default_factory=list) | ||
|
|
||
| __msgtype__: ClassVar[str] = 'action_tutorials_interfaces/msg/FibonacciResult' | ||
| __hash__: ClassVar[str] = 'RIHS01_12b2d4be0186b9d26e02c9be2cbbc9438ab3ba78b66806b3f7f4111bb75199cb' | ||
|
|
||
| class FibonacciFeedback(msgspec.Struct, frozen=True, kw_only=True): | ||
| partial_sequence: list[int] = msgspec.field(default_factory=list) | ||
|
|
||
| __msgtype__: ClassVar[str] = 'action_tutorials_interfaces/msg/FibonacciFeedback' | ||
| __hash__: ClassVar[str] = 'RIHS01_12b2d4be0186b9d26e02c9be2cbbc9438ab3ba78b66806b3f7f4111bb75199cb' | ||
|
|
||
| class Fibonacci: | ||
| """Action grouping type. Use Fibonacci.Goal, .Result and .Feedback.""" | ||
| __actiontype__: ClassVar[str] = 'action_tutorials_interfaces/action/Fibonacci' | ||
| Goal: ClassVar[type] = FibonacciGoal | ||
| Result: ClassVar[type] = FibonacciResult | ||
| Feedback: ClassVar[type] = FibonacciFeedback | ||
|
|
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.