asset_utils
change_data_path()
Changes the data paths for this repo
Source code in omnigibson/utils/asset_utils.py
download_assets()
Download OmniGibson assets
Source code in omnigibson/utils/asset_utils.py
download_demo_data()
download_og_dataset()
Download OmniGibson dataset
Source code in omnigibson/utils/asset_utils.py
get_all_object_categories()
Get OmniGibson all object categories
Returns:
Name | Type | Description |
---|---|---|
list | all object categories |
Source code in omnigibson/utils/asset_utils.py
get_all_object_models()
Get OmniGibson all object models
Returns:
Name | Type | Description |
---|---|---|
list | all object model paths |
Source code in omnigibson/utils/asset_utils.py
get_assisted_grasping_categories()
Generate a list of categories that can be grasped using assisted grasping, using labels provided in average category specs file.
Returns:
Type | Description |
---|---|
list of str: Object category allowlist for assisted grasping |
Source code in omnigibson/utils/asset_utils.py
get_available_g_scenes()
Returns:
Name | Type | Description |
---|---|---|
list | available Gibson scenes |
get_available_og_scenes()
OmniGibson interactive scenes
Returns:
Name | Type | Description |
---|---|---|
list | Available OmniGibson interactive scenes |
Source code in omnigibson/utils/asset_utils.py
get_object_models_of_category(category_name, filter_method=None)
Get OmniGibson all object models of a given category
TODO: Make this less ugly -- filter_method is a single hard-coded check
Parameters:
Name | Type | Description | Default |
---|---|---|---|
category_name |
str
|
object category |
required |
filter_method |
str
|
Method to use for filtering object models |
None
|
Returns:
Name | Type | Description |
---|---|---|
list | all object models of a given category |
Source code in omnigibson/utils/asset_utils.py
get_og_assets_version()
Returns:
Name | 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:
Name | 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:
Name | 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:
Name | 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:
Name | 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:
Name | 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:
Name | 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:
Name | 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:
Name | Type | Description |
---|---|---|
bool | true if a folder is hidden in the OS |