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

@@ -8,7 +8,7 @@
namespace custom {
class Navigation {
class Navigation : public unitree::robot::Client {
public:
Navigation();
~Navigation();
@@ -24,7 +24,6 @@ public:
bool closeSlam();
private:
std::unique_ptr<unitree::robot::Client> client_;
bool callSlamService(int api_id, const nlohmann::json& data);
};