You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add sequential single-item auction for multi-robot task - #1462
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
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?
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.
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.
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
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 withmain()andshow_animationtests/test_sequential_single_item_auction.py: 9 testsdocs/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 toctreeResults on the example map:
Additional information
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.CheckList