#ifndef __UT_ROBOT_SDK_CLIENT_STUB_HPP__ #define __UT_ROBOT_SDK_CLIENT_STUB_HPP__ #include #include #include namespace unitree { namespace robot { class ClientStub { public: explicit ClientStub(); ~ClientStub(); void Init(const std::string& name); bool Send(const Request& req, int64_t waitTimeout); RequestFuturePtr SendRequest(const Request& req, int64_t waitTimeout); private: void ResponseFunc(const void* message); private: ChannelLaborPtr mChannelLaborPtr; RequestFutureQueuePtr mFutureQueuePtr; }; using ClientStubPtr = std::shared_ptr; } } #endif//__UT_ROBOT_SDK_CLIENT_STUB_HPP__