Class LidarSensor¶
Defined in File meta_lidar_sensor.h
Inheritance Relationships¶
Base Type¶
public ouster::sdk::osf::MetadataEntryHelper< LidarSensor >Template Class MetadataEntryHelper
Class Documentation¶
-
class LidarSensor : public ouster::sdk::osf::MetadataEntryHelper<LidarSensor>¶
Metadata entry to store lidar SensorInfo, i.e.
Ouster sensor configuration.
OSF type: ouster/v1/os_sensor/LidarSensor
Flat Buffer Reference: fb/os_sensor/lidar_sensor.fbs
Public Functions
-
explicit LidarSensor(const sensor_info &sensor_info)¶
- Parameters:
sensor_info[in] Initialize the LidarSensor with a sensor_info object.
-
explicit LidarSensor(const std::string &sensor_metadata)¶
- Parameters:
sensor_metadata[in] Initialize the LidarSensor with a json string representation of the sensor_info object.
-
const sensor_info &info() const¶
Returns the sensor_info associated with the LidarSensor.
- Returns:
The sensor_info associated with the LidarSensor.
-
const std::string &metadata() const¶
Returns the json string representation sensor_info associated with the LidarSensor.
- Returns:
The json string representation of the sensor_info object.
-
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 LidarSensor object from a byte array.
- Parameters:
buf[in] The raw flatbuffer byte vector to initialize from.
- Returns:
The new LidarSensor cast as a MetadataEntry
-
virtual std::string repr() const override¶
Get the string representation for the LidarSensor object.
- Returns:
The string representation for the LidarSensor object.
-
virtual std::string to_string() const override¶
Get the string representation for the LidarSensor object.
- Returns:
The string representation for the LidarSensor object.
-
explicit LidarSensor(const sensor_info &sensor_info)¶