Repository navigation
feat(examples/televiz): camera_viz's placement and controller bindings - #1685
Draft
junjeechao wants to merge 5 commits into
Draft
junjeechao wants to merge 5 commits into
junjeechao wants to merge 5 commits into
Conversation
The picture was always the camera's field of view on a plane that follows the operator's position. A config can now say where it sits in the keys of camera_viz's placements: lock_mode (gimbal, world, lazy, head), distance, size and offsets. camera_viz's own strategies do the placing, run in a frame that turns with the camera, so that a picture of a given size looks smaller from farther away and a recenter seats it anew. gimbal with no size is the default and is what the plane did before. render.distance_m becomes placement.distance. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Signed-off-by: Jun-Jee Chao <junjeec@nvidia.com>
The controllers now change the view live, as in the camera_viz example: the lock mode, mono or stereo, the picture's size and height, the gap between the two eyes' planes, and a reset to the config's values. Each is an action or an axis on the stream every input path posts to, bound in the config's bindings table: none takes a binding away, and an optional hold gates them all. The shipped configs preset camera_viz's layout. What a change does to a size, a height or a gap is camera_viz's own code, and a change shows on its head-locked panel in the headset. The view's own lazy-lock goes: lock_mode lazy is the one lazy rule. The guide gains a Controller bindings section with the figure. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Signed-off-by: Jun-Jee Chao <junjeec@nvidia.com>
…always A switch between mono and stereo showed only with the next camera image. The gap between the eyes' planes is handed to the layer only with camera_viz's bound on it. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Signed-off-by: Jun-Jee Chao <junjeec@nvidia.com>
…g reason Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Signed-off-by: Jun-Jee Chao <junjeec@nvidia.com>
Contributor
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true
|
Contributor
|
✅ Preview deployed: https://NVIDIA.github.io/IsaacCapture/preview/pr-1685/ Built from commit f6087d2. It may take a minute for the updated preview to appear. |
The placement and view-control tests import camera_viz's placements and controls, which use scipy's Rotation and draw their panel with PIL. The tests' own environment listed neither, so they failed to import in CI. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Signed-off-by: Jun-Jee Chao <junjeec@nvidia.com>
This branch was successfully 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.
Description
Draft. Stacked on the Televiz guide PR (#1684), which is on #1655; review only this PR's diff.
Gives the
televizexample the placement and the controller bindings of camera_viz, so that the two examples are used the same way.What this part adds:
placementconfig section with the keys of camera_viz'sdisplay.placements:lock_mode,distance,size,offset_x,offset_y, the lazy knobs andstereo_plane_distance_cm. camera_viz's own placement strategies do the placing, unchanged, in a frame that turns with the camera (render/placement.py):gimbal, the default: the picture follows your position and turns with the camera. With nosizethis is what the plane did before.world: it stays where it was seated and turns with the camera.lazy: asworld, and it comes back in front of you when you look away from it.head: it stays in front of your eyes; nothing is stabilized.sizeleft out the picture covers the camera's field of view, as before. With asizeit is a screen of that size, which looks smaller from farther away.lock_mode,mono_stereo,reset) and stick axes (size,height,stereo_gap) on the stream every input path posts to (pipeline/actions.py). Thebindingstable gives each its input;nonetakes one away, and an optionalholdgates them all. The shipped configs preset camera_viz's layout.render/view_controls.pyapplies them with camera_viz's own size, height and gap code and shows a change on camera_viz's head-locked panel.What this part removes:
viewpoint.lazy_*and thelazy_toggleaction):lock_mode: lazyis the one lazy rule.render.distance_m, which is nowplacement.distance.Try it (in the headset):
Push the left stick to resize the picture and move it up or down, press
Ato change the lock mode,Bfor mono or stereo,Yto reset, and click the right stick to recenter.For the reviewer:
gimbalwith nosizereproduces the earlier plane exactly: the plane placement tests of feat(examples/televiz): add the viewpoint and the headset view (4/6) #1653 pass unchanged.Viewpoint.anchor_epoch), because it turns the camera's frame under the picture.isaaccapture[cloudxr], already required by this example.Type of change
Testing
tests/python/examples/televiz: 652 passed on x86_64 Linux (Ubuntu 24.04, Python 3.12) with a CUDA GPU. The view's tests use a stand-in session.make current-docspasses with no warnings.--check, andsynthetic.yamlruns with--mode none.SKIP=check-copyright-year pre-commit run --all-filespasses.Checklist
SKIP=check-copyright-year pre-commit run --all-filesgit commit -s) per the DCO🤖 Generated with Claude Code