Repository navigation
[merge-to-it] sharpa_avatar: log through isaaccapture::Logger - #1199
Conversation
The plugin printed with std::cout/std::cerr, which a launched plugin's fd 1/2 send to the native capture file. It now logs on isaaccapture.plugins.sharpa_avatar (main) and isaaccapture.plugins.sharpa_avatar.AvatarTracker, logs a glove timing out and why the plugin exits, and logs "Waiting for an online glove..." once per stretch without a glove instead of every 10 s. Signed-off-by: Lotus Li <lotusl@nvidia.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (3)
Included review availability: This review used your included allowance. Your plan provides up to 12 included reviews per hour; 9 remain after this review. 📝 WalkthroughWalkthroughThe application and hand-tracking plugin now send messages through loggers instead of standard output and error streams. The tracker logs one waiting message during each stretch without a connected glove. A glove connection resets the waiting-message state. Existing retry timing, timeout handling, haptic error suppression, and exception exit results remain unchanged. Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Merge Risk: ⚪ Minimal · up to Application and tracker messages now use the logger, and the Logger implementation is linked into the application target. No concrete merge-blocking risk remains. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
Comment |
[merge-to-it]
Summary
The sharpa_avatar plugin printed through
std::cout/std::cerr, which a launched plugin's fd 1/2 send to the native capture file, so none of it reached the console. It now logs throughisaaccapture::Logger:isaaccapture.plugins.sharpa_avatar(app/main.cpp) andisaaccapture.plugins.sharpa_avatar.AvatarTracker(core);log_bridgereaches the plugin throughoxr::oxr_core's public link, so no CMake change is needed.Testing
clang-format-14 --dry-run --Werror; pre-commit;-fsyntax-onlycompile of both translation units against Avatar SDK 1.7.3-17 headers.🤖 Generated with Claude Code
Summary by CodeRabbit