asset_utils
download_behavior_1k_assets(accept_license=False)
Download BEHAVIOR-1K dataset
Source code in OmniGibson/omnigibson/utils/asset_utils.py
download_omnigibson_robot_assets(upgrade=False)
Download OmniGibson robot assets
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
upgrade
|
bool
|
If True, remove existing installation and redownload if no version or older version |
False
|
Source code in OmniGibson/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/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/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/omnigibson/utils/asset_utils.py
238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 | |
get_all_object_models()
Get OmniGibson all object models
Returns:
| Type | Description |
|---|---|
list
|
all object model paths |
Source code in OmniGibson/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/omnigibson/utils/asset_utils.py
get_attachment_meta_links(category, model)
Get attachment meta links 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 meta links for the object model |
Source code in OmniGibson/omnigibson/utils/asset_utils.py
get_available_behavior_1k_scenes()
OmniGibson interactive scenes
Returns:
| Type | Description |
|---|---|
list
|
Available OmniGibson interactive scenes |
Source code in OmniGibson/omnigibson/utils/asset_utils.py
get_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/omnigibson/utils/asset_utils.py
get_behavior_1k_assets_version()
Returns:
| Type | Description |
|---|---|
str
|
BEHAVIOR-1K dataset version |
Source code in OmniGibson/omnigibson/utils/asset_utils.py
get_behavior_1k_category_ids()
Get OmniGibson object categories
Returns:
| Type | Description |
|---|---|
str
|
file path to the scene name |
Source code in OmniGibson/omnigibson/utils/asset_utils.py
get_category_path(category_name, dataset_name='behavior-1k-assets')
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/omnigibson/utils/asset_utils.py
get_model_path(category_name, model_name, dataset_name='behavior-1k-assets')
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/omnigibson/utils/asset_utils.py
get_omnigibson_git_hash()
Returns:
| Type | Description |
|---|---|
str
|
OmniGibson commit hash |
Source code in OmniGibson/omnigibson/utils/asset_utils.py
get_omnigibson_robot_asset_version()
Returns:
| Type | Description |
|---|---|
str
|
OmniGibson assets version |
Source code in OmniGibson/omnigibson/utils/asset_utils.py
get_scene_path(scene_name, dataset_name='behavior-1k-assets')
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/omnigibson/utils/asset_utils.py
get_task_instance_path(scene_name, instance_name, mode='train')
Get task instance path
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
scene_name
|
str
|
scene name, e.g., "Rs_int" |
required |
instance_name
|
str
|
instance name, e.g., "house_double_floor_lower_task_turning_on_radio_0_0_template" |
required |
mode
|
str
|
Instance split to load. One of "train", "public_test", or "hidden_test". |
'train'
|
Returns:
| Type | Description |
|---|---|
str
|
file path to the scene name |
Source code in OmniGibson/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/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 |