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

云台主控制器单例。 更多...

详细描述

云台主控制器单例。

在文件 gimbal.h18 行定义.

#include <gimbal.h>

类 roboctrl::ctrl::gimbal 继承关系图:
roboctrl::utils::singleton_base< gimbal > roboctrl::log::logable< gimbal > roboctrl::utils::immovable_base roboctrl::utils::not_copyable_base

struct  info_type
 初始化参数。 更多...
 

Public 成员函数

std::string desc () const
 
fp32 yaw () const
 
void set_yaw (fp32 yaw)
 
bool init (const info_type &info)
 初始化云台资源与控制器。
 
awaitable< voidtask ()
 主循环任务,负责刷新控制器。
 
- Public 成员函数 继承自 roboctrl::utils::singleton_base< gimbal >
 singleton_base (const singleton_base &)=delete
 
singleton_baseoperator= (const singleton_base &)=delete
 
- 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
 

额外继承的成员函数

- 静态 Public 成员函数 继承自 roboctrl::utils::singleton_base< gimbal >
static gimbal & instance ()
 获取单例实例
 
- Protected 成员函数 继承自 roboctrl::log::logable< gimbal >
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日志
 

成员函数说明

◆ desc()

std::string roboctrl::ctrl::gimbal::desc ( ) const
inline

在文件 gimbal.h20 行定义.

◆ init()

bool gimbal::init ( const info_type info)

初始化云台资源与控制器。

在文件 gimbal.cpp15 行定义.

引用了 roboctrl::log::logable< gimbal >::log_info(), roboctrl::async::spawn() , 以及 task().

◆ set_yaw()

void roboctrl::ctrl::gimbal::set_yaw ( fp32  yaw)
inline

在文件 gimbal.h22 行定义.

◆ task()

roboctrl::awaitable< void > gimbal::task ( )

主循环任务,负责刷新控制器。

在文件 gimbal.cpp8 行定义.

引用了 roboctrl::async::wait_for().

被这些函数引用 init().

◆ yaw()

fp32 roboctrl::ctrl::gimbal::yaw ( ) const
inline

在文件 gimbal.h21 行定义.


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