Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Hongcheng-Gao/SpatialWorld
/ functions
Functions
1,798 in github.com/Hongcheng-Gao/SpatialWorld
⨍
Functions
1,798
◇
Types & classes
136
↓ 1 callers
Method
_agent_position_yaw_from_metadata
Read (x, y, z, yaw_deg) for an embodied agent from THOR metadata.
mllm_base_agent/environments/procthor/wrapper.py:644
↓ 1 callers
Method
_agent_position_yaw_from_metadata
Read (x, y, z, yaw_deg) for an embodied agent from THOR metadata.
mllm_base_agent/environments/ai2thor/wrapper.py:438
↓ 1 callers
Method
_apply_env_specific_defaults
Apply environment-specific defaults after YAML merge.
configs/virtualhome/load_config.py:138
↓ 1 callers
Function
_apply_init_coordinates
(env, init_data: dict)
scripts/evaluate_actions_carla.py:208
↓ 1 callers
Function
_apply_max_steps_from_golden
golden_actions , max_steps = 10 + 2 * n n actions Done , steps task_config
scripts/evaluate_actions_procthor.py:147
↓ 1 callers
Method
_auto_detect_x_display
/tmp/.X11-unix/X* X display `xdpyinfo` ; xdpyinfo socket None
mllm_base_agent/environments/procthor/wrapper.py:288
↓ 1 callers
Function
_build_messages
(state: AgentState, image_url: str)
mllm_base_agent/agent/runner.py:113
↓ 1 callers
Method
_build_script_line
Convert action parameters to a VirtualHome script string. Returns: (script_line, error_message). On success, error_message is Non
mllm_base_agent/environments/virtualhome/wrapper.py:2472
↓ 1 callers
Method
_build_success_predicate_from_config
spatial-planning/envs/ai2thor/wrapper.py Returns:
mllm_base_agent/environments/procthor/wrapper.py:807
↓ 1 callers
Method
_build_success_predicate_from_config
Build success condition predicate from YAML configured success_condition Returns: Success condition predicate function
mllm_base_agent/environments/ai2thor/wrapper.py:225
↓ 1 callers
Method
_camera_probe_position
Approximate active first-person camera world position from char pose.
mllm_base_agent/environments/virtualhome/wrapper.py:2194
↓ 1 callers
Method
_can_retry_held_object_placement
Retry PutBack/PutIn only if strict preconditions still hold.
mllm_base_agent/environments/virtualhome/wrapper.py:2919
↓ 1 callers
Method
_check_done
Check if the task success condition is met using the metadata dict. Mirrors AI2ThorEnvWrapper._check_done logic; works on the AI2THOR-compati
mllm_base_agent/environments/virtualhome/wrapper.py:2799
↓ 1 callers
Method
_coerce_position_list
Convert position payload to [x, y, z] list.
mllm_base_agent/environments/virtualhome/wrapper.py:1235
↓ 1 callers
Method
_collect_scene_object_type_sets
Collect (interactable_types, all_scene_types) from a graph snapshot.
mllm_base_agent/environments/virtualhome/wrapper.py:2596
↓ 1 callers
Method
_compute_reward
Return a step reward (small bonus/penalty); task completion reward is added by caller.
mllm_base_agent/environments/virtualhome/wrapper.py:3876
↓ 1 callers
Method
_compute_reward
( ) spatial-planning/envs/ai2thor/wrapper.py
mllm_base_agent/environments/procthor/wrapper.py:1812
↓ 1 callers
Method
_compute_reward
Calculate reward (generalized version, supports different tasks) **Uses reward parameters from YAML config**: - step_success_bonus: S
mllm_base_agent/environments/ai2thor/wrapper.py:1884
↓ 1 callers
Method
_compute_reward_from_metadata
spatial-planning/envs/ai2thor/wrapper.py
mllm_base_agent/environments/procthor/wrapper.py:1333
↓ 1 callers
Method
_compute_reward_from_metadata
Calculate reward based on metadata and action result
mllm_base_agent/environments/ai2thor/wrapper.py:1144
↓ 1 callers
Function
_condition_label
(condition: Dict[str, Any])
scripts/evaluate_actions_virtualhome.py:833
↓ 1 callers
Method
_condition_satisfied
(self, condition: Dict[str, Any], metadata: dict)
mllm_base_agent/environments/ai2thor/wrapper.py:1919
↓ 1 callers
Function
_configure_env_from_task
task_config success_conditions env success_predicate wrapper reset/step , target_object_types target_description
scripts/evaluate_actions_virtualhome.py:765
↓ 1 callers
Method
_convert_action
EnvAction AI2-THOR spatial-planning/envs/ai2thor/wrapper.py
mllm_base_agent/environments/procthor/wrapper.py:1639
↓ 1 callers
Method
_convert_action
Convert EnvAction to AI2-THOR action sequence **Dual-mode support (optimized)**: 1. Priority mode: If action.thor_actions is non-empt
mllm_base_agent/environments/ai2thor/wrapper.py:1162
↓ 1 callers
Method
_convert_from_move_turn_interact
move/turn/interact spatial-planning/envs/ai2thor/wrapper.py
mllm_base_agent/environments/procthor/wrapper.py:1680
↓ 1 callers
Method
_convert_from_move_turn_interact
Traditional abstract action conversion logic (backward compatible) Uses "prioritize target object" strategy: 1. If target object type
mllm_base_agent/environments/ai2thor/wrapper.py:1425
↓ 1 callers
Method
_convert_interaction_action
( ) spatial-planning/envs/ai2thor/wrapper.py For PickupObject: SEMANTIC_OBJECT_MAPPING
mllm_base_agent/environments/procthor/wrapper.py:1134
↓ 1 callers
Method
_convert_interaction_action
Convert interaction action For PickupObject: Supports semantic searching based on SEMANTIC_OBJECT_MAPPING. When model outputs PickupO
mllm_base_agent/environments/ai2thor/wrapper.py:875
↓ 1 callers
Method
_convert_navigation_action
( ) spatial-planning/envs/ai2thor/wrapper.py Args: action_name: magnitude: (
mllm_base_agent/environments/procthor/wrapper.py:1106
↓ 1 callers
Method
_convert_navigation_action
Convert navigation action Supported navigation actions: - Translation: MoveAhead, MoveBack, MoveLeft, MoveRight (use magnitude or def
mllm_base_agent/environments/ai2thor/wrapper.py:835
↓ 1 callers
Method
_create_temp_sample
,
mllm_base_agent/environments/game/games/maze3d_pro/maze3d_pro_adapter.py:109
↓ 1 callers
Function
_dedupe_and_sort_object_types
(object_types: Iterable[str])
mllm_base_agent/prompts/virtualhome.py:93
↓ 1 callers
Method
_deep_copy_dict
Deep copy dictionary
configs/carla/load_config.py:316
↓ 1 callers
Method
_deep_copy_dict
Deep copy dictionary
configs/virtualhome/load_config.py:351
↓ 1 callers
Method
_deep_copy_dict
Deep copy dictionary
configs/ai2thor/load_config.py:290
↓ 1 callers
Function
_degree_params
(angle: Optional[str])
actions/parser.py:111
↓ 1 callers
Function
_derive_task_result
Derive success/failure/null task_result for logs.
scripts/virtualhome/work/run_task.py:33
↓ 1 callers
Method
_determine_interaction_action
spatial-planning/envs/ai2thor/wrapper.py
mllm_base_agent/environments/procthor/wrapper.py:1713
↓ 1 callers
Method
_determine_interaction_action
Determine interaction action based on object properties and task semantics Args: obj: Object metadata Returns:
mllm_base_agent/environments/ai2thor/wrapper.py:1523
↓ 1 callers
Method
_draw_3d_scene
[ ] 3D ( )
mllm_base_agent/environments/game/games/Block3D/block3d_adapter.py:339
↓ 1 callers
Method
_draw_axis_gizmo
mllm_base_agent/environments/game/games/Snake/snake_adapter.py:468
↓ 1 callers
Method
_draw_cube
[ ] 3D ,
mllm_base_agent/environments/game/games/Block3D/block3d_adapter.py:270
↓ 1 callers
Method
_draw_direction_guides
[ ]
mllm_base_agent/environments/game/games/Snake/snake_adapter.py:427
↓ 1 callers
Method
_draw_drop_shadow
[ ]
mllm_base_agent/environments/game/games/Block3D/block3d_adapter.py:262
↓ 1 callers
Method
_draw_game_info
mllm_base_agent/environments/game/games/rubik_cube/rubik_cube_adapter.py:413
↓ 1 callers
Method
_draw_grid_lattice
[ ] ( + )
mllm_base_agent/environments/game/games/Snake/snake_adapter.py:342
↓ 1 callers
Method
_draw_key_indicator
mllm_base_agent/environments/game/games/rubik_cube/rubik_cube_adapter.py:406
↓ 1 callers
Method
_draw_orientation
mllm_base_agent/environments/game/games/rubik_cube/rubik_cube_adapter.py:399
↓ 1 callers
Method
_draw_orthographic_views
( , )
mllm_base_agent/environments/game/games/Block3D/block3d_adapter.py:307
↓ 1 callers
Method
_draw_projection_lines
[ ] ,
mllm_base_agent/environments/game/games/Block3D/block3d_adapter.py:393
↓ 1 callers
Method
_draw_rubik
mllm_base_agent/environments/game/games/rubik_cube/rubik_cube_adapter.py:370
↓ 1 callers
Method
_draw_snake_body_lines
[ ] ( )
mllm_base_agent/environments/game/games/Snake/snake_adapter.py:378
↓ 1 callers
Method
_draw_surface
mllm_base_agent/environments/game/games/rubik_cube/rubik_cube_adapter.py:388
↓ 1 callers
Method
_draw_ui
Agent UI
mllm_base_agent/environments/game/games/maze3d_pro/maze3d_pro_adapter.py:154
↓ 1 callers
Function
_enable_console_write_fallback
Avoid hard crashes on non-UTF8 terminals (e.g. Windows cmd GBK).
configs/virtualhome/load_config.py:20
↓ 1 callers
Function
_enable_console_write_fallback
()
scripts/virtualhome/run_benchmark.py:88
↓ 1 callers
Method
_ensure_first_person_cameras
Register/update dedicated first-person cameras and return their IDs. Returns interact-compatible camera IDs: the last N indices from
mllm_base_agent/environments/virtualhome/wrapper.py:3763
↓ 1 callers
Function
_ensure_installed_virtualhome_path
pip virtualhome sys.path( __init__.py )
mllm_base_agent/environments/virtualhome/wrapper.py:93
↓ 1 callers
Method
_evaluate_single_condition
Evaluate a single condition Args: condition: Single condition configuration env: Environment instance met
evaluation/carla/base.py:187
↓ 1 callers
Method
_evaluate_single_condition
Evaluate a single condition Args: condition: Single condition configuration env: Environment instance met
evaluation/virtualhome/base.py:175
↓ 1 callers
Method
_evaluate_single_condition
Evaluate a single condition Args: condition: Single condition configuration env: Environment instance met
evaluation/procthor/base.py:129
↓ 1 callers
Method
_evaluate_single_condition
Evaluate a single condition Args: condition: Single condition configuration env: Environment instance met
evaluation/ai2thor/base.py:121
↓ 1 callers
Function
_execute_init_actions
(env, init_actions: list, executor_type)
scripts/evaluate_actions_carla.py:260
↓ 1 callers
Method
_execute_mapped_action
(self, action: Action)
mllm_base_agent/environments/game/input_sources/pygame_input_source.py:266
↓ 1 callers
Method
_execute_mapped_action
(self, action: Action)
mllm_base_agent/environments/game/input_sources/pygame_opengl_input_source.py:252
↓ 1 callers
Function
_extract_content
(result: Dict[str, Any])
mllm_base_agent/llm/provider.py:74
↓ 1 callers
Function
_fail_reason_is_action_format_exhausted
graph think_node fail_reason, ( ACTION) : Step 5 failed after 3 retries: Missing <ACTION> tag or empty ACTION conte
scripts/carla/run_benchmark.py:581
↓ 1 callers
Method
_find_collision_intrusion
Find an object bbox containing the character body/camera probe.
mllm_base_agent/environments/virtualhome/wrapper.py:2211
↓ 1 callers
Function
_find_eval_result_json
Find evaluation result json for a specific environment.
scripts/virtualhome/run_benchmark.py:334
↓ 1 callers
Method
_find_interaction_target
spatial-planning/envs/ai2thor/wrapper.py
mllm_base_agent/environments/procthor/wrapper.py:1743
↓ 1 callers
Method
_find_interaction_target
Automatically find suitable interaction target object Priority: 1. Visible target type objects (target_object_types) 2. Visib
mllm_base_agent/environments/ai2thor/wrapper.py:1254
↓ 1 callers
Method
_find_task_json
Find task.json file for a given task name Searches in tasks/{task_name}/task.json Supports task ID format conversion (with/wi
configs/carla/load_config.py:133
↓ 1 callers
Method
_find_task_json
Find task.json file for a given task name Searches in tasks/{task_name}/task.json Supports task ID format conversion (with/wi
configs/virtualhome/load_config.py:155
↓ 1 callers
Method
_find_task_json
Find task.json from standard dirs; support procthor000 / procthor_000. Search order: 1. <project_root>/dual_agent/task_mutil_procth
configs/procthor/load_config.py:100
↓ 1 callers
Method
_find_task_json
Find task.json file for a given task name Searches in tasks/{task_name}/task.json Supports task ID format conversion (with/wi
configs/ai2thor/load_config.py:122
↓ 1 callers
Function
_first_failure_step
(executed_actions: List[Dict[str, Any]])
scripts/evaluate_actions_virtualhome.py:931
↓ 1 callers
Method
_format_action
spatial-planning/envs/ai2thor/wrapper.py
mllm_base_agent/environments/procthor/wrapper.py:1796
↓ 1 callers
Method
_format_action
Format action for display Args: action: Environment action Returns: Formatted action string
mllm_base_agent/environments/ai2thor/wrapper.py:2039
↓ 1 callers
Method
_format_action_for_sequence
Format a compact human-readable action string for episode logs.
mllm_base_agent/environments/virtualhome/wrapper.py:3923
↓ 1 callers
Method
_game_has_finished
,
mllm_base_agent/environments/game/input_sources/pygame_input_source.py:283
↓ 1 callers
Method
_generate_first_person_text_state
spatial-planning/envs/ai2thor/wrapper.py
mllm_base_agent/environments/procthor/wrapper.py:1500
↓ 1 callers
Method
_generate_first_person_text_state
Strict first-person text: only provides action feedback and task hints
mllm_base_agent/environments/ai2thor/wrapper.py:1722
↓ 1 callers
Method
_generate_omniscient_text_state
spatial-planning/envs/ai2thor/wrapper.py
mllm_base_agent/environments/procthor/wrapper.py:1522
↓ 1 callers
Method
_generate_omniscient_text_state
Original omniscient view text state
mllm_base_agent/environments/ai2thor/wrapper.py:1751
↓ 1 callers
Function
_generate_single_floor
entry_pos: ( S, T) exit_stair_pos: ( None)
data/game/maze3d_pro/generate.py:22
↓ 1 callers
Method
_generate_task_status_summary
spatial-planning/envs/ai2thor/wrapper.py
mllm_base_agent/environments/procthor/wrapper.py:1865
↓ 1 callers
Method
_generate_task_status_summary
Generate status summary of task-related objects Provides key information about task goals to help Agent understand current task progress
mllm_base_agent/environments/ai2thor/wrapper.py:1805
↓ 1 callers
Method
_get_action_granularity
Read small/medium/large movement granularity from action metadata.
mllm_base_agent/environments/game/input_sources/pygame_opengl_input_source.py:237
↓ 1 callers
Method
_get_action_repeat
,
mllm_base_agent/environments/game/input_sources/pygame_input_source.py:211
↓ 1 callers
Method
_get_api_visible_object_ids
Return visible object ids from Unity get_visible_objects(camera_id).
mllm_base_agent/environments/virtualhome/wrapper.py:3403
↓ 1 callers
Method
_get_bound_instance_id
Return a previously bound instance id for the object type, if still valid.
mllm_base_agent/environments/virtualhome/wrapper.py:2023
↓ 1 callers
Method
_get_capabilities
Pygame
mllm_base_agent/environments/game/input_sources/pygame_opengl_input_source.py:30
↓ 1 callers
Method
_get_capabilities
Returns: Dict[str, bool]: , : - "real_time": - "supports_actio
mllm_base_agent/environments/game/core/input_source.py:17
↓ 1 callers
Method
_get_current_observation
( reset) : agent0 agent1 ``reset_*.png`` ``agent1/`` ``agent2/`` , agent0 observation
mllm_base_agent/environments/procthor/wrapper.py:1412
↓ 1 callers
Method
_get_instance_color_to_id
Map seg_inst RGB colors to graph object ids.
mllm_base_agent/environments/virtualhome/wrapper.py:3286
↓ 1 callers
Method
_get_latest_image
(self)
mllm_base_agent/environments/carla/wrapper.py:1149
↓ 1 callers
Method
_get_next_heading_intersection
(self, action)
mllm_base_agent/environments/embodiedcity/vln/base_navigator.py:103
↓ 1 callers
Method
_get_object_distance_to_char
Backward-compatible alias for surface distance.
mllm_base_agent/environments/virtualhome/wrapper.py:2154
↓ 1 callers
Method
_get_openai_client
(self)
mllm_base_agent/llm/provider.py:128
← previous
next →
601–700 of 1,798, ranked by callers