Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,15 @@ on:
paths:
- ".github/workflows/install.yml"
- "assets/**"
- "**.js"
- "**.py"
pull_request:
branches:
- "**"
paths:
- ".github/workflows/install.yml"
- "assets/**"
- "**.js"
- "**.py"
workflow_dispatch:

Expand Down
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -460,8 +460,10 @@ debug
.maa/Debugger/store.json
assets/resource/base/model/detect/limbo_stage_lightest.onnx
assets/resource/base/model/detect/sos_nodes.onnx

.claude/
.nicegui/
assets/resource/base/model/navi/pointer_model.onnx
assets/resource/base/model/depth/*

# local gui test
MFA/
Expand Down
4 changes: 3 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,7 @@
},
"markdownlint.config": {
"MD028": false
}
},
"python-envs.defaultEnvManager": "ms-python.python:conda",
"python-envs.defaultPackageManager": "ms-python.python:conda"
}
2 changes: 1 addition & 1 deletion agent/custom/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
from .action import *
from .action import *
29 changes: 29 additions & 0 deletions agent/custom/action/Common/nav_state.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import threading

class NavigationState:
_instance = None
_lock = threading.Lock()

def __new__(cls):
with cls._lock:
if cls._instance is None:
cls._instance = super(NavigationState, cls).__new__(cls)
cls._instance.pos_x = None
cls._instance.pos_y = None
cls._instance.angle = None
return cls._instance

def update_pos(self, x: float, y: float):
self.pos_x = x
self.pos_y = y

def update_angle(self, angle: float):
self.angle = angle

def get_pos(self):
return self.pos_x, self.pos_y

def get_angle(self):
return self.angle

nav_state = NavigationState()
16 changes: 16 additions & 0 deletions agent/custom/action/Navi/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
from .map_locator import *
from .map_locator_ncc import *
from .predict_angle import *

__all__ = [
"AnglePredictor",
"AnglePredictionResult",
"PredictAngle",
"PredictAngleTestAction",
"MapLocator",
"MapLocationResult",
"MapLocatorTestAction",
"MapLocatorNcc",
"MapLocationNccResult",
"MapLocatorNccTestAction",
]
Loading
Loading