eval_utils
find_start_point(base_vel)
Find the first point where the base velocity is non-zero. This is used to skip the initial part of the dataset where the robot is not moving.
Source code in OmniGibson/omnigibson/eval/utils/eval_utils.py
flatten_obs_dict(obs, parent_key='')
Process the observation dictionary by recursively flattening the keys.
so obs["robot_r1"]["camera"]["rgb"] will become obs["robot_r1:::rgb"].
Source code in OmniGibson/omnigibson/eval/utils/eval_utils.py
generate_basic_environment_config(task_name, task_cfg)
Generate a basic environment configuration
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
task_name
|
str
|
Name of the task |
required |
task_cfg
|
Dictionary of task config |
required |
Returns:
| Type | Description |
|---|---|
dict
|
Environment configuration |
Source code in OmniGibson/omnigibson/eval/utils/eval_utils.py
get_robot_camera_names(robot_name, robot_eval_config)
Return flattened observation names for cameras configured by eval role.
Robot configs may include
eval: camera_sensor_names: head: robot_r1:zed_link:Camera:0
Values are robot sensor names, i.e. keys in robot.sensors. The flattened observation name adds the robot observation namespace.
Source code in OmniGibson/omnigibson/eval/utils/eval_utils.py
seed_everything(seed, deterministic_torch=False)
Seed Python, NumPy, and Torch RNGs used by eval.
Setting PYTHONHASHSEED here helps child processes and documents the intended seed, but hash randomization for the current Python process is fixed at interpreter startup.