MCPcopy Create free account

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

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

Functioncalculate_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
Functioncalculate_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
Functioncalculate_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
Functioncalculate_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
Methodcapture_frame
mllm_base_agent/environments/game/input_sources/pygame_input_source.py:80
Methodcapture_frame
mllm_base_agent/environments/game/input_sources/pygame_opengl_input_source.py:106
Methodchat_url
(self)
mllm_base_agent/llm/provider.py:123
Functioncheck_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
Functioncheck_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
Methodcheck_in_receptacle
(obj, rt=receptacle_type, exp=expected)
mllm_base_agent/environments/virtualhome/wrapper.py:694
Methodcheck_in_receptacle
(obj)
mllm_base_agent/environments/procthor/wrapper.py:829
Methodcheck_in_receptacle
(obj)
mllm_base_agent/environments/ai2thor/wrapper.py:252
Functioncheck_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
Functioncheck_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
Functioncheck_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
Functioncheck_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
Functioncheck_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
Functioncheck_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
Functioncheck_object_state
Check if object state matches expected Args: result: Object state list expected: Expected state {field, value, any} *
evaluation/procthor/metrics.py:8
Functioncheck_object_state
Check if object state matches expected Args: result: Object state list expected: Expected state {field, value, any} *
evaluation/common/metrics.py:8
Functioncheck_task_success
Args: task_output_dir: Returns: JSON True, False
scripts/carla/run_benchmark.py:314
Methodclear
Clear memory
mllm_base_agent/dual_agent/ai2thor/core/memory/__init__.py:284
Methodclose
mllm_base_agent/environments/game/input_sources/pygame_input_source.py:328
Methodclose
mllm_base_agent/environments/game/input_sources/pygame_opengl_input_source.py:336
Methodclose
mllm_base_agent/environments/game/core/input_source.py:86
Methodclose
(self)
mllm_base_agent/environments/carla/wrapper.py:470
Methodclose
(self)
mllm_base_agent/environments/carla/wrapper.py:1043
Methodclose
Close environment and release resources
mllm_base_agent/environments/procthor/env_base.py:54
Functionclose_highscore
()
mllm_base_agent/environments/game/games/SOKOBAN_3D/sokoban_new.py:372
Methodcompute_control
Compute vehicle control command Returns: carla.VehicleControl object
mllm_base_agent/environments/carla/controller.py:199
Methodconfigure_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
Methodcopy
(self)
mllm_base_agent/environments/game/games/Snake/snake_adapter.py:46
Methodcreate_client
(self)
mllm_base_agent/environments/__init__.py:51
Functioncreate_env
(env_type: str, config: Optional[Dict[str, Any]] = None)
mllm_base_agent/environments/__init__.py:89
Functioncreate_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
Functioncreate_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
Functioncreate_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
Functioncreate_response
, create_openai_response
scripts/utils/api_utils.py:687
Functioncreate_response
, create_openai_response
scripts/embodiedcity/work/utils/api_utils.py:687
Functioncreate_response
, create_openai_response
mllm_base_agent/environments/game/utils/openai_utils.py:765
Functioncreate_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
Functioncsv_sort_key
(row: Dict[str, Any])
scripts/analyze_and_export.py:169
Methodcurrent_state
(self)
mllm_base_agent/environments/carla/traffic_lights.py:40
Functiondecorator
(solver_method)
mllm_base_agent/environments/game/games/rubik_cube/solver.py:16
Functiondetect_collision
Detect vehicle collision Args: vehicle: Vehicle object collision_history: Collision history record list Returns: Whe
mllm_base_agent/environments/carla/utils.py:76
Functiondraw_brick_texture
:
mllm_base_agent/environments/game/games/maze3d/maze3d_pygame.py:406
Functiondraw_gradient_poly
mllm_base_agent/environments/game/games/maze3d/maze3d_pygame.py:133
Functiondraw_text
mllm_base_agent/environments/game/games/SOKOBAN_3D/sokoban_adapter.py:447
Functiondraw_textured_wall
:
mllm_base_agent/environments/game/games/maze3d/maze3d_pygame.py:413
Functionencode_image
base64 Args: image_input: PIL.Image Returns: base64 Raises: ValueError:
scripts/utils/api_utils.py:285
Methodevaluate
Evaluate task completion Args: env: Environment instance metadata: Environment metadata Returns:
evaluation/virtualhome/base.py:85
Methodevaluate
Evaluate all conditions with specified logic Args: env: Environment instance metadata: Environment metadata
evaluation/virtualhome/base.py:133
Methodevaluate
Evaluate task completion Args: env: Environment instance metadata: Environment metadata Returns:
evaluation/procthor/base.py:32
Methodevaluate
Evaluate all conditions with specified logic Args: env: Environment instance metadata: Environment metadata
evaluation/procthor/base.py:80
Methodevaluate
Evaluate task completion Args: env: Environment instance metadata: Environment metadata Returns:
evaluation/ai2thor/base.py:31
Methodevaluate
Evaluate all conditions with specified logic Args: env: Environment instance metadata: Environment metadata
evaluation/ai2thor/base.py:79
Functionevaluate_texts
(groundtruth, df1)
mllm_base_agent/environments/embodiedcity/prompts/utils.py:600
Methodexecute_action
mllm_base_agent/environments/game/input_sources/pygame_input_source.py:140
Methodexecute_action
mllm_base_agent/environments/game/input_sources/pygame_opengl_input_source.py:186
Methodexecute_mapped_action
(self, key: str)
mllm_base_agent/environments/game/games/Snake/snake_adapter.py:537
Methodexecute_mapped_action
(self, key: str)
mllm_base_agent/environments/game/games/Block3D/block3d_adapter.py:476
Methodexecute_mapped_action
(self, key: str, granularity=None)
mllm_base_agent/environments/game/games/maze3d/maze3d_adapter.py:301
Functionexecute_task
, CSV
scripts/carla/run_benchmark.py:1679
Functionexecute_task
Run one task; on success copy to outputs_completed and update CSV.
scripts/virtualhome/run_benchmark.py:2085
Functionexecute_task
Run one task; on success copy to outputs_completed and update CSV.
scripts/procthor/run_benchmark.py:1145
Functionexecute_task
Run one task; on success copy to outputs_completed and update CSV.
scripts/ai2thor/run_benchmark.py:1881
Functionextract_action_info_from_response
OpenAI , API Args: response: OpenAI API api_type: API ("responses" "chat"), None Returns:
scripts/utils/api_utils.py:847
Functionextract_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
Functionfactory
(config: Optional[Dict[str, Any]] = None)
mllm_base_agent/environments/__init__.py:39
Functionfilter_landmarks
(elements, instructions)
mllm_base_agent/environments/embodiedcity/vln/landmarks.py:26
Methodfly_to_w
goal (Airsim ) obstruct_dis step_dis target_dis yaw_bias ,
mllm_base_agent/environments/embodiedcity/vln/agent.py:545
Functionformat_location
Format location information as string Args: location: CARLA Location object precision: Decimal precision Returns: Fo
mllm_base_agent/environments/carla/utils.py:316
Functionformat_rotation
Format rotation information as string Args: rotation: CARLA Rotation object precision: Decimal precision Returns: Fo
mllm_base_agent/environments/carla/utils.py:329
Methodframe_callback
Frame callback function - record frame data
scripts/game/sokoban_opengl_openai_evaluation.py:386
Methodframe_callback
-
scripts/game/maze_openai_evaluation.py:449
Methodframe_callback
-
scripts/game/rubik_openai_evaluation.py:635
Methodframe_callback
-
scripts/game/snake_openai_evaluation.py:488
Methodframe_callback
-
scripts/game/maze3d_pro_openai_evaluation.py:506
Methodframe_callback
-
scripts/game/block3d_openai_evaluation.py:482
Methodfrom_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
Methodget_action_info
Get action information
mllm_base_agent/environments/carla/controller.py:347
Methodget_action_mapping
mllm_base_agent/environments/game/games/maze3d_pro/maze3d_pro_adapter.py:327
Methodget_action_sequence
Return a human-readable action sequence string.
mllm_base_agent/environments/virtualhome/wrapper.py:3939
Methodget_action_sequence
Get string representation of action sequence Returns: Action sequence string
mllm_base_agent/environments/procthor/env_base.py:58
Methodget_action_sequence
Get string representation of action sequence Returns: Action sequence string
mllm_base_agent/environments/ai2thor/env_base.py:57
Methodget_action_sequence
Get string representation of action sequence
mllm_base_agent/environments/ai2thor/wrapper.py:1158
Functionget_agent_position
Get agent position Args: env: Environment instance metadata: Environment metadata Returns: Position dict
evaluation/common/getters.py:29
Methodget_all_actions
mllm_base_agent/environments/game/core/action_mapping.py:65
Methodget_all_actions
Get all available actions
mllm_base_agent/environments/carla/controller.py:354
Methodget_all_keys
mllm_base_agent/environments/game/core/action_mapping.py:61
Functionget_all_mapped_models
Returns: API
scripts/utils/api_utils.py:676
Functionget_all_mapped_models
Returns: API
scripts/embodiedcity/work/utils/api_utils.py:676
Functionget_all_mapped_models
Returns: API
mllm_base_agent/environments/game/utils/openai_utils.py:754
Methodget_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
Methodget_all_task_names
(self)
configs/procthor/load_config.py:215
Methodget_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
Functionget_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
Methodget_character_room
Return the name of the room the first character is currently in.
mllm_base_agent/environments/virtualhome/wrapper.py:3949
Functionget_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
Functionget_communication_prompt
Get communication guidelines prompt Returns: Communication prompt string
mllm_base_agent/dual_agent/ai2thor/core/prompts/dual_agent.py:377
← previousnext →1,501–1,600 of 1,798, ranked by callers