Files
ssp/models/visionresult.h
T

43 lines
725 B
C++
Raw Normal View History

2026-10-27 22:16:55 +08:00
#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 photoMove = false;
bool photoMoveFeedback = false;
bool comparisonPick = false;
2026-10-27 22:16:55 +08:00
};
enum class VisionWriteOutcome
{
NotSent,
Confirmed,
Uncertain
};
Q_DECLARE_METATYPE(RobotPose)
Q_DECLARE_METATYPE(VisionHandshake)
Q_DECLARE_METATYPE(VisionWriteOutcome)
#endif // VISIONRESULT_H