refactor(navigation): 重构Navigation类继承unitree::robot::Client

移除不必要的client_成员变量,直接继承unitree::robot::Client类
简化初始化逻辑,更新相关文档说明
This commit is contained in:
2025-09-21 15:15:09 +08:00
parent 61d206e948
commit 1a9fc5f7e1
3 changed files with 6 additions and 13 deletions

View File

@@ -429,7 +429,7 @@ unitree-go2/
│ ├── custom_robot.hpp # Main orchestrator
│ ├── logger.hpp # Logging system
│ ├── mqtt.hpp # MQTT client
│ ├── navigation.hpp # Navigation and SLAM
│ ├── navigation.hpp # Navigation and SLAM (inherits from unitree::robot::Client)
│ └── nlohmann/ # JSON library
├── src/ # Source files
│ ├── config.cpp # Configuration implementation
@@ -438,7 +438,7 @@ unitree-go2/
│ ├── logger.cpp # Logging system implementation
│ ├── main.cpp # Entry point
│ ├── mqtt.cpp # MQTT client implementation
│ └── navigation.cpp # Navigation and SLAM implementation
│ └── navigation.cpp # Navigation and SLAM implementation (inherits from unitree::robot::Client)
├── scripts/ # Utility scripts
│ ├── install_deps.sh # Install dependencies
│ └── run_robot.sh # Run with optimal settings