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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user