Commit Graph

6 Commits

Author SHA1 Message Date
f46bb3b7c9 Add command processing functionality to CustomRobot class. Introduced methods for handling OAC and Sport commands via MQTT messages, including validation and response publishing. Removed unnecessary logging statements for cleaner output. 2025-09-09 11:15:03 +08:00
cf58ad202a Refactor MQTT callback function names for consistency. Changed MessageCallback and ConnectionCallback to MessageCb and ConnectionCb in mqtt.hpp, mqtt.cpp, and custom_robot.cpp to improve code clarity and maintainability. 2025-09-09 09:56:13 +08:00
e7bfce9dcb Refactor logging in CustomRobot and main event loop implementation. Removed service logging from CustomRobot::start for cleaner output. Added a continuous event loop in main to keep the program running and allow for future periodic tasks. 2025-09-08 20:11:08 +08:00
99ca9456c0 Enhance MQTT connection handling and client ID generation. Updated the MQTT client connection method to accept username and password parameters, added validation for ASCII characters in username and password, and improved error logging for connection failures. Modified client ID generation to ensure it only contains valid ASCII characters, defaulting to a safe value if necessary. 2025-09-08 20:02:14 +08:00
7a9a31afd4 Integrate Paho MQTT C library into project. Updated CMakeLists.txt to find PahoMqttC package and added fallback for manual linking. Refactored mqtt.hpp and mqtt.cpp to utilize Paho MQTT C API, replacing previous async client implementation. Added Windows setup guide for MQTT library installation. 2025-09-08 19:53:39 +08:00
6acff483dd Add initial project structure with CMake configuration, source files, and README documentation for Unitree GO2 Custom Controller 2025-09-07 16:43:22 +08:00