diff --git a/include/config.hpp b/include/config.hpp index 3d2b494..219cb40 100644 --- a/include/config.hpp +++ b/include/config.hpp @@ -19,7 +19,7 @@ enum class Gait : int { constexpr std::string_view NETWORK_INTERFACE = "eth0"; // MQTT settings -constexpr std::string_view MQTT_BROKER = "192.168.11.24"; +constexpr std::string_view MQTT_BROKER = "120.24.241.164"; constexpr int MQTT_PORT = 1883; constexpr std::string_view MQTT_CLIENT_ID = "unitree_go2_client"; constexpr std::string_view MQTT_USERNAME = "lzwc"; diff --git a/src/custom_robot.cpp b/src/custom_robot.cpp index d2c8166..3dd7194 100644 --- a/src/custom_robot.cpp +++ b/src/custom_robot.cpp @@ -783,7 +783,7 @@ std::string CustomRobot::generateRandomClientId() const { std::stringstream ss; ss << "go2_client_"; - // 生成8位随机十六进制字符 + // 生成8位随机十六进制字符R for (int i = 0; i < 8; ++i) { ss << std::hex << dis(gen); }