Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions docs/source/policy_deployment/00_hover/hover_policy.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.. _sim2real:

Training & Deploying HOVER Policy
=================================

Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ...isaaclab_tasks/test/golden_images/cartpole/newton-isaacsim_rtx_renderer-rgb.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ...saaclab_tasks/test/golden_images/cartpole/newton-isaacsim_rtx_renderer-rgba.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ...mages/cartpole/newton-isaacsim_rtx_renderer-simple_shading_constant_diffuse.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ...den_images/cartpole/newton-isaacsim_rtx_renderer-simple_shading_diffuse_mdl.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ...golden_images/cartpole/newton-isaacsim_rtx_renderer-simple_shading_full_mdl.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .../isaaclab_tasks/test/golden_images/cartpole/physx-isaacsim_rtx_renderer-rgb.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ...isaaclab_tasks/test/golden_images/cartpole/physx-isaacsim_rtx_renderer-rgba.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ...images/cartpole/physx-isaacsim_rtx_renderer-simple_shading_constant_diffuse.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ...lden_images/cartpole/physx-isaacsim_rtx_renderer-simple_shading_diffuse_mdl.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .../golden_images/cartpole/physx-isaacsim_rtx_renderer-simple_shading_full_mdl.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
27 changes: 13 additions & 14 deletions source/isaaclab_tasks/test/test_rendering_correctness.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"""Tests for rendering correctness.

Each test builds an environment with a given (physics_backend, renderer, data_type),
steps once, then checks if camera outputs are not blank (at least one non-zero
resets, then checks if camera outputs are not blank (at least one non-zero
pixel) and consistent with golden images. Env-specific fixtures use parametrized
combinations; a separate test covers a list of registered task IDs that use
camera-based observations.
Expand Down Expand Up @@ -374,8 +374,10 @@ def _generate_html_report() -> None:
"<th>ACTUAL</th>"
"<th>GOLDEN</th>"
"</tr></thead>\n"
"<tbody>\n" + "\n".join(rows) + "\n</tbody>\n</table>\n</body>\n</html>\n"
"<tbody>\n" + "\n".join(rows) + "\n</tbody>\n</table>\n"
f"<p>Generated:&nbsp;{datetime.now().astimezone().isoformat(timespec='seconds')}.</p>\n"
"</body>\n"
"</html>\n"
)

with open(report_path, "w", encoding="utf-8") as f:
Expand Down Expand Up @@ -577,15 +579,12 @@ def _validate_camera_outputs(

_COMPARISON_SCORES.append(entry)

if not succeeded:
timestamp = datetime.now().strftime("%Y-%m-%d-%H-%M-%S")
result_path = os.path.join(golden_image_dir, f"{physics_backend}-{renderer}-{data_type}-{timestamp}.png")
result_image.save(result_path)
pytest.fail(
f"[{test_name}] Inconsistency detected for camera output '{data_type}': {error_message}. "
f"Saved result image to {result_path} for further investigation. "
f"If result image is correct, please replace the golden image at {golden_path} with the result image."
)
assert succeeded, (
f"[{test_name}] Camera output does not match the golden image "
f"(physics={physics_backend}, renderer={renderer}, data_type={data_type}).\n"
f"Mismatch details: {error_message}\n"
f"Images were written to {_COMPARISON_IMAGES_DIR}."
)


def _collect_camera_outputs(env: object) -> dict[str, dict[str, torch.Tensor]]:
Expand Down Expand Up @@ -625,7 +624,7 @@ def _collect_camera_outputs(env: object) -> dict[str, dict[str, torch.Tensor]]:

@pytest.fixture(params=_PHYSICS_RENDERER_AOV_COMBINATIONS)
def shadow_hand_env(request):
"""Build Shadow Hand vision env for (physics_backend, renderer, data_type); step once, yield, close."""
"""Build Shadow Hand vision env for (physics_backend, renderer, data_type); reset, yield, close."""
from isaaclab_tasks.direct.shadow_hand.shadow_hand_vision_env import ShadowHandVisionEnv
from isaaclab_tasks.direct.shadow_hand.shadow_hand_vision_env_cfg import ShadowHandVisionEnvCfg

Expand Down Expand Up @@ -673,7 +672,7 @@ def test_shadow_hand(shadow_hand_env):

@pytest.fixture(params=_PHYSICS_RENDERER_AOV_COMBINATIONS)
def cartpole_env(request):
"""Build Cartpole camera env for (physics_backend, renderer, data_type); step once, yield, close."""
"""Build Cartpole camera env for (physics_backend, renderer, data_type); reset, yield, close."""
from isaaclab_tasks.direct.cartpole.cartpole_camera_env import CartpoleCameraEnv
from isaaclab_tasks.direct.cartpole.cartpole_camera_presets_env_cfg import CartpoleCameraPresetsEnvCfg

Expand Down Expand Up @@ -717,7 +716,7 @@ def test_cartpole(cartpole_env):

@pytest.fixture(params=_PHYSICS_RENDERER_AOV_COMBINATIONS)
def dexsuite_kuka_allegro_lift_env(request):
"""Build Dexsuite Kuka-Allegro Lift (single camera) for backend/renderer/data_type; step once, yield, close."""
"""Build Dexsuite Kuka-Allegro Lift (single camera) for backend/renderer/data_type; reset, yield, close."""
from isaaclab.envs import ManagerBasedRLEnv

from isaaclab_tasks.manager_based.manipulation.dexsuite.config.kuka_allegro.dexsuite_kuka_allegro_env_cfg import (
Expand Down
Loading