Files
eUi/src/Core/back/backStruct.h
T

50 lines
1.6 KiB
C++
Raw Normal View History

2025-06-05 11:30:12 +08:00
#include <subModuleBase.h>
#include <filesystem>
#include <struct.h>
2025-06-05 11:30:12 +08:00
//#include <appconfigStruct.h>
typedef subModuleBase* (*CreateFunction)();
typedef void (*ReleaseFunction)(subModuleBase* animal);
struct correctionStruct
{
std::vector<double> in_X_X0Y;
std::vector<double> in_Y_X0Y;
std::vector<double> in_Z_X0Y;
std::vector<double> in_Z_X0Y_Value;
std::vector<double> in_X_X0Z;
std::vector<double> in_Y_X0Z;;
std::vector<double> in_Z_X0Z;
std::vector<double> in_Y_X0Z_Value;
std::vector<double> in_X_Y0Z;
std::vector<double> in_Y_Y0Z;
std::vector<double> in_Z_Y0Z;
std::vector<double> in_X_Y0Z_Value;
};
typedef struct {
QString m_stationKy;
QString key; // 相机名称
QString moduleName; // 模块名称
QString task_thread_index = "-1";// 存储当前算法属于那个任务线程
QByteArray m_initByte; // 传递初始化参数
2025-06-05 11:30:12 +08:00
subModuleBase* module_ptr = nullptr; // 存储模块指针
ReleaseFunction destory_ptr; // 释放
QString triggerMode;
cameraStruct _cameraStruct;//外部传入数据
bool init = false;
}cameraModule;
static void createDirectoryIfNotExists(const std::string& path) {
// 检查路径是否存在
if (!std::filesystem::exists(path)) {
// 创建路径
std::filesystem::create_directories(path);
//std::cout << "已创建文件夹: " << path << std::endl;
}
else {/*
std::cout << "文件夹已存在: " << path << std::endl;*/
}
}
#pragma once