Zaktualizuj 'agent.py'
This commit is contained in:
parent
90c7b3fad8
commit
03efb3cdcf
3
agent.py
3
agent.py
@ -9,8 +9,6 @@ import sys
|
||||
import pdb
|
||||
import numpy as np
|
||||
from package_location_classifier.classifier import PackageLocationClassifier
|
||||
from genetic_route import genetic_trace_route
|
||||
|
||||
|
||||
class Node:
|
||||
def __init__(self, coord_x, coord_y, package=None, is_rack=False):
|
||||
@ -277,7 +275,6 @@ class Agent:
|
||||
self.find_path(Node(package1.x, package1.y))
|
||||
self.graph_map[package1.id + 1][0] = len(self.path)
|
||||
self.graph_map[0][package1.id + 1] = len(self.path)
|
||||
print(self.graph_map)
|
||||
|
||||
def trace_route(self):
|
||||
for packs in self.warehouse.packages:
|
||||
|
Loading…
Reference in New Issue
Block a user