主要内容

重置

重置到第一条消息Ibeo数据容器(IDC)文件选择

自从R2021a

描述

例子

重置(msgReader重置ibeoMessageReader对象,msgReader到选定的第一条消息。

例子

全部折叠

创建一个ibeoFileReader对象,ibeoReader,从IDC文件中读取消息头。替换占位符参数sample_data.idc你的IDC文件的名称为sample_data.idc工具箱中不提供文件。

ibeereader = ibeoFileReader(“sample_data.idc”
ibeoReader = ibeoFileReader,属性:FileName: "C:/Documents/MATLAB/ibeo_data/sample_data. txt "idc" StartTime: 15-Mar-2020 11:21:04.999434999结束时间:15-Mar-2020 11:25:35.030095000持续时间:00:04:30 FileSummary: CAN 53 msgs [0x1002] scan 53 msgs [0x2205] object 106 msgs [0x2281] image 53 msgs [0x2403] vehicleState 53 msgs [0x2808] measurementList 53 msgs [0x2821] pointCloudPlane 53 msgs [0x7510] unsupported 53 msgs [0x6120] unsupported 53 msgs [0x6970]

创建一个ibeoMessageReader对象,imgReader,以在前2分钟内读取所有图像,可使用选择使用适当的消息类型和时间范围值函数。

timeRange = [0, minutes(2)];imgReader = select(ibereader,“图像”, timeRange);

通过一次读取一条消息到视频播放器对象来可视化消息数据。首先,创建一个愿景。放像机对象。然后,使用hasNextMessage函数,检查是否imgReader在当前消息之后包含一条消息。如果有,就使用readNextMessage函数将图像读入工作区。

videoPlayer = vision.VideoPlayer;hasNextMessage(imreader) img = readNextMessage(imreader);步骤(放像机、img);结束释放(放像机);

重置ibeoMessageReader对象,imgReader,到选择中的第一条消息,使用重置函数。

重置(imgReader);

输入参数

全部折叠

消息读取器,指定为ibeoMessageReader对象。

版本历史

R2021a中引入

Baidu
map