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

详细描述

Source profile: GKD_Control/include/device/referee/protocol.hpp (unversioned). Known commands require their exact source layout; no inferred year upgrades.

在文件 state.hpp 第 42 行定义.

#include <state.hpp>

roboctrl::device::referee_protocol::state 的协作图:

Public 成员函数

bool accept (const frame &input, clock::time_point now)
 

Public 属性

timed_value< game_status > game
 
timed_value< robot_status > robot
 
timed_value< power_heat > power
 
timed_value< bullet_allowance > ammunition
 
timed_value< robot_position > position
 
timed_value< shot_data > shot
 
timed_value< referee_warning > warning
 
timed_value< std::uint8_t > winner
 
timed_value< std::array< std::uint16_t, 16 > > robot_hp
 

成员函数说明

◆ accept()

bool roboctrl::device::referee_protocol::state::accept ( const frame &  input,
clock::time_point  now 
)
inline

在文件 state.hpp 第 53 行定义.

类成员变量说明

◆ ammunition

timed_value<bullet_allowance> roboctrl::device::referee_protocol::state::ammunition

在文件 state.hpp 第 46 行定义.

◆ game

timed_value<game_status> roboctrl::device::referee_protocol::state::game

在文件 state.hpp 第 43 行定义.

◆ position

timed_value<robot_position> roboctrl::device::referee_protocol::state::position

在文件 state.hpp 第 47 行定义.

◆ power

timed_value<power_heat> roboctrl::device::referee_protocol::state::power

在文件 state.hpp 第 45 行定义.

◆ robot

timed_value<robot_status> roboctrl::device::referee_protocol::state::robot

在文件 state.hpp 第 44 行定义.

◆ robot_hp

timed_value<std::array<std::uint16_t, 16> > roboctrl::device::referee_protocol::state::robot_hp

在文件 state.hpp 第 51 行定义.

◆ shot

timed_value<shot_data> roboctrl::device::referee_protocol::state::shot

在文件 state.hpp 第 48 行定义.

◆ warning

timed_value<referee_warning> roboctrl::device::referee_protocol::state::warning

在文件 state.hpp 第 49 行定义.

◆ winner

timed_value<std::uint8_t> roboctrl::device::referee_protocol::state::winner

在文件 state.hpp 第 50 行定义.


该结构体的文档由以下文件生成: