ouster.sdk.examples.osf module

osf_read_frames(osf_file, limit=10)[source]

Read Lidar Frames from an OSF file.

Shows frames for each sensor in time order stored in the OSF File.

Parameters:
  • osf_file (str) – path to osf file.

  • limit (int)

Return type:

None

osf_get_sensors_info(osf_file)[source]

Read Lidar Sensors info from an OSF file.

Shows metadata for all sensors found in an OSF file.

Parameters:

osf_file (str) – path to osf file.

Return type:

None

osf_slice_frames(osf_file)[source]

Copy frames from input OSF file with reduction using the Writer API.

Slicing is done via saving only RANGE, SIGNAL and REFLECTIVITY fields into an output OSF files. :rtype: str

Parameters:

osf_file (str)

Return type:

str

add_objects_to_frame(frame=None)[source]

Populate a LidarFrame with example Object instances.

Parameters:

frame – optional LidarFrame to update directly.

write_classmaps(osf_path, sensor_info=None)[source]

Write ClassMap metadata to an OSF file.

read_classmaps(osf_path)[source]

Read ClassMap metadata from an OSF FrameSetSource.

main()[source]

OSF examples runner.