sensor_msgs中的数据类型代号

来源:互联网 发布:python socket 订阅 编辑:程序博客网 时间:2024/05/17 14:19

在rostopic中看到的数据包可能类似如下格式,对其中的datatype可能不明所以。

name: xoffset: 0datatype: 7count: 1

查看源代码可以得知:

uint8 INT8    = 1uint8 UINT8   = 2uint8 INT16   = 3uint8 UINT16  = 4uint8 INT32   = 5uint8 UINT32  = 6uint8 FLOAT32 = 7uint8 FLOAT64 = 8
0 0
原创粉丝点击