asset_utils
download_assets()
Download OmniGibson assets
Source code in omnigibson/utils/asset_utils.py
download_demo_data(accept_license=False)
Download OmniGibson demo dataset
Source code in omnigibson/utils/asset_utils.py
download_og_dataset(accept_license=False)
Download OmniGibson dataset
Source code in omnigibson/utils/asset_utils.py
get_all_object_categories()
Get OmniGibson all object categories
Returns:
Type | Description |
---|---|
list
|
all object categories |
Source code in omnigibson/utils/asset_utils.py
get_all_object_category_models(category)
Get all object models from @category
Parameters:
Name | Type | Description | Default |
---|---|---|---|
category |
str
|
Object category name |
required |
Returns:
Type | Description |
---|---|
list of str
|
all object models belonging to @category |
Source code in omnigibson/utils/asset_utils.py
get_all_object_category_models_with_abilities(category, abilities)
Get all object models from @category whose assets are properly annotated with necessary requirements to support abilities @abilities
Parameters:
Name | Type | Description | Default |
---|---|---|---|
category |
str
|
Object category name |
required |
abilities |
dict
|
Dictionary mapping requested abilities to keyword arguments to pass to the corresponding object state constructors. The abilities' required annotations will be guaranteed for the returned models |
required |
Returns:
Type | Description |
---|---|
list of str
|
all object models belonging to @category which are properly annotated with necessary requirements to support the requested list of @abilities |
Source code in omnigibson/utils/asset_utils.py
get_all_object_models()
Get OmniGibson all object models
Returns:
Type | Description |
---|---|
list
|
all object model paths |
Source code in omnigibson/utils/asset_utils.py
get_all_system_categories(include_cloth=False)
Get OmniGibson all system categories
Parameters:
Name | Type | Description | Default |
---|---|---|---|
include_cloth |
bool
|
whether to include cloth category; default to only include non-cloth particle systems |
False
|
Returns:
Type | Description |
---|---|
list
|
all system categories |
Source code in omnigibson/utils/asset_utils.py
get_attachment_metalinks(category, model)
Get attachment metalinks for an object model
Parameters:
Name | Type | Description | Default |
---|---|---|---|
category |
str
|
Object category name |
required |
model |
str
|
Object model name |
required |
Returns:
Type | Description |
---|---|
list of str
|
all attachment metalinks for the object model |
Source code in omnigibson/utils/asset_utils.py
get_available_g_scenes()
Returns:
Type | Description |
---|---|
list
|
available Gibson scenes |
get_available_og_scenes()
OmniGibson interactive scenes
Returns:
Type | Description |
---|---|
list
|
Available OmniGibson interactive scenes |
Source code in omnigibson/utils/asset_utils.py
get_og_assets_version()
Returns:
Type | Description |
---|---|
str
|
OmniGibson asset version |
Source code in omnigibson/utils/asset_utils.py
get_og_avg_category_specs()
Load average object specs (dimension and mass) for objects
Returns:
Type | Description |
---|---|
dict
|
Average category specifications for all object categories |
Source code in omnigibson/utils/asset_utils.py
get_og_category_ids()
Get OmniGibson object categories
Returns:
Type | Description |
---|---|
str
|
file path to the scene name |
Source code in omnigibson/utils/asset_utils.py
get_og_category_path(category_name)
Get OmniGibson object category path
Parameters:
Name | Type | Description | Default |
---|---|---|---|
category_name |
str
|
object category |
required |
Returns:
Type | Description |
---|---|
str
|
file path to the object category |
Source code in omnigibson/utils/asset_utils.py
get_og_model_path(category_name, model_name)
Get OmniGibson object model path
Parameters:
Name | Type | Description | Default |
---|---|---|---|
category_name |
str
|
object category |
required |
model_name |
str
|
object model |
required |
Returns:
Type | Description |
---|---|
str
|
file path to the object model |
Source code in omnigibson/utils/asset_utils.py
get_og_scene_path(scene_name)
Get OmniGibson scene path
Parameters:
Name | Type | Description | Default |
---|---|---|---|
scene_name |
str
|
scene name, e.g., "Rs_int" |
required |
Returns:
Type | Description |
---|---|
str
|
file path to the scene name |
Source code in omnigibson/utils/asset_utils.py
get_scene_path(scene_id)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
scene_id |
str
|
scene id, e.g., "Rs_int" |
required |
Returns:
Type | Description |
---|---|
str
|
scene path for this scene_id |
Source code in omnigibson/utils/asset_utils.py
get_texture_file(mesh_file)
Get texture file
Parameters:
Name | Type | Description | Default |
---|---|---|---|
mesh_file |
str
|
path to mesh obj file |
required |
Returns:
Type | Description |
---|---|
str
|
texture file path |
Source code in omnigibson/utils/asset_utils.py
is_dot_file(p)
Check if a filename starts with a dot. Note that while this does not actually correspond to checking for hidden files on Windows, the files we want to ignore will still start with a dot and thus this works.
Returns:
Type | Description |
---|---|
bool
|
true if a folder is hidden in the OS |