Skip to content

Commit ed28313

Browse files
committed
Removing bespoke xr env adjustments
1 parent 44ad99e commit ed28313

File tree

2 files changed

+1
-82
lines changed

2 files changed

+1
-82
lines changed

scripts/environments/teleoperation/teleop_se3_agent.py

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
# not the one installed by Isaac Sim pinocchio is required by the Pink IK controllers and the
4646
# GR1T2 retargeter
4747
import pinocchio # noqa: F401
48-
if "handtracking" in args_cli.teleop_device.lower() or "motion_controllers" in args_cli.teleop_device.lower():
48+
if "handtracking" in args_cli.teleop_device.lower():
4949
app_launcher_args["xr"] = True
5050

5151
# launch omniverse app
@@ -96,8 +96,6 @@ def main() -> None:
9696
env_cfg.terminations.object_reached_goal = DoneTerm(func=mdp.object_reached_goal)
9797

9898
if args_cli.xr:
99-
# External cameras are not supported with XR teleop
100-
# Check for any camera configs and disable them
10199
env_cfg = remove_camera_configs(env_cfg)
102100
env_cfg.sim.render.antialiasing_mode = "DLSS"
103101
# Set flag for environment to know XR is enabled (if it supports it)
@@ -232,13 +230,6 @@ def stop_teleoperation() -> None:
232230
env.reset()
233231
teleop_interface.reset()
234232

235-
if args_cli.xr:
236-
# Configure environment based on teleop device type
237-
if hasattr(env.unwrapped, "setup_for_teleop_device") and callable(
238-
getattr(env.unwrapped, "setup_for_teleop_device")
239-
):
240-
env.unwrapped.setup_for_teleop_device(teleop_interface, args_cli) # type: ignore[attr-defined]
241-
242233
print("Teleoperation started. Press 'R' to reset the environment.")
243234

244235
# simulate environment

source/isaaclab_tasks/isaaclab_tasks/manager_based/locomanipulation/pick_place/locomanipulation_g1_env.py

Lines changed: 0 additions & 72 deletions
This file was deleted.

0 commit comments

Comments
 (0)