wrapper_base
This file contains the base wrapper class for OmnOmniGibson environments Wrappers are useful for data collection and logging. Highly recommended.
BaseWrapper
Base class for all wrappers in OmniGibson
Parameters:
Name | Type | Description | Default |
---|---|---|---|
env |
OmniGibsonEnv
|
The environment to wrap. |
required |
Source code in omnigibson/wrappers/wrapper_base.py
unwrapped
property
Grabs unwrapped environment
Returns:
Name | Type | Description |
---|---|---|
env |
OmniGibsonEnv
|
The unwrapped environment |
observation_spec()
By default, grabs the normal environment observation_spec
Returns:
Name | Type | Description |
---|---|---|
dict | Observations from the environment |
reset()
By default, run the normal environment reset() function
Returns:
Name | Type | Description |
---|---|---|
dict | Environment observation space after reset occurs |
step(action)
By default, run the normal environment step() function
Parameters:
Name | Type | Description | Default |
---|---|---|---|
action |
np.array
|
action to take in environment |
required |
Returns:
Type | Description |
---|---|
4-tuple: - (dict) observations from the environment - (float) reward from the environment - (bool) whether the current episode is completed or not - (dict) misc information |