feat(服务监控): 添加服务状态自动打印功能

当获取服务列表时,系统现在会自动打印每个服务的状态信息到日志中,包括服务名称、当前状态(ACTIVE/INACTIVE)和保护状态(YES/NO)
This commit is contained in:
2025-09-22 14:30:59 +08:00
parent ec6f4c0057
commit 1e4e5c3943
2 changed files with 14 additions and 1 deletions

View File

@@ -14,6 +14,7 @@ A high-performance C++ implementation for controlling Unitree GO2 robot with rea
- **🎭 Special Actions**: Support for dances, tricks, and custom motions
- **🚀 High Performance**: Optimized for real-time control with configurable frequencies
- **🔧 Development Tools**: Built-in scripts and utilities for easy deployment
- **🔍 Service Status Monitoring**: Automatic printing of all robot service statuses
## Architecture
@@ -329,6 +330,11 @@ Supported system commands:
- `list`: Get list of available services
- `switch`: Enable/disable a service
When the service list is retrieved (either through the `list` command or internally), the system automatically prints the status of each service to the logs. Each service entry includes:
- Service name
- Current status (ACTIVE/INACTIVE)
- Protection status (YES/NO)
## Supported Actions
### Basic Motions