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.

This commit is contained in:
2025-09-09 11:15:03 +08:00
parent cf58ad202a
commit f46bb3b7c9
5 changed files with 162 additions and 79 deletions

View File

@@ -35,13 +35,10 @@ int main(int argc, char** argv) {
LOG_INFO("Robot initialized successfully");
g_robot->start();
// Keep the program running
LOG_INFO("System is running. Press Ctrl+C to stop.");
// Main event loop - wait for signals or other events
while (true) {
std::this_thread::sleep_for(std::chrono::milliseconds(100));
// You can add periodic tasks here if needed
}
} catch (const std::exception& e) {