跳转到内容

UBot Motor Commandable

C++
UUBotMotorCommandable
父类
UInterface
类型
接口 · 抽象类 · 可作为蓝图父类
模块
UBotCore · UBotCore 0.1.2
头文件
Source/UBotCore/Public/UBotActuatorInterface.h

接受逐台电机指令的接口,独立于执行器接口。

函数 · UUBotMotorCommandable.ApplyMotorCommand

应用一条电机指令。指令被拒绝时(值的个数不对、没有就绪、数值无效等)返回 false。

引脚方向类型
Command输入UBot Motor Command结构体
Return Value输出Boolean

纯函数 · UUBotMotorCommandable.GetMotorCount

电机数量,也就是电机指令必须有的长度。

引脚方向类型
Return Value输出Integer

函数 · UUBotMotorCommandable.ReleaseMotorCommand

发送方已停止发送(比如指令超时);接收者退回自己的默认行为。