Skip to content

Commit

Permalink
Check object states dependency when we enable transition rules
Browse files Browse the repository at this point in the history
  • Loading branch information
hang-yin committed Oct 15, 2024
1 parent a819749 commit 6383f08
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions omnigibson/scenes/scene_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,7 @@ def load(self, idx, **kwargs):
self._pose_inv = th.linalg.inv_ex(self._pose).inverse

if gm.ENABLE_TRANSITION_RULES:
assert gm.ENABLE_OBJECT_STATES, "Transition rules require object states to be enabled!"
self._transition_rule_api = TransitionRuleAPI(scene=self)

# Always stop the sim if we started it internally
Expand Down

0 comments on commit 6383f08

Please sign in to comment.