Increased maximum number of nodes for TSP agent to deal with all potential dirt placements in dirt_quadrant

This commit is contained in:
Julian Schönberger
2024-08-09 16:36:05 +02:00
parent 973f3e9fc8
commit 0a8eaf8827

View File

@ -90,7 +90,7 @@ class TSPBaseAgent(ABC):
[self.state.pos] + \
[x for x in positions if max(abs(np.subtract(x, self.state.pos))) < 3]
try:
while len(nodes) < 7:
while len(nodes) < 13:
nodes += [next(x for x in positions if x not in nodes)]
except StopIteration:
nodes = [self.state.pos] + positions