Repository navigation
fix(sharpa-avatar): backport lifecycle and health fixes - #1381
Open
zihanjiang321 wants to merge 5 commits into
Open
zihanjiang321 wants to merge 5 commits into
zihanjiang321 wants to merge 5 commits into
Conversation
Signed-off-by: zihan <zihan.jiang@sharpa.com>
Contributor
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the
|
lotusl-code
reviewed
Oct 29, 2026
lotusl-code
reviewed
Oct 29, 2026
Signed-off-by: zihan <zihan.jiang@sharpa.com>
Signed-off-by: zihan <zihan.jiang@sharpa.com>
Signed-off-by: zihan <zihan.jiang@sharpa.com>
Contributor
Author
Follow-up review fixesBackported the two follow-up fixes from #1347 in
Regression coverage includes:
|
Signed-off-by: zihan <zihan.jiang@sharpa.com>
This branch has not been deployed
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.
Fixes #1319.
Summary
This revision addresses all actionable review feedback raised on #1263, #1264, and the current PR.
Rather than continuing to add isolated health checks, it revises the Sharpa Avatar plugin lifecycle around three separate concepts:
This separation allows the plugin to distinguish dongle removal, glove power/link loss, stale data, dataset setup failures, and runtime SDK errors without conflating them into a single connected flag.
The implementation remains pinned to the production Avatar SDK 1.7.3.
Review feedback addressed
This revision covers the previous and current review comments, including:
tensorCollectionIdchanges, even if the collection occupies the same list index.NO_VALID_DATA_RETURNEDSDK failures as device errors instead of generic data staleness.UNKNOWNrather than disconnected.Lifecycle changes
The plugin lifecycle has been revised so that resources are associated with the hardware or data generation that owns them:
Haptics
Haptic handling now follows the same per-glove lifecycle:
Health reporting
The plugin publishes health for:
sharpa_avatar/transport/donglesharpa_avatar/glove/leftsharpa_avatar/glove/rightPhysical USB presence is checked separately from the SDK transport state because Avatar SDK 1.7.3 may continue to report
CONNECTEDafter the dongle has been physically removed. Glove inventory, ingress freshness, dataset progress, and the latest SDK error are then evaluated independently.No new Viser health UI is introduced. Applications can consume the existing
TeleopSession.get_status()/get_device_status()interface, while the Sharpa example can print health transitions in the terminal.Validation
Validated with the production Avatar SDK 1.7.3 and physical wireless gloves:
During dongle removal, the Viser and CloudXR session intentionally remain alive while the hands disappear. The hands return automatically after the transport and gloves recover.