Skip to content

Commit

Permalink
Set livestream enabled to false unless it is otherwise specified (#374)
Browse files Browse the repository at this point in the history
From Isaac `2023.1.0-hotfix.1` to `2023.1.1`, `/app/livestream/enabled`
started to default to True. This breaks our logic w/r/t
`SimulationContext.render()`, which is now treating a headless instance
as one that needs full rendering. This causes problems with multiple
SimulationContext calls, and ultimately this bottoms out with this
[line](https://github.com/isaac-orbit/orbit/blob/670a8c97db645d50a3ea89b06f7366fc2212fc06/source/extensions/omni.isaac.orbit/omni/isaac/orbit/sim/simulation_context.py#L563)
sending us into an infinite rendering cycle from which i.e. unittest
cannot exit.

I fix this problem by setting `/app/livestream/enabled` to explicitly
False in AppLauncher unless otherwise requested. This corrects the hang.

Ultimately, the answer to this is #238, but in the meantime we need a
fix or this is a showstopper for unit testing.

Fixes #323

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

- [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with
`./orbit.sh --format`
- [ ] 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 run all the tests with `./orbit.sh --test` and they pass
- [x] I have updated the changelog and the corresponding version in the
extension's `config/extension.toml` file
- [x] I have added my name to the `CONTRIBUTORS.md` or my name already
exists there
  • Loading branch information
hhansen-bdai authored and Mayankm96 committed Feb 6, 2024
1 parent 670a8c9 commit 93ec2c6
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion source/extensions/omni.isaac.orbit/config/extension.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]

# Note: Semantic Versioning is used: https://semver.org/
version = "0.10.16"
version = "0.10.17"

# Description
title = "ORBIT framework for Robot Learning"
Expand Down
11 changes: 11 additions & 0 deletions source/extensions/omni.isaac.orbit/docs/CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
Changelog
---------

0.10.17 (2024-02-02)
~~~~~~~~~~~~~~~~~~~~

Fixed
^^^^^^

* Fixed carb setting ``/app/livestream/enabled`` to be set as False unless live-streaming is specified
by :class:`omni.isaac.orbit.app.AppLauncher` settings. This fixes the logic of :meth:`SimulationContext.render`,
which depended on the config in previous versions of Isaac defaulting to false for this setting.


0.10.16 (2024-01-29)
~~~~~~~~~~~~~~~~~~~~

Expand Down
2 changes: 2 additions & 0 deletions source/extensions/omni.isaac.orbit/omni/isaac/orbit/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -610,6 +610,8 @@ def _load_extensions(self):
enable_extension("omni.services.streamclient.webrtc")
else:
raise ValueError(f"Invalid value for livestream: {self._livestream}. Expected: 1, 2, 3 .")
else:
carb_settings_iface.set_bool("/app/livestream/enabled", False)

# As of IsaacSim 2022.1.1, the ros extension has to be loaded
# after the streaming extension or it will cause a segfault
Expand Down

0 comments on commit 93ec2c6

Please sign in to comment.