Class LidarScanStreamMeta

Inheritance Relationships

Base Type

Class Documentation

class LidarScanStreamMeta : public ouster::sdk::osf::MetadataEntryHelper<LidarScanStreamMeta>

Metadata entry for LidarScanStream to store reference to a sensor and field_types.

OSF type: ouster/v1/os_sensor/LidarScanStream

Flat Buffer Reference: fb/os_sensor/lidar_scan_stream.fbs

Public Functions

LidarScanStreamMeta(const uint32_t sensor_meta_id, const ouster::sdk::core::LidarScanFieldTypes field_types = {})
Parameters:
  • sensor_meta_id[in] – Reference to LidarSensor metadata that describes the sensor configuration.

  • field_types[in] – LidarScan fields specs, this argument is optional.

uint32_t sensor_meta_id() const

Return the sensor meta id.

Returns:

The sensor meta id.

virtual std::vector<uint8_t> buffer() const final

Byte represantation of the internal derived metadata type, used as serialization function when saving to OSF file.

Returns:

The byte vector representation of the metadata.

static std::unique_ptr<MetadataEntry> from_buffer(const OsfBuffer buf)

Create a LidarScanStreamMeta object from a byte array.

Parameters:

buf[in] – The raw flatbuffer byte vector to initialize from.

Returns:

The new LidarScanStreamMeta cast as a MetadataEntry

virtual std::string repr() const override

Get the string representation for the LidarScanStreamMeta object.

Returns:

The string representation for the LidarScanStreamMeta object.