GKD.RoboCtrl
RoboMaster Linux 电控:异步 IO、设备驱动与机器人控制
载入中...
搜索中...
未找到
roboctrl::device::navigation_link类 参考

详细描述

在文件 aim_link.hpp 第 38 行定义.

类 roboctrl::device::navigation_link 继承关系图:
roboctrl::device::navigation_link 的协作图:

类

struct  info_type
 

Public 成员函数

 navigation_link (const info_type &info)
 
void connect ()
 
void start ()
 
std::optional< navigation_command > command () const
 
awaitable< void > send_status (float yaw, float hp_fraction, bool match_started)
 
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
 

构造及析构函数说明

◆ navigation_link()

roboctrl::device::navigation_link::navigation_link ( const info_type &  info)
explicit

在文件 aim_link.cpp 第 44 行定义.

成员函数说明

◆ command()

std::optional< navigation_command > roboctrl::device::navigation_link::command ( ) const

在文件 aim_link.cpp 第 69 行定义.

◆ connect()

void roboctrl::device::navigation_link::connect ( )

在文件 aim_link.cpp 第 52 行定义.

◆ desc()

std::string roboctrl::device::navigation_link::desc ( ) const
inline

在文件 aim_link.hpp 第 55 行定义.

◆ send_status()

awaitable< void > roboctrl::device::navigation_link::send_status ( float  yaw,
float  hp_fraction,
bool  match_started 
)

在文件 aim_link.cpp 第 73 行定义.

◆ start()

void roboctrl::device::navigation_link::start ( )

在文件 aim_link.cpp 第 64 行定义.


该类的文档由以下文件生成: