tools/gen_sdf.sh 现在生成使用相对网格路径的 URDF 和 SDF 1.11,GPU雷达

This commit is contained in:
mzx committed 2026-11-24 18:27:39 +08:00
1 parent c710b955b1
commit 56f4b3adb0
24 files changed
+405 -208

No files matched your search

+12 -2
View File
@@ -42,6 +42,7 @@ from verify_lio_stack import NODES, process_environment
ROUND_TRIP = ((0.0, 0.0), (-5.0, 3.0), (0.0, 0.0), (-5.0, 3.0), (0.0, 0.0))
ROUND_TRIP_PAUSES = (0, 24, 10, 35, 16)
SOUTHEAST_ROUND_TRIP = ((0.0, 0.0), (5.0, -3.0), (0.0, 0.0))
def check_field_coverage(node, grid):
@@ -100,6 +101,8 @@ def main():
parser.add_argument('--output', type=Path, required=True)
goals = parser.add_mutually_exclusive_group()
goals.add_argument('--goal', nargs=2, type=float, metavar=('X', 'Y'))
goals.add_argument('--southeast-round-trip', action='store_true',
help='navigate center, southeast corner, and back to center')
goals.add_argument('--full-field', action='store_true',
help='check reachability in 1 m tiles and navigate the whole-field route')
goals.add_argument('--round-trip-regression', action='store_true',
@@ -118,8 +121,15 @@ def main():
parser.error('--round-trip-regression requires clear or cylinder')
if args.full_field and args.scenario != 'clear':
parser.error('--full-field starts the clear-field coverage route')
multileg = args.round_trip_regression or args.full_field
route = ARENA_GOALS if args.full_field else ROUND_TRIP if args.round_trip_regression else ((args.goal,) if args.goal else ())
multileg = args.round_trip_regression or args.full_field or args.southeast_round_trip
if args.full_field:
route = ARENA_GOALS
elif args.round_trip_regression:
route = ROUND_TRIP
elif args.southeast_round_trip:
route = SOUTHEAST_ROUND_TRIP
else:
route = (args.goal,) if args.goal else ()
pauses = ROUND_TRIP_PAUSES if args.round_trip_regression else (0,)*len(route)
if not args.map.is_file():
parser.error('map missing')