static_traversable_scene
StaticTraversableScene
Bases: TraversableScene
Static traversable scene class for OmniGibson, where scene is defined by a singular mesh (no intereactable objects)
Source code in omnigibson/scenes/static_traversable_scene.py
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 |
|
__init__(scene_model, 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)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
scene_model
|
str
|
Scene model name, e.g.: Adrian |
required |
scene_file
|
None or str
|
If specified, full path of JSON file to load (with .json). None results in no additional objects being loaded into the scene |
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
|
Source code in omnigibson/scenes/static_traversable_scene.py
get_floor_height(floor=0)
Return the current floor height (in meter)
Returns:
Type | Description |
---|---|
int
|
current floor height |
move_floor_plane(floor=0, additional_elevation=0.02, height=None)
Resets the floor plane to a new floor
Parameters:
Name | Type | Description | Default |
---|---|---|---|
floor
|
int
|
Integer identifying the floor to move the floor plane to |
0
|
additional_elevation
|
float
|
Additional elevation with respect to the height of the floor |
0.02
|
height
|
None or float
|
If specified, alternative parameter to directly control the height of the ground plane. Note that this will override @additional_elevation and @floor! |
None
|