Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
张东亮
/
Qisda-SO1037-AGVDispatch
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit d8108e54
由
张东亮
编写于
2023-08-08 14:27:29 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
风林门内返回充电不开门
1 个父辈
95a7f760
显示空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
21 行增加
和
4 行删除
DeviceLibrary/bean/RunStep.cs
DeviceLibrary/bean/job/ChargeJob.cs
DeviceLibrary/manager/NodeManager.cs
DeviceLibrary/bean/RunStep.cs
查看文件 @
d8108e5
...
@@ -17,6 +17,7 @@ namespace DeviceLibrary.bean
...
@@ -17,6 +17,7 @@ namespace DeviceLibrary.bean
#
endregion
#
endregion
#
region
充电任务
#
region
充电任务
CHARGE_OUTAIR
,
/// <summary>
/// <summary>
/// 等待AGV到达充电位
/// 等待AGV到达充电位
/// </summary>
/// </summary>
...
...
DeviceLibrary/bean/job/ChargeJob.cs
查看文件 @
d8108e5
using
Common
;
using
Common
;
using
DeviceLibrary.bean
;
using
DeviceLibrary.bean
;
using
DeviceLibrary.manager
;
using
System.Runtime.ConstrainedExecution
;
namespace
DeviceLibrary
namespace
DeviceLibrary
{
{
/// <summary>
/// <summary>
...
@@ -24,12 +27,25 @@ namespace DeviceLibrary
...
@@ -24,12 +27,25 @@ namespace DeviceLibrary
/// <param name="agv"></param>
/// <param name="agv"></param>
public
override
Job
Run
(
AgvInfo
agv
)
public
override
Job
Run
(
AgvInfo
agv
)
{
{
Job
job
=
this
;
agv
.
SetJobContext
(
new
bean
.
agv
.
JobContext
()
agv
.
SetJobContext
(
new
bean
.
agv
.
JobContext
()
{
{
});
});
if
(
JobRunStep
.
IsStep
(
RunStep
.
NONE
))
if
(
JobRunStep
.
IsStep
(
RunStep
.
NONE
))
{
{
ClearLiftNodeOccupied
(
agv
);
ClearLiftNodeOccupied
(
agv
);
if
(
NodeManager
.
linesInAirShower
[
agv
.
Scope
.
Workshop
].
Contains
(
JobParam
.
SrcNode
.
Name
))
{
JobParam
.
CrossDoor
.
CurNode
=
JobParam
.
SrcNode
;
JobParam
.
CrossDoor
.
NextNode
=
JobParam
.
CurTargetNode
;
JobParam
.
CrossDoor
.
IsIn
=
false
;
JobParam
.
CrossDoor
.
IsAir
=
true
;
GenJobCallBack
(
this
.
GetType
(),
RunStep
.
CHARGE_OUTAIR
,
JobParam
);
job
=
new
CrossDoorJob
(
JobParam
);
}
}
else
if
(
JobRunStep
.
IsStep
(
RunStep
.
CHARGE_OUTAIR
))
{
if
(!
ChargePileManager
.
HasEmpty
(
agv
,
out
ChargePile
charge
))
if
(!
ChargePileManager
.
HasEmpty
(
agv
,
out
ChargePile
charge
))
{
{
runInfo
=
$
"无空闲充电桩,从"
+
JobParam
.
SrcNode
+
"回到待机位"
;
runInfo
=
$
"无空闲充电桩,从"
+
JobParam
.
SrcNode
+
"回到待机位"
;
...
@@ -68,7 +84,7 @@ namespace DeviceLibrary
...
@@ -68,7 +84,7 @@ namespace DeviceLibrary
}
}
else
if
(
agv
.
Battery
>=
BatteryMin
)
else
if
(
agv
.
Battery
>=
BatteryMin
)
{
{
Job
job
=
AGVManager
.
control
.
GetJob
(
agv
);
job
=
AGVManager
.
control
.
GetJob
(
agv
);
if
(
job
!=
null
&&
((
job
is
ChargeJob
)
||
(
job
is
StandyJob
)))
if
(
job
!=
null
&&
((
job
is
ChargeJob
)
||
(
job
is
StandyJob
)))
{
{
}
}
...
@@ -97,7 +113,7 @@ namespace DeviceLibrary
...
@@ -97,7 +113,7 @@ namespace DeviceLibrary
}
}
else
if
(
agv
.
Battery
>=
ChargePileManager
.
GetChargePiles
().
BatteryMin
)
else
if
(
agv
.
Battery
>=
ChargePileManager
.
GetChargePiles
().
BatteryMin
)
{
{
Job
job
=
AGVManager
.
control
.
GetJob
(
agv
);
job
=
AGVManager
.
control
.
GetJob
(
agv
);
if
(
job
!=
null
&&
((
job
is
ChargeJob
)
||
(
job
is
StandyJob
)))
if
(
job
!=
null
&&
((
job
is
ChargeJob
)
||
(
job
is
StandyJob
)))
{
{
}
}
...
@@ -119,7 +135,7 @@ namespace DeviceLibrary
...
@@ -119,7 +135,7 @@ namespace DeviceLibrary
JobRunStep
.
EndJob
();
JobRunStep
.
EndJob
();
return
null
;
return
null
;
}
}
return
this
;
return
job
;
}
}
/// <summary>
/// <summary>
...
...
DeviceLibrary/manager/NodeManager.cs
查看文件 @
d8108e5
...
@@ -205,7 +205,7 @@ namespace DeviceLibrary.manager
...
@@ -205,7 +205,7 @@ namespace DeviceLibrary.manager
/// key:车间名
/// key:车间名
/// val:线体名
/// val:线体名
/// </summary>
/// </summary>
static
Dictionary
<
string
,
List
<
string
>>
linesInAirShower
=
new
Dictionary
<
string
,
List
<
string
>>();
public
static
Dictionary
<
string
,
List
<
string
>>
linesInAirShower
=
new
Dictionary
<
string
,
List
<
string
>>();
static
void
InitLinesInAirShower
()
static
void
InitLinesInAirShower
()
{
{
//添加3D的
//添加3D的
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论