重新将世界零点定义在了场地中心点,将哨兵的出生点改为红方出生点,车的速度改为1.5m/s,实现了哨兵导航到(0,0)点
This commit is contained in:
1 parent
0e4e4c6e18
commit
969763a9df
36 files changed
+983
-646
No files matched your search
+4
-4
@@ -3,8 +3,8 @@
|
||||
|
||||
用法::
|
||||
|
||||
python3 tools/free_goals.py # 起点默认 (0.9, 4.0) 出生点
|
||||
python3 tools/free_goals.py --from 6.0 4.0 # 换个起点
|
||||
python3 tools/free_goals.py # 起点默认 (-5.0, 3.0) 当前出生点
|
||||
python3 tools/free_goals.py --from 0.0 0.0 # 换个起点(场地中心)
|
||||
python3 tools/free_goals.py --min-clear 0.7 # 要求更大净空
|
||||
python3 tools/free_goals.py --map path/to/x.yaml
|
||||
|
||||
@@ -146,7 +146,7 @@ def main():
|
||||
formatter_class=argparse.RawDescriptionHelpFormatter)
|
||||
ap.add_argument('--map', default=DEFAULT_YAML, help='栅格图 yaml 路径')
|
||||
ap.add_argument('--from', dest='start', nargs=2, type=float,
|
||||
default=[0.9, 4.0], metavar=('X', 'Y'), help='起点 map 坐标')
|
||||
default=[-5.0, 3.0], metavar=('X', 'Y'), help='起点 map 坐标')
|
||||
ap.add_argument('--min-clear', type=float, default=DEFAULT_MIN_CLEAR,
|
||||
help=f'要求的最小净空(米),默认 {DEFAULT_MIN_CLEAR}')
|
||||
ap.add_argument('--grid', type=float, default=0.5,
|
||||
@@ -193,7 +193,7 @@ def main():
|
||||
|
||||
print('\n直接复制就能跑:')
|
||||
for x, y, cl in picked[:6]:
|
||||
print(f' python3 tools/nav_client.py {x:.2f} {y:.2f}')
|
||||
print(f' build/linux/x86_64/release/nav_client {x:.2f} {y:.2f}')
|
||||
|
||||
if args.no_map:
|
||||
return 0
|
||||
|
||||
Reference in new issue
Block a user