-
Notifications
You must be signed in to change notification settings - Fork 3.5k
[DO NOT MERGE] Test revert of PR #5521 to isolate viewergl failure #5539
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -9,6 +9,8 @@ | |
| from dataclasses import MISSING, field | ||
| from typing import TYPE_CHECKING, Literal | ||
|
|
||
| from isaaclab_physx.renderers import IsaacRtxRendererCfg | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
This top-level eager import makes |
||
|
|
||
| from isaaclab.renderers import RendererCfg | ||
| from isaaclab.sim import FisheyeCameraCfg, PinholeCameraCfg | ||
| from isaaclab.utils import configclass | ||
|
|
@@ -189,7 +191,7 @@ class OffsetCfg: | |
| on :attr:`renderer_cfg` instead. | ||
| """ | ||
|
|
||
| renderer_cfg: RendererCfg = field(default_factory=RendererCfg) | ||
| renderer_cfg: RendererCfg = field(default_factory=IsaacRtxRendererCfg) | ||
| """Renderer configuration for camera sensor.""" | ||
|
|
||
| def __post_init__(self): | ||
|
|
@@ -199,14 +201,6 @@ def __post_init__(self): | |
| :class:`DeprecationWarning` and is copied onto ``self.renderer_cfg`` | ||
| when that cfg defines the same-named field. | ||
| """ | ||
| # TODO when Camera.__init__ moves rtx_sensor setting out of camera initialization | ||
| # the default renderer config instantiation can be moved into the render factory | ||
| # and get_default_render_cfg method can be removed from backend_utils | ||
| renderer_type = getattr(self.renderer_cfg, "renderer_type", None) | ||
| if renderer_type == "default": | ||
| from isaaclab.utils.backend_utils import get_default_renderer_cfg | ||
|
|
||
| self.renderer_cfg = get_default_renderer_cfg() | ||
| # Forwarded by name: any same-named field on ``renderer_cfg`` will receive the value. | ||
| for field_name, default in _DEPRECATED_RENDERER_FIELD_DEFAULTS.items(): | ||
| value = getattr(self, field_name) | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
renderer_cfgThe pre-revert code used
getattr(self.cfg.renderer_cfg, "renderer_type", None)to safely handle arenderer_cfgobject that might not have arenderer_typeattribute (e.g., a custom or baseRendererCfgsubclass). After this revert the direct accessself.cfg.renderer_cfg.renderer_typewill raiseAttributeErrorif any non-RTXrenderer_cfginstance is used that does not definerenderer_type. If the baseRendererCfgclass guarantees that attribute this is benign, but the original defensive pattern was there for a reason.