feat(production): 放料流程前需要加两个步骤

-1、移动相机到拍照位置
-2、相机识别凹槽是否有料(这个步骤先用伪代码实现);
This commit is contained in:
lidg
2026-11-09 16:33:18 +08:00
parent 47627b07f0
commit 089d91f323
3 changed files with 87 additions and 9 deletions
+5
View File
@@ -52,6 +52,8 @@ QString displayState(const QString &state)
if (state == "BACK_LOADING") return "反面上料";
if (state == "BACK_CHECKING") return "反面检测";
if (state == "BACK_UNLOADING") return "反面下料";
if (state == "PLACE_PHOTO_MOVING") return "放料前移动到拍照位置";
if (state == "PLACE_SLOT_INSPECTING") return "识别放料凹槽";
if (state == "RACK_PLACING") return "料架放料";
if (state == "JUDGING") return "结果判定";
if (state == "UNLOADING") return "下料";
@@ -903,6 +905,7 @@ void DashboardPage::onRecoveryDecisionRequired(const QJsonObject &context)
else if (code == "RETRY_VISION") label = "重新视觉识别";
else if (code == "NORMAL_PICK") label = "改为普通取料";
else if (code == "UNLOCK_VISION") label = "仅解除视觉遗留锁(不恢复订单)";
else if (code == "RETRY_SLOT_INSPECTION") label = "确认凹槽已清理,重新识别";
if (!label.isEmpty()) choice->addItem(label, code);
}
QLineEdit *operatorName = new QLineEdit(dialog);
@@ -948,6 +951,8 @@ void DashboardPage::onRecoveryDecisionRequired(const QJsonObject &context)
confirmed->setText("已确认机器人停止且在原起点,尚未取放或加工");
else if (code == "UNLOCK_VISION")
confirmed->setText("已核对机器人停止、取料状态明确,原订单不再继续");
else if (code == "RETRY_SLOT_INSPECTION")
confirmed->setText("已确认机器人停止,目标凹槽已清理,可以重新识别");
else if (!code.isEmpty())
confirmed->setText("已确认机器人停止在拍照位,RackPick 尚未开始");
else