GKD.RoboCtrl
载入中...
搜索中...
未找到
serial_imu.hpp
1
#pragma once
2
3
#include "
device/imu/base.hpp
"
4
5
namespace
roboctrl::device
{
6
class
serial_imu
:
public
imu_base
{
7
public
:
8
struct
info_type
{
9
using
key_type = std::string_view;
10
using
owner_type
=
serial_imu
;
11
12
std::string_view name;
13
std::string_view serial_name;
14
std::string_view key()
const
{
15
return
name;
16
}
17
};
18
19
inline
std::string desc()
const
{
return
std::format(
"serial_imu {} on serial {}"
,info_.name,info_.serial_name);}
20
21
serial_imu
(
const
info_type& info);
22
private
:
23
info_type info_;
24
};
25
26
static_assert
(
imu<serial_imu>
);
27
};
roboctrl::device::serial_imu
Definition
serial_imu.hpp:6
base.hpp
IMU 抽象基类。
roboctrl::async::awaitable
asio::awaitable< T > awaitable
协程任务类型。
Definition
async.hpp:42
roboctrl::device
设备模块
Definition
base.hpp:25
roboctrl::device::imu_base
IMU 基类,封装常见数据通道。
Definition
base.hpp:30
roboctrl::device::serial_imu::info_type
Definition
serial_imu.hpp:8
include
device
imu
serial_imu.hpp
制作者
1.9.8