reset
Reset the CurrentTime
property of
velodyneFileReader
object to the default value
Syntax
Description
reset(
resets the
veloReader
)CurrentTime
property of velodyneFileReader
to the default value. The default value is the
StartTime
property of velodyneFileReader
.
Examples
Reset the velodyneFileReader object
Construct velodyneFileReader
object.
veloReader = velodyneFileReader('lidarData_ConstructionRoad.pcap','PuckLITE');
Inspect the properties of the velodyneFileReader
object to know the CurrentTime
. The default value of CurrentTime
is the value of StartTime
.
veloReader
veloReader = velodyneFileReader with properties: FileName: '/mathworks/devel/bat/filer/batfs2561-0/Bdoc24b.2679053/build/runnable/matlab/toolbox/vision/visiondata/lidarData_ConstructionRoad.pcap' DeviceModel: 'PuckLITE' CalibrationFile: '/mathworks/devel/bat/filer/batfs2561-0/Bdoc24b.2679053/build/runnable/matlab/toolbox/shared/pointclouds/utilities/velodyneFileReaderConfiguration/PuckLITE.xml' OrganizePoints: 1 NumberOfFrames: 40 Duration: 1.9982 sec StartTime: 1145.1 sec EndTime: 1147.1 sec Timestamps: [1145.1 sec 1145.1 sec 1145.2 sec 1145.2 sec 1145.3 sec 1145.3 sec 1145.4 sec 1145.4 sec 1145.5 sec 1145.5 sec 1145.6 sec 1145.6 sec 1145.7 sec 1145.7 sec ... ] (1x40 duration) HasPositionData: 1 CurrentTime: 1145.1 sec
Use readFrame
to read a point cloud frame from the velodyneFileReader
object.
frameNumber = 30; ptCloud = readFrame(veloReader,frameNumber);
Inspect the CurrentTime
property of velodyneFileReader
object.
veloReader.CurrentTime
ans = duration
1146.6 sec
Reset the CurrentTime
property of velodyneFileReader
object.
reset(veloReader)
Inspect the CurrentTime
property and verify that its value is reset to the default value.
veloReader.CurrentTime
ans = duration
1145.1 sec
Input Arguments
veloReader
— Velodyne® file reader
velodyneFileReader
object
Velodyne file reader, specified as a velodyneFileReader
object.
Version History
Introduced in R2018a
Comando de MATLAB
Ha hecho clic en un enlace que corresponde a este comando de MATLAB:
Ejecute el comando introduciéndolo en la ventana de comandos de MATLAB. Los navegadores web no admiten comandos de MATLAB.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)