添加管控软件和相机的通讯
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
#ifndef VISIONRESULT_H
|
||||
#define VISIONRESULT_H
|
||||
|
||||
#include <QMetaType>
|
||||
#include <QVector>
|
||||
#include <cmath>
|
||||
|
||||
struct RobotPose
|
||||
{
|
||||
QVector<double> xyzabc;
|
||||
|
||||
bool isValid() const
|
||||
{
|
||||
if (xyzabc.size() != 6)
|
||||
return false;
|
||||
for (double value : xyzabc) {
|
||||
if (!std::isfinite(value))
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
};
|
||||
|
||||
struct VisionHandshake
|
||||
{
|
||||
bool robotReceived = false;
|
||||
bool photoRequest = false;
|
||||
bool comparing = false;
|
||||
bool comparisonError = false;
|
||||
bool comparisonPassed = false;
|
||||
};
|
||||
|
||||
enum class VisionWriteOutcome
|
||||
{
|
||||
NotSent,
|
||||
Confirmed,
|
||||
Uncertain
|
||||
};
|
||||
|
||||
Q_DECLARE_METATYPE(RobotPose)
|
||||
Q_DECLARE_METATYPE(VisionHandshake)
|
||||
Q_DECLARE_METATYPE(VisionWriteOutcome)
|
||||
|
||||
#endif // VISIONRESULT_H
|
||||
Reference in New Issue
Block a user