interactive_traversable_scene
InteractiveTraversableScene
Bases: TraversableScene
Create an interactive scene defined from a scene json file. In general, this supports curated, pre-defined scene layouts with annotated objects. This adds semantic support via a segmentation map generated for this specific scene.
Source code in omnigibson/scenes/interactive_traversable_scene.py
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 |
|
seg_map
property
Returns:
Type | Description |
---|---|
SegmentationMap
|
Map for segmenting this scene |
__init__(scene_model, scene_instance=None, scene_file=None, trav_map_resolution=0.1, default_erosion_radius=0.0, trav_map_with_objects=True, num_waypoints=10, waypoint_resolution=0.2, load_object_categories=None, not_load_object_categories=None, load_room_types=None, load_room_instances=None, load_task_relevant_only=False, seg_map_resolution=0.1, include_robots=True)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
scene_model
|
str
|
Scene model name, e.g.: Rs_int |
required |
scene_instance
|
None or str
|
name of json file to load (without .json); if None,
defaults to og_dataset/scenes/ |
None
|
scene_file
|
None or str
|
If specified, full path of JSON file to load (with .json). This will override scene_instance and scene_model! |
None
|
trav_map_resolution
|
float
|
traversability map resolution |
0.1
|
default_erosion_radius
|
float
|
default map erosion radius in meters |
0.0
|
trav_map_with_objects
|
bool
|
whether to use objects or not when constructing graph |
True
|
num_waypoints
|
int
|
number of way points returned |
10
|
waypoint_resolution
|
float
|
resolution of adjacent way points |
0.2
|
load_object_categories
|
None or list
|
if specified, only load these object categories into the scene |
None
|
not_load_object_categories
|
None or list
|
if specified, do not load these object categories into the scene |
None
|
load_room_types
|
None or list
|
only load objects in these room types into the scene |
None
|
load_room_instances
|
None or list
|
if specified, only load objects in these room instances into the scene |
None
|
load_task_relevant_only
|
bool
|
Whether only task relevant objects (and building structure) should be loaded |
False
|
seg_map_resolution
|
float
|
room segmentation map resolution |
0.1
|
include_robots
|
bool
|
whether to also include the robot(s) defined in the scene |
True
|
Source code in omnigibson/scenes/interactive_traversable_scene.py
filter_rooms_and_object_categories(load_object_categories, not_load_object_categories, load_room_types, load_room_instances)
Handle partial scene loading based on object categories, room types or room instances
Parameters:
Name | Type | Description | Default |
---|---|---|---|
load_object_categories
|
None or list
|
if specified, only load these object categories into the scene |
required |
not_load_object_categories
|
None or list
|
if specified, do not load these object categories into the scene |
required |
load_room_types
|
None or list
|
only load objects in these room types into the scene |
required |
load_room_instances
|
None or list
|
if specified, only load objects in these room instances into the scene |
required |
Source code in omnigibson/scenes/interactive_traversable_scene.py
get_scene_loading_info(scene_model, scene_instance=None)
Gets scene loading info to know what single USD file to load, specified indirectly via @scene_instance if it is specified, otherwise, will grab the "best" scene file to load.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
scene_model
|
str
|
Name of the scene to load, e.g, Rs_int, etc. |
required |
scene_instance
|
None or str
|
If specified, should be name of json file to load. (without .json), default to
og_dataset/scenes/ |
None
|
Returns:
Type | Description |
---|---|
str
|
Absolute path to the desired scene file (.json) to load |