Add perspective video recording via Newton GL viewer for Kitless backends; Fix for Kitfull backends camera position#5011
Conversation
f2ba1f7 to
7e22609
Compare
Greptile SummaryThis PR introduces a pluggable Key concerns:
Confidence Score: 1/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant Env as Environment (__init__)
participant VRCfg as VideoRecorderCfg
participant VR as VideoRecorder
participant Backend as Kit / Newton GL Backend
Env->>VRCfg: cfg.video_recorder.render_mode = render_mode
Env->>VR: VideoRecorder(cfg, scene)
VR->>VR: _resolve_video_backend(scene)
alt Kit backend (PhysX / Isaac RTX)
VR->>Backend: IsaacsimKitPerspectiveVideo(cfg)
else Newton GL backend
VR->>Backend: NewtonGlPerspectiveVideo(cfg)
end
loop Each render() call
Env->>VR: render_rgb_array()
VR->>Backend: render_rgb_array()
alt Kit
Backend->>Backend: set_camera_view (lazy, first call only)
Backend->>Backend: annotator.get_data()
else Newton GL
Backend->>Backend: _ensure_viewer() (lazy)
Backend->>Backend: viewer.begin_frame / log_state / end_frame
Backend->>Backend: viewer.get_frame().numpy()
end
Backend-->>VR: np.ndarray (H×W×3)
VR-->>Env: np.ndarray (H×W×3)
end
|
…portError; precommit
Description
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context.
List any dependencies that are required for this change.
Fixes # (issue)
Type of change
Screenshots
Please attach before and after screenshots of the change if applicable.
Checklist
pre-commitchecks with./isaaclab.sh --formatconfig/extension.tomlfileCONTRIBUTORS.mdor my name already exists there