Commit c84bb924 authored by peterd-NV's avatar peterd-NV Committed by Kelly Guo

Moves omni log import to later in record_demos.py (#334)

# Description

<!--
Thank you for your interest in sending a pull request. Please make sure
to check the contribution guidelines.

Link:
https://isaac-sim.github.io/IsaacLab/main/source/refs/contributing.html
-->

Move omni log import after app launcher in record demos script to fix
"No module named omni.log" error

## Type of change

<!-- As you go through the list, delete the ones that are not
applicable. -->

- Bug fix (non-breaking change which fixes an issue)


## Checklist

- [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with
`./isaaclab.sh --format`
- [x] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [ ] I have added tests that prove my fix is effective or that my
feature works
- [ ] I have updated the changelog and the corresponding version in the
extension's `config/extension.toml` file
- [ ] I have added my name to the `CONTRIBUTORS.md` or my name already
exists there

<!--
As you go through the checklist above, you can mark something as done by
putting an x character in it

For example,
- [x] I have done this task
- [ ] I have not done this task
-->
parent 6d2ffc2c
...@@ -35,9 +35,6 @@ import os ...@@ -35,9 +35,6 @@ import os
import time import time
import torch import torch
# Omniverse logger
import omni.log
# Isaac Lab AppLauncher # Isaac Lab AppLauncher
from isaaclab.app import AppLauncher from isaaclab.app import AppLauncher
...@@ -86,6 +83,9 @@ simulation_app = app_launcher.app ...@@ -86,6 +83,9 @@ simulation_app = app_launcher.app
if "handtracking" in args_cli.teleop_device.lower(): if "handtracking" in args_cli.teleop_device.lower():
from isaacsim.xr.openxr import OpenXRSpec from isaacsim.xr.openxr import OpenXRSpec
# Omniverse logger
import omni.log
# Additional Isaac Lab imports that can only be imported after the simulator is running # Additional Isaac Lab imports that can only be imported after the simulator is running
from isaaclab.devices import OpenXRDevice, Se3Keyboard, Se3SpaceMouse from isaaclab.devices import OpenXRDevice, Se3Keyboard, Se3SpaceMouse
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment