config_utils
dump_config(config)
Converts YML config into a string
Parameters:
Name | Type | Description | Default |
---|---|---|---|
config |
dict
|
Config to dump |
required |
Returns:
Name | Type | Description |
---|---|---|
str | Config as a string |
load_default_config()
Loads a default configuration to use for OmniGibson
Returns:
Name | Type | Description |
---|---|---|
dict | Loaded default configuration file |
parse_config(config)
Parse OmniGibson config file / object
Parameters:
Name | Type | Description | Default |
---|---|---|---|
config |
dict or str
|
Either config dictionary or path to yaml config to load |
required |
Returns:
Name | Type | Description |
---|---|---|
dict | Parsed config |
Source code in omnigibson/utils/config_utils.py
parse_str_config(config)
Parse string config
Parameters:
Name | Type | Description | Default |
---|---|---|---|
config |
str
|
Yaml cfg as a string to load |
required |
Returns:
Name | Type | Description |
---|---|---|
dict | Parsed config |