Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
李
@小鱼 是这样的 我一开始 定义一个sensor_msg:Image msg 然后直接memcpy(&msg.data[0],buf,size) 报段错误
后来发现data是vector类型,在定义msg的时候,data大小是0,也就是没有分配内存 所以会报段错误 用resize 方法分配一下内存就好了