MCPcopy Create free account

hub / github.com/Hongcheng-Gao/SpatialWorld / functions

Functions1,798 in github.com/Hongcheng-Gao/SpatialWorld

↓ 2,899 callersMethodget
Get configuration value (supports dot-separated paths) Args: key_path: Configuration key path, e.g., "model.vlm.temperatu
configs/carla/load_config.py:343
↓ 220 callersMethodlog_info
mllm_base_agent/environments/game/utils/logger.py:157
↓ 90 callersMethodmove
(self, direction, face, times=1)
mllm_base_agent/environments/game/games/rubik_cube/rubik.py:128
↓ 47 callersMethodcopy
(self)
mllm_base_agent/environments/game/games/Snake/main.py:38
↓ 44 callersMethodget_colors
(self, positions)
mllm_base_agent/environments/game/games/rubik_cube/rubik.py:150
↓ 34 callersMethodlog_error
mllm_base_agent/environments/game/utils/logger.py:145
↓ 34 callersMethodrun
(self, max_steps, verbatim=False)
mllm_base_agent/environments/embodiedcity/vln/agent.py:38
↓ 32 callersFunctioncanonicalize_object_type_name
Normalize object-type spelling to VirtualHome-friendly canonical form.
mllm_base_agent/environments/virtualhome/utils.py:119
↓ 28 callersMethodclose
(self)
mllm_base_agent/environments/base.py:26
↓ 25 callersMethod_iso_project
[ ] ,
mllm_base_agent/environments/game/games/Block3D/block3d_adapter.py:246
↓ 25 callersMethodiso_project
(self, x, y, z)
mllm_base_agent/environments/game/games/Block3D/main.py:110
↓ 23 callersMethodrender
mllm_base_agent/environments/game/games/maze3d/maze3d_adapter.py:146
↓ 21 callersFunctionupdate_csv_task_record
Update CSV row for a task: Completed status + optional extra analysis fields. extra_fields keys example: - golden_action - instructio
scripts/ai2thor/run_benchmark.py:496
↓ 18 callersMethodget
Get configuration value (supports dot-separated paths) Args: key_path: Configuration key path, e.g., "model.vlm.temperatu
configs/virtualhome/load_config.py:378
↓ 18 callersFunctionget_semantic_variants
Get all possible variants of an object type Args: object_type: Original object type (e.g., "Apple") Returns: Lis
evaluation/common/semantic_mapping.py:34
↓ 18 callersMethodrender
mllm_base_agent/environments/game/games/Block3D/block3d_adapter.py:139
↓ 17 callersMethodstep_with_action_dict
(self, action_dict: dict)
mllm_base_agent/environments/base.py:22
↓ 17 callersMethodstop_evaluation
evaluation/game/evaluation_engine.py:241
↓ 16 callersMethod_get_environment_graph_with_retry
Fetch environment_graph() with retries for Unity transient instability.
mllm_base_agent/environments/virtualhome/wrapper.py:716
↓ 16 callersFunctionparse_action_string
(action_string: str, env_type: str = "ai2thor", executor_type: Optional[str] = None)
actions/parser.py:386
↓ 16 callersMethodset_mode
(self, mode)
mllm_base_agent/environments/game/games/SOKOBAN_3D/Classes/Map/Map.py:305
↓ 15 callersFunctionget_response_text
OpenAI , API Args: response: OpenAI API api_type: API , None Returns:
mllm_base_agent/environments/game/utils/openai_utils.py:651
↓ 14 callersMethodget_all
Get complete configuration
configs/carla/load_config.py:380
↓ 14 callersMethodget_center
(self, color=None, position=None)
mllm_base_agent/environments/game/games/rubik_cube/rubik.py:169
↓ 14 callersFunctionsave_task_log
Save a single task log file.
scripts/procthor/run_benchmark.py:511
↓ 14 callersFunctionsave_task_log
Save a single task log file.
scripts/ai2thor/run_benchmark.py:608
↓ 14 callersFunctionsave_task_log
(task_id: str, log_content: str, logs_dir: Path, attempt: int, status: str)
mllm_base_agent/dual_agent/procthor/run_benchmark.py:345
↓ 13 callersMethodget
Get configuration value (supports dot-separated paths) Args: key_path: Configuration key path, e.g., "model.vlm.temperatu
configs/ai2thor/load_config.py:317
↓ 13 callersMethodget_section
Get a top-level section of configuration Args: section: Section name, e.g., "env", "task", "model" Retur
configs/carla/load_config.py:369
↓ 13 callersMethodget_state
mllm_base_agent/environments/game/games/maze3d/maze3d_adapter.py:232
↓ 13 callersMethodreset
(self, task_description: str, scene: Optional[str] = None)
mllm_base_agent/environments/base.py:18
↓ 13 callersMethodstep
( EnvAction ) spatial-planning/envs/ai2thor/wrapper.py Args: action:
mllm_base_agent/environments/procthor/wrapper.py:1568
↓ 13 callersMethodupdate
Update configuration value Args: key_path: Configuration key path value: New value
configs/carla/load_config.py:384
↓ 13 callersFunctionupdate_csv_task_record
Update CSV row for a task: Completed status + optional extra analysis fields. extra_fields keys example: - golden_action - instructio
scripts/virtualhome/run_benchmark.py:600
↓ 12 callersMethod_node_position
Extract world coordinates from a VirtualHome graph node.
mllm_base_agent/environments/virtualhome/wrapper.py:2930
↓ 12 callersMethodapply_task_by_name
Apply task configuration by name Priority: 1. First try to load from tasks/{task_name}/task.json 2. Fall back to task
configs/carla/load_config.py:210
↓ 12 callersMethodget_edge
(self, colors=None, positions=None)
mllm_base_agent/environments/game/games/rubik_cube/rubik.py:174
↓ 12 callersMethodget_xyg_image
(self, image_type, cameraID)
mllm_base_agent/environments/embodiedcity/vln/agent.py:374
↓ 12 callersMethodrelease
Unfreeze lights when the environment closes.
mllm_base_agent/environments/carla/traffic_lights.py:91
↓ 11 callersFunctioncopy_to_outputs_completed
Copy completed task (true or false) to outputs_completed dir. Returns: True if copy succeeded.
scripts/ai2thor/run_benchmark.py:372
↓ 11 callersFunctionencode_image
(image_path)
mllm_base_agent/environments/embodiedcity/prompts/utils.py:183
↓ 11 callersFunctionfind_character_ids
Find all character node IDs in the environment graph. VirtualHome character nodes have category 'Characters' or class_name starting with 'cha
mllm_base_agent/environments/virtualhome/utils.py:261
↓ 11 callersMethodrender
mllm_base_agent/environments/game/games/Snake/snake_adapter.py:155
↓ 11 callersMethodupdate
(self, dt)
mllm_base_agent/environments/game/games/Snake/main.py:124
↓ 10 callersMethod_get_live_char_yaw
Fetch a fresh graph snapshot and return current character yaw.
mllm_base_agent/environments/virtualhome/wrapper.py:1261
↓ 10 callersFunctionformat_vh_action_dict
Format a structured VH action dict into the prompt-compliant action string.
mllm_base_agent/environments/virtualhome/utils.py:523
↓ 10 callersFunctionnormalize_task_id
Normalize task ID (e.g. ai2thor_04000 -> ai2thor04000).
scripts/virtualhome/run_benchmark.py:500
↓ 10 callersFunctionsave_task_log
Save a single task log file.
scripts/virtualhome/run_benchmark.py:712
↓ 9 callersFunctiondraw_wall_segment
(surface, points, distance, is_exit=False)
mllm_base_agent/environments/game/games/maze3d/maze3d_pygame.py:210
↓ 9 callersMethodget_corner
(self, colors=None, positions=None)
mllm_base_agent/environments/game/games/rubik_cube/rubik.py:180
↓ 9 callersFunctionload_config
(config_path: str | Path | None = None, **overrides: Any)
config.py:13
↓ 9 callersMethodmoveToPosition
(self, position)
mllm_base_agent/environments/embodiedcity/vln/agent.py:237
↓ 9 callersMethodplayer_move
(self, direction)
mllm_base_agent/environments/game/games/SOKOBAN_3D/Classes/Map/Map.py:31
↓ 9 callersMethodstep
Execute one step action Args: action: Environment action Returns: New observation
mllm_base_agent/environments/ai2thor/wrapper.py:574
↓ 8 callersMethod_get_current_observation
( self, prefix: str = "obs", reward: float = 0.0, done: bool = False,
mllm_base_agent/environments/carla/wrapper.py:1179
↓ 8 callersMethod_make_request
(self, action: str, *args)
mllm_base_agent/environments/embodiedcity/client.py:51
↓ 8 callersMethod_project_grid
(self, point)
mllm_base_agent/environments/game/games/Snake/snake_adapter.py:336
↓ 8 callersFunctionagent_can_continue
(state: dict, agent_id: str)
mllm_base_agent/dual_agent/procthor/main.py:293
↓ 8 callersMethodbodyframe2worldframe
(self, bodyframe)
mllm_base_agent/environments/embodiedcity/vln/agent.py:225
↓ 8 callersFunctionbuild_csv_extra_fields
Build extra CSV columns for per-task analysis.
scripts/virtualhome/run_benchmark.py:1066
↓ 8 callersFunctionbuild_csv_extra_fields
Build extra CSV columns for per-task analysis.
scripts/ai2thor/run_benchmark.py:942
↓ 8 callersFunctioncheck_eval_run_finished
python -m scripts.carla.work.run_task JSON( ) (success: false) ,
scripts/carla/run_benchmark.py:302
↓ 8 callersFunctioncopy_to_outputs_completed
Copy completed task (true or false) to outputs_completed dir. Returns: True if copy succeeded.
scripts/procthor/run_benchmark.py:387
↓ 8 callersFunctioncreate_openai_response
OpenAI API - API , : prompt , tools Args: client: OpenAI model:
mllm_base_agent/environments/game/utils/openai_utils.py:337
↓ 8 callersFunctiondraw_text
mllm_base_agent/environments/game/games/SOKOBAN_3D/sokoban_single_level.py:399
↓ 8 callersMethodget_current_state
(self)
mllm_base_agent/environments/embodiedcity/vln/agent.py:448
↓ 8 callersMethodget_game_state
( ) Returns: Optional[GameState]: , None
mllm_base_agent/environments/game/core/input_source.py:67
↓ 8 callersMethodget_state
(self)
mllm_base_agent/environments/embodiedcity/vln/base_navigator.py:27
↓ 8 callersMethodlog_warning
mllm_base_agent/environments/game/utils/logger.py:149
↓ 8 callersMethodmove_down
(self)
mllm_base_agent/environments/game/games/SOKOBAN_3D/Classes/Map/Player.py:11
↓ 8 callersMethodmove_left
(self)
mllm_base_agent/environments/game/games/SOKOBAN_3D/Classes/Map/Player.py:14
↓ 8 callersMethodmove_right
(self)
mllm_base_agent/environments/game/games/SOKOBAN_3D/Classes/Map/Player.py:17
↓ 8 callersMethodmove_up
(self)
mllm_base_agent/environments/game/games/SOKOBAN_3D/Classes/Map/Player.py:8
↓ 8 callersFunctionnormalize_task_id
Normalize task ID (e.g. ai2thor_04000 -> ai2thor04000).
scripts/ai2thor/run_benchmark.py:395
↓ 8 callersFunctionnormalize_task_id
Normalize task id, e.g. procthor_201 -> procthor201.
mllm_base_agent/dual_agent/procthor/run_benchmark.py:82
↓ 8 callersMethodproject_grid
(self, point)
mllm_base_agent/environments/game/games/Snake/main.py:186
↓ 8 callersMethodrender
mllm_base_agent/environments/game/games/rubik_cube/rubik_cube_adapter.py:141
↓ 8 callersMethodrender
mllm_base_agent/environments/game/games/maze3d_pro/maze3d_pro_adapter.py:129
↓ 8 callersFunctionresolve_max_steps_from_task
Resolve max_steps using 10 + 2n, falling back only when n is unknown.
actions/max_steps.py:110
↓ 8 callersMethodshuffle
(rubik, steps)
mllm_base_agent/environments/game/games/rubik_cube/utilities.py:10
↓ 8 callersFunctionupdate_csv_task_record
Update the row matching task_id. status=None means keep empty (null).
mllm_base_agent/dual_agent/procthor/run_benchmark.py:189
↓ 8 callersFunctionupdate_csv_task_status
Update Completed status for the given task in CSV. Thread-safe if lock provided.
scripts/procthor/run_benchmark.py:442
↓ 7 callersFunction_find_column
(fieldnames: list[str] | None, candidates: tuple[str, ...])
scripts/aggregate_results_by_category.py:43
↓ 7 callersMethodbuild_map
(self)
mllm_base_agent/environments/game/games/SOKOBAN_3D/Classes/Map/Map.py:117
↓ 7 callersMethodclose
mllm_base_agent/environments/game/games/rubik_cube/rubik_cube_adapter.py:432
↓ 7 callersFunctioncopy_to_outputs_completed
Copy completed task (true or false) to outputs_completed dir. Returns: True if copy succeeded.
scripts/virtualhome/run_benchmark.py:477
↓ 7 callersMethodget
(self, key_path: str, default: Any = None)
configs/procthor/load_config.py:233
↓ 7 callersMethodget_all
(self)
mllm_base_agent/config/__init__.py:12
↓ 7 callersFunctionget_closest_heading
(heading, headings)
mllm_base_agent/environments/embodiedcity/vln/base_navigator.py:144
↓ 7 callersMethodinit
mllm_base_agent/environments/game/games/maze3d/maze3d_adapter.py:70
↓ 7 callersMethodinvoke
(self, initial_state: AgentState, config: Optional[dict] = None)
mllm_base_agent/agent/runner.py:506
↓ 7 callersFunctionload_config
Load configuration file (convenience function) Args: config_path: Configuration file path **overrides: Command line override
configs/carla/load_config.py:422
↓ 7 callersFunctionregister_env
(name: str, factory: Callable[[Optional[Dict[str, Any]]], Any])
mllm_base_agent/environments/__init__.py:15
↓ 7 callersFunctionsave_task_log
Args: task_id: ID log_content: logs_dir: attempt: ( ) status: (
scripts/carla/run_benchmark.py:881
↓ 7 callersMethodupdate
mllm_base_agent/environments/game/games/Block3D/block3d_adapter.py:123
↓ 6 callersMethod_build_metadata
( self, success: bool = False, error: Optional[str] = None )
mllm_base_agent/environments/carla/wrapper.py:977
↓ 6 callersMethod_get_char_yaw
Read the current character yaw from the latest graph snapshot.
mllm_base_agent/environments/virtualhome/wrapper.py:2950
↓ 6 callersFunction_normalize_token_usage
(raw_usage: Optional[dict])
mllm_base_agent/agent/runner.py:54
↓ 6 callersMethod_position_distance
Euclidean distance between two [x, y, z] positions (horizontal only).
mllm_base_agent/environments/virtualhome/wrapper.py:966
↓ 6 callersMethod_save_frame
; spatial-planning/envs/ai2thor/wrapper.py :``<output_dir>/{prefix}_{timestamp}.png`` :``<output_dir>/agent{k}/{prefix}_
mllm_base_agent/environments/procthor/wrapper.py:1832
next →1–100 of 1,798, ranked by callers