factory
get_state_dependency_graph(states=None)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
states
|
None or Iterable
|
If specified, specific state(s) to sort. Otherwise, will generate dependency graph over all states |
None
|
Returns:
Type | Description |
---|---|
DiGraph
|
State dependency graph of supported object states |
Source code in omnigibson/object_states/factory.py
get_states_by_dependency_order(states=None)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
states
|
None or Iterable
|
If specified, specific state(s) to sort. Otherwise, will generate dependency graph over all states |
None
|
Returns:
Type | Description |
---|---|
list
|
all states in topological order of dependency |