Repository navigation
Add Experimental OvRTX Integration - #4817
Conversation
…rejko/ovrtx-integration
Greptile SummaryThis PR introduces the Several blocking issues need to be resolved before this can merge:
Confidence Score: 1/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant TC as TiledCamera._initialize_impl
participant R as Renderer (factory)
participant OVR as OVRTXRenderer
participant USD as ovrtx_usd helpers
participant OVRTX as ovrtx.Renderer (C++)
participant WK as Warp Kernels
TC->>R: Renderer(cfg.renderer_cfg)
R->>OVR: OVRTXRenderer(cfg) [via backend dispatch "ov_rtx"]
TC->>OVR: create_render_data(sensor)
OVR->>OVR: initialize(sensor)
OVR->>USD: create_cloning_attributes(stage, ...)
OVR->>USD: export_stage_for_ovrtx(stage, /tmp/...)
OVR->>USD: inject_cameras_into_usd(usd_path, cfg, ...)
USD-->>OVR: (combined_usd_path, render_product_path)
OVR->>OVRTX: add_usd(combined_usd_path)
OVR->>OVRTX: clone_usd(env_0 → env_1..N) [if use_cloning]
OVR->>OVRTX: bind_attribute(camera xforms)
OVR->>OVRTX: bind_attribute(object xforms)
OVR-->>TC: OVRTXRenderData (warp buffers)
loop Each physics step
TC->>OVR: update_camera(positions, orientations, intrinsics)
OVR->>WK: create_camera_transforms_kernel
OVR->>OVRTX: write camera transforms via binding
TC->>OVR: update_transforms()
OVR->>WK: sync_newton_transforms_kernel
OVR->>OVRTX: write object transforms via binding
TC->>OVR: render(render_data)
OVR->>OVRTX: step(render_products, delta_time)
OVRTX-->>OVR: frames (tiled RGB / depth / albedo / semantic)
OVR->>WK: extract_tile_from_tiled_buffer_kernel (per env)
WK-->>OVR: per-env warp buffers
end
Last reviewed commit: e053684 |
Additional Comments (4)
The necessary imports (likely from from isaaclab_physx.sim import PhysxCfg
from isaaclab_newton.sim import NewtonCfg
from isaaclab_newton.sim import MJWarpSolverCfg(exact import paths should match the rest of the codebase).
Several imports are duplicated in this file as a result of this PR:
The duplicate lines should be removed.
This PR introduces two duplicate imports:
The incomplete first import (line 14) and the duplicate
(remove the duplicate |
…ressed later when multi-camera support is added.
|
|
||
| # This is mapping of where backends live in the isaaclab_<backend> package. | ||
| _RENDERER_TYPE_TO_BACKEND = {"isaac_rtx": "physx", "newton_warp": "newton"} | ||
| _RENDERER_TYPE_TO_BACKEND = {"isaac_rtx": "physx", "newton_warp": "newton", "ovrtx": "ov"} |
There was a problem hiding this comment.
I know it is probably due to legacy, but still it looks a bit weird to map "physx" to IsaacRTXRenderer.
There was a problem hiding this comment.
Yes it's for backwards compatibility.
| [package] | ||
| version = "0.1.0" | ||
| title = "Omniverse renderers for IsaacLab" | ||
| description = "Extension providing Omniverse renderers (OVRTX, ovphysx, etc.) for tiled camera rendering." |
There was a problem hiding this comment.
No it's not. It's a future simulator, distributed as a library, similar to ovrtx.
There was a problem hiding this comment.
I see, it was a rhetoric question. The description makes it sound like ovphysx is one Omniverse renderer.
| use_cloning: bool = False | ||
| """When True, export only env_0 and use OVRTX clone_usd. When False, export full stage.""" | ||
|
|
||
| log_level: str = "verbose" |
There was a problem hiding this comment.
is verbose logging level intentional?
There was a problem hiding this comment.
For now it has no effect, it didn't do anything and i left it as verbose. This integration is experimental, we can change it in very near future.
| renderer_type: str = "ovrtx" | ||
| """Type identifier for OVRTX renderer.""" | ||
|
|
||
| simple_shading_mode: bool = True |
There was a problem hiding this comment.
To be clear, this MR only exposes this config but the support is not implemented yet, I will follow to add the implementation. Correct?
| log_level: str = "verbose" | ||
| """OVRTX carb log level: "verbose", "info", "warn", "error".""" | ||
|
|
||
| log_file_path: str = "/tmp/ovrtx_renderer.log" |
There was a problem hiding this comment.
This is hardcoded to Linux system path. I think you want something like this:
log_file_path: str = str(Path(tempfile.gettempdir()) / "ovrtx_renderer.log")There was a problem hiding this comment.
Good point, i will make a MR fixing it. Thanks!
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