feat(production): 放料流程前需要加两个步骤
-1、移动相机到拍照位置 -2、相机识别凹槽是否有料(这个步骤先用伪代码实现);
This commit is contained in:
@@ -46,7 +46,9 @@ public:
|
||||
RecoveryChecking,
|
||||
ManualConfirm,
|
||||
Retrying,
|
||||
Terminating
|
||||
Terminating,
|
||||
PlacePhotoMoving,
|
||||
PlaceSlotInspecting
|
||||
};
|
||||
Q_ENUM(State)
|
||||
|
||||
@@ -134,6 +136,9 @@ private:
|
||||
enum class VisionStage {
|
||||
Idle, ReadingPose, Measuring, WritingPose, Publishing, Complete, Fault
|
||||
};
|
||||
enum class SlotOccupancyResult {
|
||||
Empty, Occupied, Unknown
|
||||
};
|
||||
void prepareVision();
|
||||
void advanceVision();
|
||||
void beginVisionMeasurement();
|
||||
@@ -181,6 +186,7 @@ private:
|
||||
void tickSimulation();
|
||||
void tickProduction();
|
||||
bool processProductionStep(State state, QString *error);
|
||||
SlotOccupancyResult inspectPlaceSlot() const;
|
||||
bool recoverFromPlcStep(QString *error);
|
||||
bool processProductionAction(DeviceService::ProductionAction action,
|
||||
bool *completed, QString *error);
|
||||
|
||||
Reference in New Issue
Block a user