添加管控软件和相机的通讯
This commit is contained in:
@@ -3,6 +3,9 @@
|
||||
#include <QtWidgets/QMainWindow>
|
||||
#include "ui_MainWindow.h"
|
||||
#include "StereoPoseFusion.h"
|
||||
#include <QJsonObject>
|
||||
class VisionIpcServer;
|
||||
class QThread;
|
||||
class CameraManager;
|
||||
class LightController;
|
||||
class YoloDetector;
|
||||
@@ -27,6 +30,10 @@ class MainWindow : public QMainWindow
|
||||
public:
|
||||
explicit MainWindow(QWidget* parent = nullptr);
|
||||
~MainWindow();
|
||||
void startIpc(const QString& name);
|
||||
signals:
|
||||
void ipcStateChanged(const QJsonObject& state);
|
||||
void ipcFinished(const QJsonObject& result);
|
||||
private slots:
|
||||
void appendLog(const QString& msg);
|
||||
void onClearLog();
|
||||
@@ -39,8 +46,18 @@ private slots:
|
||||
// OPC-UA 测量请求
|
||||
void onOpcMeasureRequested(uint32_t timeoutMs);
|
||||
void onOpcResetRequested();
|
||||
void onIpcCommand(const QJsonObject& request);
|
||||
private:
|
||||
void autoLoadModels();
|
||||
void updateIpcState();
|
||||
void updateRemoteLock();
|
||||
bool resourceBusy() const;
|
||||
VisionIpcServer* m_ipc = nullptr;
|
||||
QThread* m_ipcThread = nullptr;
|
||||
bool m_controllerAttached = false;
|
||||
bool m_initializing = false;
|
||||
bool m_modalObserved = false;
|
||||
QJsonObject m_initialization;
|
||||
Ui::MainWindowClass ui;
|
||||
// ── 后端对象(MainWindow 拥有生命周期) ──
|
||||
CameraManager* m_camMgr = nullptr;
|
||||
|
||||
Reference in New Issue
Block a user