跳转到内容

UBot Motor Command

C++
FUBotMotorCommand
模块
UBotCore · UBotCore 0.1.2
节点
Break · Make
头文件
Source/UBotCore/Public/UBotActuatorInterface.h

逐台电机的指令,每台电机一个值,顺序与接收者的电机顺序一致。

字段类型蓝图说明
TypeTypeEUBot Motor Command Type枚举读写Values 里各个值的含义:占最大值的比例(0 到 1),或转速(rad/s)。
ValuesValuesFloat (double)数组读写每台电机一个值。
Timestamp SecondsTimestampSecondsFloat (double)读写发出指令时的仿真时间,单位秒。
SourceSourceName读写来源标签,格式自由,比如 ROS、MCP、Blueprint。

拆分结构体 · Break:FUBotMotorCommand

把 UBot Motor Command 拆成值的含义、各电机的值、时间戳和来源。

引脚方向类型说明
UBot Motor Command输入UBot Motor Command结构体
Type输出EUBot Motor Command Type枚举What the values mean.
Values输出Float (double)数组One value per motor.
Timestamp Seconds输出Float (double)uBot sim time at which the command was issued.
Source输出NameFree-form origin tag, e.g. "ROS", "MCP", "Blueprint".

构造结构体 · Make:FUBotMotorCommand

用值的含义、各电机的值、时间戳和来源构造一个 UBot Motor Command。

引脚方向类型默认值说明
Type输入EUBot Motor Command Type枚举NormalizedWhat the values mean.
Values输入Float (double)数组One value per motor.
Timestamp Seconds输入Float (double)0.0uBot sim time at which the command was issued.
Source输入NameNoneFree-form origin tag, e.g. "ROS", "MCP", "Blueprint".
UBot Motor Command输出UBot Motor Command结构体