Skip to content

Add sequential single-item auction for multi-robot task - #1462

Open
vishwagw wants to merge 5 commits into
AtsushiSakai:masterfrom
vishwagw:ssi-auction
Open

vishwagw wants to merge 5 commits into
AtsushiSakai:masterfrom
vishwagw:ssi-auction

Conversation

@vishwagw

@vishwagw vishwagw commented Oct 12, 2026 •

Copy link
Copy Markdown

Reference issue

Closes #: 1460

What does this implement/fix?

Adds a Sequential Single-Item (SSI) auction for multi-robot task allocation under Mission Planning (Lagoudakis et al., RSS 2005; Koenig et al., AAAI 2006).

Each round, every robot bids on every unassigned target and the lowest bid wins; the target is inserted into the winner's route at its cheapest position. Two team objectives:

  • MiniSum: bid = marginal cost → minimizes total distance
  • MiniMax: bid = new route cost → minimizes the longest route (completion time)

Travel costs are A* path lengths reusing PathPlanning/AStar/a_star.py, so allocations respect obstacles. Only existing requirements are used.

Files:

  • MissionPlanning/SequentialSingleItemAuction/sequential_single_item_auction.py: example with main() and show_animation
  • tests/test_sequential_single_item_auction.py: 9 tests
  • docs/modules/13_mission_planning/sequential_single_item_auction/sequential_single_item_auction_main.rst: problem, math, algorithm, results, comparison with related methods, autodoc links; added to the Mission Planning toctree

Results on the example map:

Objective Total distance Longest route Targets per robot
MiniSum 136 m 114 m 0, 9, 1
MiniMax 195 m 76 m 1, 7, 2

Additional information

  • Animation GIF PR:
  • Tests include obstacle awareness (a target behind a wall goes to the robot with the shorter path, even though another robot is closer in a straight line) and the MiniSum/MiniMax trade-off.
  • Locally on Python 3.13 with the pinned requirements: pytest tests -Werror → 165 passed, including the codestyle and mypy tests. mypy on the new module is also clean. MissionPlanning isn't in the mypy test's package list, so I ran it separately.
  • Docs built with Sphinx with no warnings for the new page. I checked the rendered HTML: the page is reachable from Mission Planning, and the table and parameter sections render.

CheckList

  • Did you add an unittest for your new example or defect fix?
  • Did you add documents for your new example?
  • All CIs are green?

@vishwagw

Copy link
Copy Markdown
Author

Thanks for the review @dajiaohuang .

All three points are addressed in the new commit:

  1. Short wall segments. build_map now samples every segment with at least one interval, with points at most 1 m apart, and always includes both end points. ((1.0, 1.0), (1.5, 1.0)), a zero-length segment and a fractional one like ((10.0, 10.0), (12.5, 10.0)) are covered by a new test.

  2. a_star.show_animation. TravelCostMap no longer touches it. It now builds its grid with the Dijkstra planner and runs its own search over that grid (point 3), so it doesn't change either planner's module settings. A new test sets both show_animation flags to True, builds a cost map, computes a cost, and checks that both are still True.

  3. One Dijkstra search per point, as proposed in Proposal: Sequential Single-Item (SSI) auction for multi-robot task allocation #1460. The first time a robot start or target is used as a path start, one Dijkstra search from it covers the whole grid. Every later cost and path from that point is a lookup. An auction with m robots and n targets now runs m + n searches in total.

    • Same results: in the example scenario, the routes and route costs are identical to before (MiniSum 136 m total / 114 m longest, MiniMax 195 m / 76 m).
    • New tests: one checks that the number of searches equals the number of robots plus targets. Another checks that path lengths match AStarPlanner on a map with a wall.
    Robots, targets (100 m map, 3 walls) Before: A* per pair After: Dijkstra per point
    3, 10 75 searches, 0.49 s 13 searches, 0.06 s
    4, 20 270 searches, 1.70 s 24 searches, 0.17 s
    5, 40 980 searches, 8.19 s 45 searches, 0.87 s

    The total route cost was the same in every row. The docs page now describes this, and no longer mentions A* paths.

tests/test_sequential_single_item_auction.py has 16 passing tests, run with -Werror as runtests.sh does. There are 7 new test cases. Six of them fail on the previous commit and pass on this one. The A* path-length comparison passes on both, as it should, because it only checks that the new search finds equally short paths. test_codestyle.py, test_mypy_type_check.py, test_a_star.py and test_dijkstra.py also pass.

One side effect: when two paths are equally short, Dijkstra can pick a different one than A* did. The routes drawn in the animation therefore take slightly different shapes, with the same lengths. I've regenerated the GIF for the PythonRoboticsGifs PR.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant