example(mcap): Add live replay and use CloudXRLauncher#695
Conversation
|
📝 Docs preview is not auto-deployed for fork PRs. A maintainer with write access to |
…date viz classes - Add live_hand.py, live_controller.py, live_full_body.py: real-time viser visualization of XR pose data using CloudXRLauncher + TeleopSession (no MCAP) - Refactor record_* scripts to use CloudXRLauncher so the CloudXR runtime starts automatically; add --accept-eula / --install-dir args - Move HandViz, ControllerViz, FullBodyViz and shared color constants into common.py; replay_* scripts now import from there instead of duplicating Signed-off-by: Jiwen Cai <jiwenc@nvidia.com>
…-frame counting - Add --env-file (default: default.env) to pass a KEY=value override file to CloudXRLauncher; ship default.env with sensible defaults for Quest 3 - Add --launch-cloudxr-runtime / --no-launch-cloudxr-runtime (BooleanOptionalAction, default true) to optionally skip CloudXRLauncher and connect to a system OpenXR runtime directly - Report missed frames per interval in live_hand/controller - Fix missed-frame counting to accumulate per-frame gaps correctly Signed-off-by: Jiwen Cai <jiwenc@nvidia.com>
b178b8f to
edbbd8c
Compare
📝 WalkthroughWalkthroughThis PR centralizes all Viser visualization primitives — Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
| server = viser.ViserServer(host=args.host, port=args.port) | ||
| server.scene.set_up_direction("+y") | ||
| server.scene.add_grid(name="/grid", width=2.0, height=2.0, cell_size=0.1) | ||
|
|
||
| viz_left = HandViz(server, "hand_left", LEFT_COLOR) | ||
| viz_right = HandViz(server, "hand_right", RIGHT_COLOR) |
There was a problem hiding this comment.
start the viz as late as possible after all checks have passed and the session is live - to avoid a misleading "viser running" when something is misconfigured
Description
Add live replay and use CloudXRLauncher for the mcap record / replay examples.
Fixes #(issue)
Type of change
Testing
Checklist
SKIP=check-copyright-year pre-commit run --all-filesgit commit -s) per the DCOSummary by CodeRabbit
New Features
Refactor