From 5b6e648814aa829706cb94e6c44766ee9a6d9f12 Mon Sep 17 00:00:00 2001
From: LAPTOP-SNT8I5JK\Boounion <Chenluhua@qq.com>
Date: 星期三, 28 五月 2025 11:06:47 +0800
Subject: [PATCH] 1.机器槽位信息设计(CSlot)
---
SourceCode/Bond/Servo/CRobotTask.h | 28 ++++++++++++++++++++++++++++
1 files changed, 28 insertions(+), 0 deletions(-)
diff --git a/SourceCode/Bond/Servo/CRobotTask.h b/SourceCode/Bond/Servo/CRobotTask.h
new file mode 100644
index 0000000..54e847b
--- /dev/null
+++ b/SourceCode/Bond/Servo/CRobotTask.h
@@ -0,0 +1,28 @@
+#pragma once
+#include "ServoCommo.h"
+
+
+namespace SERVO {
+ class CRobotTask
+ {
+ public:
+ CRobotTask();
+ virtual ~CRobotTask();
+
+ public:
+ std::string& getId();
+ void setRobotTransferParam(int seq, int armNo, int fromPos, int toPos, int fromSlot, int toSlot);
+ ROBOT_CMD_PARAM& getRobotCmdParam();
+ time_t getCreateTime();
+ time_t getFinishTime();
+
+ private:
+ static std::string& generateId(std::string& out);
+
+ public:
+ std::string m_strId;
+ time_t m_timeCreate; /* 创建时间 */
+ time_t m_timeFinish; /* 结束时间 */
+ ROBOT_CMD_PARAM m_robotCmdParam; /* 参数 */
+ };
+}
--
Gitblit v1.9.3