|
GKD.RoboCtrl
RoboMaster Linux 电控:异步 IO、设备驱动与机器人控制
|
在文件 aim_link.hpp 第 9 行定义.


类 | |
| struct | info_type |
Public 成员函数 | |
| aim_link (const info_type &info) | |
| void | connect () |
| void | start () |
| std::optional< aim_target > | target () const |
| awaitable< void > | send_posture (float yaw, float pitch, bool red) |
| std::string | desc () const |
Public 成员函数 继承自 roboctrl::device::device_base | |
| device_base (const std::chrono::nanoseconds offline_timeout) | |
| bool | offline () const |
| 判断设备是否离线 | |
| void | tick () |
| 更新心跳时间 | |
| awaitable< void > | task () |
| 默认的task | |
Public 成员函数 继承自 roboctrl::utils::immovable_base | |
| immovable_base (immovable_base &&)=delete | |
| immovable_base & | operator= (immovable_base &&)=delete |
Public 成员函数 继承自 roboctrl::utils::not_copyable_base | |
| not_copyable_base (const not_copyable_base &)=delete | |
| not_copyable_base & | operator= (const not_copyable_base &)=delete |
额外继承的成员函数 | |
Protected 属性 继承自 roboctrl::device::device_base | |
| const std::chrono::nanoseconds | offline_timeout_ |
| 设备离线超时时间 | |
| std::chrono::nanoseconds | tick_time_ |
| 上次心跳时间 | |
| bool | terminated_ = false |
|
explicit |
在文件 aim_link.cpp 第 6 行定义.
| void roboctrl::device::aim_link::connect | ( | ) |
在文件 aim_link.cpp 第 17 行定义.
|
inline |
在文件 aim_link.hpp 第 28 行定义.
| awaitable< void > roboctrl::device::aim_link::send_posture | ( | float | yaw, |
| float | pitch, | ||
| bool | red | ||
| ) |
在文件 aim_link.cpp 第 38 行定义.
| void roboctrl::device::aim_link::start | ( | ) |
在文件 aim_link.cpp 第 29 行定义.
| std::optional< aim_target > roboctrl::device::aim_link::target | ( | ) | const |
在文件 aim_link.cpp 第 34 行定义.