Refactor configuration management by introducing CustomConfig class. Updated config.hpp to streamline settings and removed legacy configuration presets. Adjusted controller and custom_robot classes to utilize the new configuration structure. Enhanced error handling and logging during initialization processes.

This commit is contained in:
2025-09-08 18:16:50 +08:00
parent f72ce9ce58
commit 926d88972d
8 changed files with 188 additions and 556 deletions

View File

@@ -23,7 +23,7 @@ int main(int argc, char** argv) {
signal(SIGTERM, signalHandler);
try {
g_robot = std::make_unique<CustomRobot>("");
g_robot = std::make_unique<CustomRobot>();
if (!g_robot->initialize()) {
LOG_ERROR("Failed to initialize robot");