![]() |
RMVL
2.5.0-dev
Robotic Manipulation and Vision Library
|
异步客户端代理 更多...
#include <rmvl/lpss/node.hpp>
Public 类型 | |
| using | ptr = std::shared_ptr<Client<SrvType>> |
| using | Request = typename SrvType::Request |
| using | Response = typename SrvType::Response |
Public 成员函数 | |
| bool | invalid () const noexcept |
| 判断客户端是否无效 | |
| template<typename Rep, typename Period> | |
| rm::async::Task< std::optional< Response > > | call (const Request &request, std::chrono::duration< Rep, Period > timeout) |
| 调用服务并异步等待响应 | |
友元 | |
| class | Node |
异步客户端代理
| using rm::lpss::async::Client< SrvType >::ptr = std::shared_ptr<Client<SrvType>> |
| using rm::lpss::async::Client< SrvType >::Request = typename SrvType::Request |
| using rm::lpss::async::Client< SrvType >::Response = typename SrvType::Response |
| rm::async::Task< std::optional< Response > > rm::lpss::async::Client< SrvType >::call | ( | const Request & | request, |
| std::chrono::duration< Rep, Period > | timeout ) |
调用服务并异步等待响应
| [in] | request | 请求消息 |
| [in] | timeout | 超时时间 |
|
inlinenoexcept |
判断客户端是否无效
|
friend |