按功能拆分接口并清理核心乱码注释

This commit is contained in:
zhangshun
2026-06-01 17:59:51 +08:00
parent 12310de782
commit 6aa98241ef
12 changed files with 946 additions and 958 deletions

View File

@@ -19,6 +19,24 @@ private:
std::function<void(const std::string &)> onLog;
// 按功能域分发请求
json dispatchCommand(const std::string &req_cmd, const json &req_param);
// 机器人运动学与机器人管理接口
json handleRobotCommand(const std::string &req_cmd, const json &req_param);
// SPC 接口
json handleSpcCommand(const std::string &req_cmd, const json &req_param);
// 连杆机构接口
json handleFourBarCommand(const std::string &req_cmd, const json &req_param);
// 四足机器人接口
json handleQuadrupedCommand(const std::string &req_cmd, const json &req_param);
// 未知命令的默认响应
json createUnknownCommandResponse(const std::string &req_cmd, const json &req_param) const;
public:
KinematicsWebAPI();