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
Function
calculate_2d_distance
Calculate 2D distance between two locations (ignoring height) Args: location1: First location location2: Second location Ret
mllm_base_agent/environments/carla/utils.py:58
Function
calculate_distance_between_locations
Calculate Euclidean distance between two locations Args: location1: First location location2: Second location Returns:
mllm_base_agent/environments/carla/utils.py:39
Function
calculate_distance_to_waypoint
Calculate distance from vehicle to waypoint Args: vehicle_location: Vehicle location (carla.Location) waypoint: Target waypoint (
mllm_base_agent/environments/carla/utils.py:15
Function
calculate_steering_angle
Calculate steering angle based on target position This is a simple P controller Args: vehicle_location: Vehicle location veh
mllm_base_agent/environments/carla/utils.py:239
Method
capture_frame
mllm_base_agent/environments/game/input_sources/pygame_input_source.py:80
Method
capture_frame
mllm_base_agent/environments/game/input_sources/pygame_opengl_input_source.py:106
Method
chat_url
(self)
mllm_base_agent/llm/provider.py:123
Function
check_agent_in_room
Check if agent is in specified room Args: result: Current room type (from get_agent_room) expected: Expected {room_type}
evaluation/procthor/metrics.py:125
Function
check_agent_near_object
Check if agent is near specified object Args: result: Agent position {x, y, z} (from get_agent_position) expected: Expected {
evaluation/procthor/metrics.py:196
Method
check_in_receptacle
(obj, rt=receptacle_type, exp=expected)
mllm_base_agent/environments/virtualhome/wrapper.py:694
Method
check_in_receptacle
(obj)
mllm_base_agent/environments/procthor/wrapper.py:829
Method
check_in_receptacle
(obj)
mllm_base_agent/environments/ai2thor/wrapper.py:252
Function
check_lane_invasion
Detect lane invasion Args: lane_invasion_history: Lane invasion history record list Returns: Whether lane invasion occurred
mllm_base_agent/environments/carla/utils.py:89
Function
check_multiple_conditions
Check multiple conditions with AND/OR logic Args: result: Object state list (all objects in scene) expected: Expected {condit
evaluation/common/metrics.py:167
Function
check_object_in_hand
Check if holding specified object Args: result: Objects in hand list expected: Expected object {object_type} **option
evaluation/procthor/metrics.py:43
Function
check_object_in_hand
Check if holding specified object Args: result: Objects in hand list expected: Expected object {object_type} **option
evaluation/common/metrics.py:43
Function
check_object_in_receptacle
Check if object is in specified receptacle Args: result: Object state list expected: Expected {object_type, receptacle_type,
evaluation/procthor/metrics.py:69
Function
check_object_in_room
Check if object is in specified room Args: result: Object's room type (from get_object_room, but we'll get it from metadata directly)
evaluation/procthor/metrics.py:153
Function
check_object_state
Check if object state matches expected Args: result: Object state list expected: Expected state {field, value, any} *
evaluation/procthor/metrics.py:8
Function
check_object_state
Check if object state matches expected Args: result: Object state list expected: Expected state {field, value, any} *
evaluation/common/metrics.py:8
Function
check_task_success
Args: task_output_dir: Returns: JSON True, False
scripts/carla/run_benchmark.py:314
Method
clear
Clear memory
mllm_base_agent/dual_agent/ai2thor/core/memory/__init__.py:284
Method
close
mllm_base_agent/environments/game/input_sources/pygame_input_source.py:328
Method
close
mllm_base_agent/environments/game/input_sources/pygame_opengl_input_source.py:336
Method
close
mllm_base_agent/environments/game/core/input_source.py:86
Method
close
(self)
mllm_base_agent/environments/carla/wrapper.py:470
Method
close
(self)
mllm_base_agent/environments/carla/wrapper.py:1043
Method
close
Close environment and release resources
mllm_base_agent/environments/procthor/env_base.py:54
Function
close_highscore
()
mllm_base_agent/environments/game/games/SOKOBAN_3D/sokoban_new.py:372
Method
compute_control
Compute vehicle control command Returns: carla.VehicleControl object
mllm_base_agent/environments/carla/controller.py:199
Method
configure_task
Configure task parameters at runtime. Args: target_object_types: Object class names to track (e.g. ['microwave']). su
mllm_base_agent/environments/virtualhome/wrapper.py:557
Method
copy
(self)
mllm_base_agent/environments/game/games/Snake/snake_adapter.py:46
Method
create_client
(self)
mllm_base_agent/environments/__init__.py:51
Function
create_env
(env_type: str, config: Optional[Dict[str, Any]] = None)
mllm_base_agent/environments/__init__.py:89
Function
create_evaluator_from_config
Create evaluator from configuration Supports both: 1. Single success_condition (legacy format) 2. Multiple success_conditions with succes
evaluation/virtualhome/base.py:398
Function
create_evaluator_from_config
Create evaluator from configuration Supports both: 1. Single success_condition (legacy format) 2. Multiple success_conditions with succes
evaluation/procthor/base.py:586
Function
create_evaluator_from_config
Create evaluator from configuration Supports both: 1. Single success_condition (legacy format) 2. Multiple success_conditions with succes
evaluation/ai2thor/base.py:272
Function
create_response
, create_openai_response
scripts/utils/api_utils.py:687
Function
create_response
, create_openai_response
scripts/embodiedcity/work/utils/api_utils.py:687
Function
create_response
, create_openai_response
mllm_base_agent/environments/game/utils/openai_utils.py:765
Function
create_vehicle_control
Create vehicle control object Args: throttle: Throttle [0, 1] steer: Steering [-1, 1] brake: Brake [0, 1] hand_br
mllm_base_agent/environments/carla/utils.py:342
Function
csv_sort_key
(row: Dict[str, Any])
scripts/analyze_and_export.py:169
Method
current_state
(self)
mllm_base_agent/environments/carla/traffic_lights.py:40
Function
decorator
(solver_method)
mllm_base_agent/environments/game/games/rubik_cube/solver.py:16
Function
detect_collision
Detect vehicle collision Args: vehicle: Vehicle object collision_history: Collision history record list Returns: Whe
mllm_base_agent/environments/carla/utils.py:76
Function
draw_brick_texture
:
mllm_base_agent/environments/game/games/maze3d/maze3d_pygame.py:406
Function
draw_gradient_poly
mllm_base_agent/environments/game/games/maze3d/maze3d_pygame.py:133
Function
draw_text
mllm_base_agent/environments/game/games/SOKOBAN_3D/sokoban_adapter.py:447
Function
draw_textured_wall
:
mllm_base_agent/environments/game/games/maze3d/maze3d_pygame.py:413
Function
encode_image
base64 Args: image_input: PIL.Image Returns: base64 Raises: ValueError:
scripts/utils/api_utils.py:285
Method
evaluate
Evaluate task completion Args: env: Environment instance metadata: Environment metadata Returns:
evaluation/virtualhome/base.py:85
Method
evaluate
Evaluate all conditions with specified logic Args: env: Environment instance metadata: Environment metadata
evaluation/virtualhome/base.py:133
Method
evaluate
Evaluate task completion Args: env: Environment instance metadata: Environment metadata Returns:
evaluation/procthor/base.py:32
Method
evaluate
Evaluate all conditions with specified logic Args: env: Environment instance metadata: Environment metadata
evaluation/procthor/base.py:80
Method
evaluate
Evaluate task completion Args: env: Environment instance metadata: Environment metadata Returns:
evaluation/ai2thor/base.py:31
Method
evaluate
Evaluate all conditions with specified logic Args: env: Environment instance metadata: Environment metadata
evaluation/ai2thor/base.py:79
Function
evaluate_texts
(groundtruth, df1)
mllm_base_agent/environments/embodiedcity/prompts/utils.py:600
Method
execute_action
mllm_base_agent/environments/game/input_sources/pygame_input_source.py:140
Method
execute_action
mllm_base_agent/environments/game/input_sources/pygame_opengl_input_source.py:186
Method
execute_mapped_action
(self, key: str)
mllm_base_agent/environments/game/games/Snake/snake_adapter.py:537
Method
execute_mapped_action
(self, key: str)
mllm_base_agent/environments/game/games/Block3D/block3d_adapter.py:476
Method
execute_mapped_action
(self, key: str, granularity=None)
mllm_base_agent/environments/game/games/maze3d/maze3d_adapter.py:301
Function
execute_task
, CSV
scripts/carla/run_benchmark.py:1679
Function
execute_task
Run one task; on success copy to outputs_completed and update CSV.
scripts/virtualhome/run_benchmark.py:2085
Function
execute_task
Run one task; on success copy to outputs_completed and update CSV.
scripts/procthor/run_benchmark.py:1145
Function
execute_task
Run one task; on success copy to outputs_completed and update CSV.
scripts/ai2thor/run_benchmark.py:1881
Function
extract_action_info_from_response
OpenAI , API Args: response: OpenAI API api_type: API ("responses" "chat"), None Returns:
scripts/utils/api_utils.py:847
Function
extract_action_info_from_response
OpenAI , API Args: response: OpenAI API api_type: API ("responses" "chat"), None Returns:
scripts/embodiedcity/work/utils/api_utils.py:847
Function
factory
(config: Optional[Dict[str, Any]] = None)
mllm_base_agent/environments/__init__.py:39
Function
filter_landmarks
(elements, instructions)
mllm_base_agent/environments/embodiedcity/vln/landmarks.py:26
Method
fly_to_w
goal (Airsim ) obstruct_dis step_dis target_dis yaw_bias ,
mllm_base_agent/environments/embodiedcity/vln/agent.py:545
Function
format_location
Format location information as string Args: location: CARLA Location object precision: Decimal precision Returns: Fo
mllm_base_agent/environments/carla/utils.py:316
Function
format_rotation
Format rotation information as string Args: rotation: CARLA Rotation object precision: Decimal precision Returns: Fo
mllm_base_agent/environments/carla/utils.py:329
Method
frame_callback
Frame callback function - record frame data
scripts/game/sokoban_opengl_openai_evaluation.py:386
Method
frame_callback
-
scripts/game/maze_openai_evaluation.py:449
Method
frame_callback
-
scripts/game/rubik_openai_evaluation.py:635
Method
frame_callback
-
scripts/game/snake_openai_evaluation.py:488
Method
frame_callback
-
scripts/game/maze3d_pro_openai_evaluation.py:506
Method
frame_callback
-
scripts/game/block3d_openai_evaluation.py:482
Method
from_existing_comm
Create a VirtualHomeEnvWrapper that reuses an already-connected comm. Use this factory method when the UnityCommunication object already exis
mllm_base_agent/environments/virtualhome/wrapper.py:407
Method
get_action_info
Get action information
mllm_base_agent/environments/carla/controller.py:347
Method
get_action_mapping
mllm_base_agent/environments/game/games/maze3d_pro/maze3d_pro_adapter.py:327
Method
get_action_sequence
Return a human-readable action sequence string.
mllm_base_agent/environments/virtualhome/wrapper.py:3939
Method
get_action_sequence
Get string representation of action sequence Returns: Action sequence string
mllm_base_agent/environments/procthor/env_base.py:58
Method
get_action_sequence
Get string representation of action sequence Returns: Action sequence string
mllm_base_agent/environments/ai2thor/env_base.py:57
Method
get_action_sequence
Get string representation of action sequence
mllm_base_agent/environments/ai2thor/wrapper.py:1158
Function
get_agent_position
Get agent position Args: env: Environment instance metadata: Environment metadata Returns: Position dict
evaluation/common/getters.py:29
Method
get_all_actions
mllm_base_agent/environments/game/core/action_mapping.py:65
Method
get_all_actions
Get all available actions
mllm_base_agent/environments/carla/controller.py:354
Method
get_all_keys
mllm_base_agent/environments/game/core/action_mapping.py:61
Function
get_all_mapped_models
Returns: API
scripts/utils/api_utils.py:676
Function
get_all_mapped_models
Returns: API
scripts/embodiedcity/work/utils/api_utils.py:676
Function
get_all_mapped_models
Returns: API
mllm_base_agent/environments/game/utils/openai_utils.py:754
Method
get_all_task_names
Get list of all available task names Combines tasks from both task_presets and task.json files Returns:
configs/virtualhome/load_config.py:329
Method
get_all_task_names
(self)
configs/procthor/load_config.py:215
Method
get_all_task_names
Get list of all available task names Combines tasks from both task_presets and task.json files Returns:
configs/ai2thor/load_config.py:268
Function
get_char_relations
Return dict mapping relation_type -> [to_node_ids] for a character node. Args: graph: VirtualHome environment graph. char_id: The
mllm_base_agent/environments/virtualhome/utils.py:282
Method
get_character_room
Return the name of the room the first character is currently in.
mllm_base_agent/environments/virtualhome/wrapper.py:3949
Function
get_collaborative_system_prompt
Get system prompt for equal collaboration mode (no <SUMMARY> tag). Args: enable_summary: Ignored; kept for backward compatibility with ca
mllm_base_agent/dual_agent/ai2thor/core/prompts/dual_agent.py:616
Function
get_communication_prompt
Get communication guidelines prompt Returns: Communication prompt string
mllm_base_agent/dual_agent/ai2thor/core/prompts/dual_agent.py:377
← previous
next →
1,501–1,600 of 1,798, ranked by callers