refactor(custom_robot): 移除服务列表的详细日志输出

移除GetServiceList方法中对每个服务状态的详细日志输出,保留获取服务列表成功的基本日志
This commit is contained in:
2025-09-22 19:21:55 +08:00
parent c5cff9fbdb
commit a2a3040967

View File

@@ -148,11 +148,11 @@ bool CustomRobot::GetServiceList(std::vector<unitree::robot::go2::ServiceState>&
}
LOG_INFO("Successfully retrieved service list with " + std::to_string(serviceList.size()) + " services");
for (const auto& service : serviceList) {
std::string statusStr = (service.status == 1) ? "ACTIVE" : "INACTIVE";
LOG_INFO("Service: " + service.name + " | Status: " + statusStr + " | Protect: " +
(service.protect ? "YES" : "NO"));
}
// for (const auto& service : serviceList) {
// std::string statusStr = (service.status == 1) ? "ACTIVE" : "INACTIVE";
// LOG_INFO("Service: " + service.name + " | Status: " + statusStr + " | Protect: " +
// (service.protect ? "YES" : "NO"));
// }
return true;
} catch (const std::exception& e) {