경로로직
This commit is contained in:
@@ -17,18 +17,18 @@ namespace AGVNavigationCore.Models
|
||||
|
||||
|
||||
|
||||
public StationType StationType { get; set; }
|
||||
public Station StationType { get; set; }
|
||||
|
||||
[Browsable(false)]
|
||||
public bool CanDocking
|
||||
{
|
||||
get
|
||||
{
|
||||
if (StationType == StationType.Buffer) return true;
|
||||
if (StationType == StationType.Loader) return true;
|
||||
if (StationType == StationType.Cleaner) return true;
|
||||
if (StationType == StationType.Plating) return true;
|
||||
if (StationType == StationType.Charger) return true;
|
||||
if (StationType == Station.Buffer) return true;
|
||||
if (StationType == Station.Loder) return true;
|
||||
if (StationType == Station.Cleaner) return true;
|
||||
if (StationType == Station.Plating) return true;
|
||||
if (StationType == Station.Charger) return true;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@@ -111,7 +111,7 @@ namespace AGVNavigationCore.Models
|
||||
Type = NodeType.Normal;
|
||||
}
|
||||
|
||||
public MapNode(string nodeId, Point position, StationType type) : base(nodeId, position)
|
||||
public MapNode(string nodeId, Point position, Station type) : base(nodeId, position)
|
||||
{
|
||||
Type = NodeType.Normal;
|
||||
}
|
||||
@@ -122,9 +122,9 @@ namespace AGVNavigationCore.Models
|
||||
{
|
||||
get
|
||||
{
|
||||
if (StationType == StationType.Charger || StationType == StationType.Buffer ||
|
||||
StationType == StationType.Plating || StationType == StationType.Loader ||
|
||||
StationType == StationType.Cleaner) return true;
|
||||
if (StationType == Station.Charger || StationType == Station.Buffer ||
|
||||
StationType == Station.Plating || StationType == Station.Loder ||
|
||||
StationType == Station.Cleaner) return true;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user