경로로직
This commit is contained in:
@@ -58,14 +58,14 @@ namespace AGVNavigationCore.Models
|
||||
/// <summary>
|
||||
/// 장비 타입 열거형
|
||||
/// </summary>
|
||||
public enum StationType
|
||||
public enum Station
|
||||
{
|
||||
/// <summary>
|
||||
/// 일반노드
|
||||
/// </summary>
|
||||
Normal,
|
||||
/// <summary>로더</summary>
|
||||
Loader,
|
||||
Loder,
|
||||
/// <summary>클리너</summary>
|
||||
Plating,
|
||||
/// <summary>오프로더</summary>
|
||||
@@ -78,7 +78,7 @@ namespace AGVNavigationCore.Models
|
||||
/// <summary>
|
||||
/// 끝점(더이상 이동불가)
|
||||
/// </summary>
|
||||
Limit,
|
||||
Lmt,
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -367,7 +367,7 @@ namespace AGVNavigationCore.Models
|
||||
|
||||
//도킹노드라면 markstop 을 나머지는 바로 스탑한다.
|
||||
eAGVCommandReason reason = eAGVCommandReason.MarkStop;
|
||||
if (TargetNode.StationType == StationType.Normal || TargetNode.StationType == StationType.Limit)
|
||||
if (TargetNode.StationType == Station.Normal || TargetNode.StationType == Station.Lmt)
|
||||
{
|
||||
//일반노드는 마크스탑포인트가 없으니 바로 종료되도록 한다
|
||||
reason = eAGVCommandReason.Complete;
|
||||
|
||||
Reference in New Issue
Block a user