GKD.RoboCtrl
载入中...
搜索中...
未找到
roboctrl::device::control_pad类 参考

遥控器设备,负责解析上报的报文并设置机器人的速度等状态 更多...

详细描述

遥控器设备,负责解析上报的报文并设置机器人的速度等状态

在文件 controlpad.h13 行定义.

#include <controlpad.h>

类 roboctrl::device::control_pad 继承关系图:
roboctrl::device::device_base roboctrl::log::logable< control_pad > roboctrl::utils::immovable_base roboctrl::utils::not_copyable_base

struct  info_type
 

Public 成员函数

std::string desc () const
 
 control_pad (const info_type &info)
 
- Public 成员函数 继承自 roboctrl::device::device_base
 device_base (const std::chrono::nanoseconds offline_timeout)
 
bool offline ()
 判断设备是否离线
 
void tick ()
 更新心跳时间
 
awaitable< voidtask ()
 默认的task
 
- Public 成员函数 继承自 roboctrl::utils::immovable_base
 immovable_base (immovable_base &&)=delete
 
immovable_baseoperator= (immovable_base &&)=delete
 
- Public 成员函数 继承自 roboctrl::utils::not_copyable_base
 not_copyable_base (const not_copyable_base &)=delete
 
not_copyable_baseoperator= (const not_copyable_base &)=delete
 

额外继承的成员函数

- Protected 成员函数 继承自 roboctrl::log::logable< control_pad >
void log (log_level level, std::format_string< Args... > fmt, Args &&...args) const
 输出日志
 
void log_debug (std::format_string< Args... > fmt, Args &&...args) const
 输出debug日志
 
void log_info (std::format_string< Args... > fmt, Args &&...args) const
 输出info日志
 
void log_warn (std::format_string< Args... > fmt, Args &&...args) const
 输出warn日志
 
void log_error (std::format_string< Args... > fmt, Args &&...args) const
 输出error日志
 
- Protected 属性 继承自 roboctrl::device::device_base
const std::chrono::nanoseconds offline_timeout_
 设备离线超时时间
 
std::chrono::nanoseconds tick_time_
 上次心跳时间
 
bool terminated_ = false
 

构造及析构函数说明

◆ control_pad()

control_pad::control_pad ( const info_type info)

在文件 controlpad.cpp26 行定义.

成员函数说明

◆ desc()

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

在文件 controlpad.h24 行定义.


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