Skip to content

Commit 49df26b

Browse files
feat: 使用全新算法,支持步行状态下的实时定位
1 parent 1f88bb0 commit 49df26b

5 files changed

Lines changed: 177 additions & 1065 deletions

File tree

agent/custom/action/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
from .predict_depth import *
1212
from .map_locator import *
1313
from .map_locator_ncc import *
14-
from .map_locator_pyramid import *
1514
from .combined_auto_navigate import *
1615
from .pinkpaw.pinkpaw_core1 import *
1716
from .pinkpaw.pinkpaw_core2 import *
@@ -49,7 +48,6 @@
4948
"MapLocatorNcc",
5049
"MapLocationNccResult",
5150
"MapLocatorNccTestAction",
52-
"MapLocatorPyramid",
5351
"CombinedAutoNavigate",
5452
"PinkPawHeistScheme1Action",
5553
"PinkPawHeistScheme2Action",

agent/custom/action/map_locator.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def __init__(
4646
self.big_map_path = (
4747
Path(big_map_path) if big_map_path else self.default_big_map_path()
4848
)
49-
self.mini_map_roi = mini_map_roi or [24, 14, 159, 157]
49+
self.mini_map_roi = mini_map_roi or [28, 20, 150, 150]
5050
self.debug = debug
5151
self.ratio_thresh = ratio_thresh
5252
self.min_matches = min_matches
@@ -417,10 +417,10 @@ def run(
417417
mini_map_roi=params.get("mini_map_roi"),
418418
debug=debug,
419419
nfeatures=int(params.get("nfeatures", 0)),
420-
ratio_thresh=float(params.get("ratio_thresh", 0.85)),
420+
ratio_thresh=float(params.get("ratio_thresh", 0.8)),
421421
min_matches=int(params.get("min_matches", 8)),
422422
min_inliers=int(params.get("min_inliers", 4)),
423-
ransac_thresh=float(params.get("ransac_thresh", 14.0)),
423+
ransac_thresh=float(params.get("ransac_thresh", 12.0)),
424424
circle_padding=int(params.get("circle_padding", 15)),
425425
center_radius=int(params.get("center_radius", 11)),
426426
debug_map_width=int(params.get("debug_map_width", 900)),

0 commit comments

Comments
 (0)