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
↓ 2 callers
Function
get_gold_nav
(instance, env)
mllm_base_agent/environments/embodiedcity/vln/env.py:84
↓ 2 callers
Method
get_observations
(self, states, step_id, landmarks, traffic_flow=None)
mllm_base_agent/environments/embodiedcity/vln/env.py:20
↓ 2 callers
Function
get_observations_str
(observations)
mllm_base_agent/environments/embodiedcity/vln/prompt_builder.py:50
↓ 2 callers
Method
get_obstacle_dis
mllm_base_agent/environments/embodiedcity/vln/agent.py:486
↓ 2 callers
Method
get_panorama_images
(self, image_type=0)
mllm_base_agent/environments/embodiedcity/vln/agent.py:344
↓ 2 callers
Method
get_prev_state
(self)
mllm_base_agent/environments/embodiedcity/vln/base_navigator.py:32
↓ 2 callers
Function
get_procthor_continuous_prompt
()
mllm_base_agent/prompts/procthor_continuous.py:72
↓ 2 callers
Function
get_procthor_prompt
Get ProcTHOR system prompt (aligned with AI2-THOR prompt structure).
mllm_base_agent/prompts/procthor.py:338
↓ 2 callers
Function
get_relative_angle
(curr_heading, heading)
mllm_base_agent/environments/embodiedcity/vln/base_navigator.py:149
↓ 2 callers
Function
get_response_text
OpenAI , API Args: response: OpenAI API api_type: API , None Returns:
scripts/utils/api_utils.py:573
↓ 2 callers
Method
get_section
Get a top-level section of configuration Args: section: Section name, e.g., "env", "task", "model" Retur
configs/virtualhome/load_config.py:404
↓ 2 callers
Method
get_section
Get a top-level section of configuration Args: section: Section name, e.g., "env", "task", "model" Retur
configs/ai2thor/load_config.py:343
↓ 2 callers
Method
get_shortest_path_length
(self, panoid1, panoid2)
mllm_base_agent/environments/embodiedcity/vln/graph_loader.py:39
↓ 2 callers
Method
get_video_file
Get recorded video file path
mllm_base_agent/environments/game/utils/video_recorder.py:113
↓ 2 callers
Function
infer_env_type
Infer environment type from task id first, config as fallback.
scripts/virtualhome/run_benchmark.py:296
↓ 2 callers
Method
init
mllm_base_agent/environments/game/games/Snake/snake_adapter.py:97
↓ 2 callers
Method
init
mllm_base_agent/environments/game/games/Block3D/block3d_adapter.py:97
↓ 2 callers
Method
init
mllm_base_agent/environments/game/games/rubik_cube/rubik_cube_adapter.py:100
↓ 2 callers
Method
init
mllm_base_agent/environments/game/games/maze3d_pro/maze3d_pro_adapter.py:68
↓ 2 callers
Function
init_functional_keys
(rubik, init_move)
mllm_base_agent/environments/game/games/rubik_cube/main.py:410
↓ 2 callers
Function
init_handle_keys
(init_move, save_positions, reset_positions)
mllm_base_agent/environments/game/games/rubik_cube/main.py:63
↓ 2 callers
Function
initialize_agent_state
( agent_id: str, vlm: Any, observation: Any, max_steps: int, )
mllm_base_agent/dual_agent/procthor/main.py:243
↓ 2 callers
Method
is_bottom_layer_solved
(rubik, bottom)
mllm_base_agent/environments/game/games/rubik_cube/utilities.py:46
↓ 2 callers
Function
is_point_in_polygon
Check if point is in polygon (Ray Casting)
evaluation/carla/base.py:34
↓ 2 callers
Function
is_point_in_polygon
Check if point is in polygon (Ray Casting)
evaluation/virtualhome/base.py:34
↓ 2 callers
Function
is_port_open
(host: str, port: int, timeout_sec: float = 1.0)
mllm_base_agent/environments/virtualhome/backend_utils.py:89
↓ 2 callers
Method
is_top_cross_solved
(rubik, bottom)
mllm_base_agent/environments/game/games/rubik_cube/utilities.py:70
↓ 2 callers
Function
load_discrete_init_data
Load init.json and normalize rotation to 30-degree discrete yaw. Returns a dict with: - init_action_strings - init_scene - init
scripts/evaluate_actions_virtualhome.py:387
↓ 2 callers
Function
load_task_metadata
Load task metadata from tasks/<task_id>/task.json. Returns keys: - instruction: str | None - golden_action_count: int | None -
scripts/virtualhome/run_benchmark.py:858
↓ 2 callers
Function
load_task_metadata
Load task metadata from tasks/<task_id>/task.json. Returns keys: - instruction: str | None - golden_action_count: int | None -
scripts/ai2thor/run_benchmark.py:742
↓ 2 callers
Function
load_task_metadata
Load metadata from mllm_base_agent/dual_agent/procthor/task_mutil_procthor/<task_id>/task.json.
mllm_base_agent/dual_agent/procthor/run_benchmark.py:274
↓ 2 callers
Function
load_tower
(filename)
mllm_base_agent/environments/game/games/maze3d_pro/main.py:50
↓ 2 callers
Function
main
(mode, player_name)
mllm_base_agent/environments/game/games/SOKOBAN_3D/sokoban_new.py:31
↓ 2 callers
Method
map_key_to_action
mllm_base_agent/environments/game/core/action_mapping.py:84
↓ 2 callers
Method
merge_recorded_user_actions
Inject interact-recorded object IDs into a golden action sequence. During an interact session the controller records which specific object
mllm_base_agent/environments/virtualhome/wrapper.py:3967
↓ 2 callers
Function
model_task_succeeded
( ) decide_csv_status task_success
scripts/carla/run_benchmark.py:290
↓ 2 callers
Function
normalize_angle_deg
Normalize angle to [-180, 180].
mllm_base_agent/environments/virtualhome/utils.py:154
↓ 2 callers
Function
normalize_task_id
Normalize task ID (e.g. ai2thor_04000 -> ai2thor04000, procthor_00001 -> procthor00001).
scripts/procthor/run_benchmark.py:410
↓ 2 callers
Function
parse_json_from_text
JSON Args: text: JSON , JSON Returns: JSON , None
scripts/utils/api_utils.py:691
↓ 2 callers
Function
parse_json_object
(value: Any)
scripts/analyze_and_export.py:278
↓ 2 callers
Function
parse_vlm_response
( response_text: str, enable_summary: bool = False, env_type: str = "ai2thor", executor_type:
actions/response_parser.py:21
↓ 2 callers
Function
perform_final_evaluation
(state: AgentState = None, *, env=None, task_config: dict = None, observation=None)
mllm_base_agent/agent/runner.py:388
↓ 2 callers
Function
quantize_yaw_degrees
Snap yaw(deg) to nearest discrete step and normalize to [-180, 180].
mllm_base_agent/environments/virtualhome/utils.py:209
↓ 2 callers
Function
quat_to_yaw_rad
Convert Unity quaternion [x, y, z, w] to yaw(rad).
mllm_base_agent/environments/virtualhome/utils.py:163
↓ 2 callers
Method
random_move
()
mllm_base_agent/environments/game/games/rubik_cube/utilities.py:16
↓ 2 callers
Function
read_task_ids_from_csv
Read task IDs from CSV. Args: csv_path: Path to CSV. only_null: If True, only include rows with Completed null/empty. R
scripts/virtualhome/run_benchmark.py:107
↓ 2 callers
Method
record_model_response
Record model response and decision Args: frame_number: Frame number response: OpenAI API response object
scripts/game/sokoban_opengl_openai_evaluation.py:198
↓ 2 callers
Method
record_model_response
Args: frame_number: response: OpenAI API action_taken:
scripts/game/maze_openai_evaluation.py:255
↓ 2 callers
Method
record_model_response
Args: frame_number: response: OpenAI API action_taken:
scripts/game/rubik_openai_evaluation.py:322
↓ 2 callers
Method
record_model_response
Args: frame_number: response: OpenAI API action_taken:
scripts/game/snake_openai_evaluation.py:223
↓ 2 callers
Method
record_model_response
Args: frame_number: response: OpenAI API action_taken:
scripts/game/maze3d_pro_openai_evaluation.py:293
↓ 2 callers
Method
record_model_response
Args: frame_number: response: OpenAI API action_taken:
scripts/game/block3d_openai_evaluation.py:234
↓ 2 callers
Method
reorder
(self)
mllm_base_agent/environments/game/games/rubik_cube/rubik.py:80
↓ 2 callers
Function
report_missing
(game: str, missing: List[str])
scripts/analyze_and_export.py:222
↓ 2 callers
Method
reset
Reset controller state
mllm_base_agent/environments/carla/controller.py:66
↓ 2 callers
Method
reset
(self)
mllm_base_agent/environments/carla/local_planner.py:62
↓ 2 callers
Method
reset_game
[ ] -
mllm_base_agent/environments/game/games/Snake/snake_adapter.py:111
↓ 2 callers
Method
reset_game
(self)
mllm_base_agent/environments/game/games/Snake/main.py:60
↓ 2 callers
Method
reset_game
mllm_base_agent/environments/game/games/Block3D/block3d_adapter.py:112
↓ 2 callers
Function
resolve_step_distance
Map model output to one of {2.5, 5, 10}. Accepts: - labels: small / medium / large (case-insensitive) - numeric literals: 2.5, 5, 10
mllm_base_agent/environments/carla/step_sizes.py:26
↓ 2 callers
Function
resolve_turn_degrees
Map model output to one of {30, 90}. Accepts: - labels: medium / large (case-insensitive; small is a legacy alias for medium) - numer
mllm_base_agent/environments/carla/step_sizes.py:52
↓ 2 callers
Method
rotate
(self, direction, face, times=1)
mllm_base_agent/environments/game/games/rubik_cube/rubik.py:133
↓ 2 callers
Function
run_analyze_and_export
(root_output_dir: str)
scripts/game/run_benchmark.py:190
↓ 2 callers
Method
save_cache
(self)
mllm_base_agent/environments/embodiedcity/vln/clip.py:107
↓ 2 callers
Function
save_conversation_log
Save complete conversation history as multi-turn dialogue JSON format
scripts/carla/work/run_task.py:913
↓ 2 callers
Function
save_conversation_log
Save complete conversation history as multi-turn dialogue JSON format
scripts/virtualhome/work/run_task.py:940
↓ 2 callers
Function
save_failed_log
Args: task_id: ID task_output_dir: failed_logs_dir: attempt: outp
scripts/carla/run_benchmark.py:917
↓ 2 callers
Function
save_failed_snapshot
(task_id: str, task_output_dir: str, failed_logs_dir: str, attempt: int = 1)
mllm_base_agent/dual_agent/procthor/run_benchmark.py:729
↓ 2 callers
Function
save_failed_snapshot
Save failed task outputs without deleting previous snapshots.
mllm_base_agent/dual_agent/procthor/run_csv_benchmark.py:144
↓ 2 callers
Function
save_failed_snapshot
,
mllm_base_agent/dual_agent/ai2thor/run_benchmark.py:597
↓ 2 callers
Function
save_failed_snapshot
Save failed task outputs without deleting previous snapshots.
mllm_base_agent/dual_agent/ai2thor/run_csv_benchmark.py:150
↓ 2 callers
Function
save_save
()
mllm_base_agent/environments/game/games/SOKOBAN_3D/sokoban_new.py:392
↓ 2 callers
Method
should_continue
(self)
mllm_base_agent/environments/game/games/Snake/snake_adapter.py:201
↓ 2 callers
Function
should_retry_csv_status
Retry infra/API outcomes that intentionally remain CSV null.
scripts/carla/run_benchmark.py:648
↓ 2 callers
Method
solve
(rubik, base=D)
mllm_base_agent/environments/game/games/rubik_cube/solver.py:407
↓ 2 callers
Function
solve_bfs
BFS ,
data/game/maze3d/generate.py:131
↓ 2 callers
Method
solve_bottom_corners
(rubik, base=D)
mllm_base_agent/environments/game/games/rubik_cube/solver.py:98
↓ 2 callers
Method
solve_bottom_cross
(rubik, base=D)
mllm_base_agent/environments/game/games/rubik_cube/solver.py:47
↓ 2 callers
Method
solve_middle_layer
(rubik, base=D)
mllm_base_agent/environments/game/games/rubik_cube/solver.py:135
↓ 2 callers
Method
solve_next_step
This method identifies the current stage the cube is solved to, then solves it to the next stage.
mllm_base_agent/environments/game/games/rubik_cube/solver.py:416
↓ 2 callers
Method
solve_orient_top_corners
(rubik, base=D)
mllm_base_agent/environments/game/games/rubik_cube/solver.py:361
↓ 2 callers
Method
solve_position_top_corners
(rubik, base=D)
mllm_base_agent/environments/game/games/rubik_cube/solver.py:326
↓ 2 callers
Method
solve_top_cross
(rubik, base=D)
mllm_base_agent/environments/game/games/rubik_cube/solver.py:209
↓ 2 callers
Method
solve_top_edges
(rubik, base=D)
mllm_base_agent/environments/game/games/rubik_cube/solver.py:272
↓ 2 callers
Method
start_recording
Start recording video Args: frame_data: First frame data for video parameters session_name: Session name for
mllm_base_agent/environments/game/utils/video_recorder.py:38
↓ 2 callers
Method
step
Execute one step of PID calculation Args: error: Current error Returns: Control output
mllm_base_agent/environments/carla/controller.py:38
↓ 2 callers
Method
step
(self, error: float, dt: float = 0.05)
mllm_base_agent/environments/carla/local_planner.py:53
↓ 2 callers
Method
step_with_action_dict
( : ``thor_agent_id`` ) Args: action_dict: , action_type, action_name thor_agent_id:
mllm_base_agent/environments/procthor/wrapper.py:871
↓ 2 callers
Method
stop_recording
Stop recording video
mllm_base_agent/environments/game/utils/video_recorder.py:97
↓ 2 callers
Function
summary_step_count
(summary: Dict[str, Any])
scripts/analyze_and_export.py:233
↓ 2 callers
Method
to_payload
(self)
mllm_base_agent/llm/messages.py:51
↓ 2 callers
Function
wait_for_local_model_api
Wait for a local OpenAI-compatible API before burning a task attempt.
scripts/carla/run_benchmark.py:107
↓ 2 callers
Function
yaw_rad_to_quat
Convert yaw(rad) to Unity quaternion [x, y, z, w].
mllm_base_agent/environments/virtualhome/utils.py:177
↓ 1 callers
Method
__init__
( self, host="localhost", port=2000, timeout=10.0, config=None,
mllm_base_agent/environments/carla/wrapper.py:711
↓ 1 callers
Method
__init__
Initialize VirtualHome environment wrapper. Args: scene: VirtualHome scene index (0–49 correspond to different apartments).
mllm_base_agent/environments/virtualhome/wrapper.py:195
↓ 1 callers
Method
__init__
(self, query_func, env, instance, prompt_template)
mllm_base_agent/environments/embodiedcity/vln/agent.py:28
↓ 1 callers
Method
_action_uses_granularity
Granular movement already represents the full step, so do not repeat it.
mllm_base_agent/environments/game/input_sources/pygame_input_source.py:246
↓ 1 callers
Function
_add_file_log_handler
Create <log_dir>/agent.log and attach a FileHandler to _log.
scripts/embodiedcity/work/run_task.py:46
↓ 1 callers
Function
_add_file_log_handler
Create <log_dir>/agent.log and attach a FileHandler to _log.
mllm_base_agent/environments/embodiedcity/vln_agent.py:46
↓ 1 callers
Function
_agent_config_kwargs
(agent_config: Mapping[str, Any] | None)
mllm_base_agent/dual_agent/ai2thor/core/llm/__init__.py:10
← previous
next →
501–600 of 1,798, ranked by callers