我从rostopic读取了一个json uint8[] data
数组,它给出了输出
我想回应的主题是/head_camera/depth/points
它的数据类型为sensor_msgs/PointCloud2.msg
它具有以下要素:
std_msgs/Header header uint32 height
uint32 width
sensor_msgs/PointField[] fields
bool is_bigendian
uint32 point_step
uint32 row_step
uint8[] data
bool is_dense
我发送下面的json消息来接收数据:
{
"op":"subscribe",
"topic":"/head_camera/depth/points"
}
我收到消息(在matlab中使用fscanf()):
{"topic": "/head_camera/depth/points", "msg": {"width": 640, "is_dense": false, "point_step": 16, "height": 480, "header": {"stamp": {"secs": 1453928112, "nsecs": 53613655}, "frame_id": "head_camera_rgb_optical_frame", "seq": 0}, "data": "AADAfwAAwH8AAMB/AAAAAAAAwH8AAMB/AADAfwAAAAAAAM
只是"数据"部分是不正确的,那么如何处理?