diff --git a/include/recharge.hpp b/include/recharge.hpp new file mode 100644 index 0000000..e69de29 diff --git a/src/custom_robot.cpp b/src/custom_robot.cpp index 5ab545d..6617072 100644 --- a/src/custom_robot.cpp +++ b/src/custom_robot.cpp @@ -43,7 +43,6 @@ CustomRobot::~CustomRobot() { controller_.reset(); } - // 屏蔽与low_controller_相关的代码 // low_controller_ = std::make_unique(); // low_controller_->initialize(); @@ -70,7 +69,6 @@ bool CustomRobot::initialize() { controller_ = std::make_unique(); controller_->initialize(); - // 屏蔽与low_controller_相关的代码 // low_controller_ = std::make_unique(); // low_controller_->initialize(); @@ -124,7 +122,6 @@ bool CustomRobot::start() { return false; } - // 屏蔽与low_controller_相关的代码 // if (!low_controller_->start()) { // LOG_ERROR("Failed to start low-level controller"); // return false; @@ -296,7 +293,6 @@ void CustomRobot::processCmd(const nlohmann::json& message) { bool CustomRobot::processLowCmd(const std::string& cmd, const nlohmann::json& message) { - // 屏蔽与low_controller_相关的代码 // if (!low_controller_) // { // LOG_ERROR("LowController not initialized"); @@ -333,7 +329,6 @@ bool CustomRobot::processLowCmd(const std::string& cmd, const nlohmann::json& me // return false; // } - // 临时返回false,直到重新实现功能 LOG_WARN("LowController functionality is currently disabled"); return false; } @@ -678,7 +673,6 @@ bool CustomRobot::processSportCmd(const std::string& cmd, const nlohmann::json& std::string CustomRobot::generateRandomClientId() const { std::string baseId = config_.mqtt_client_id; - // 确保base ID只包含ASCII字符 std::string safeBaseId; for (char c : baseId) { if (std::isalnum(c) || c == '_' || c == '-') { diff --git a/src/recharge.cpp b/src/recharge.cpp new file mode 100644 index 0000000..e69de29