meta_lidar_sensor.h
- 
class LidarSensor : public ouster::osf::MetadataEntryHelper<LidarSensor>
 Metadata entry to store lidar sensor_info, 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 &si)
 - Parameters:
 si – [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 std::vector<uint8_t> &buf)
 Create a LidarSensor object from a byte array.
- Todo:
 Figure out why this wasnt just done as a constructor overload.
- 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
 - Todo:
 Figure out why we have both repr and to_string
Get the string representation for the LidarSensor object.
- Returns:
 The string representation for the LidarSensor object.
- 
explicit LidarSensor(const sensor_info &si)
 
- 
template<>
struct MetadataTraits<LidarSensor> - #include <meta_lidar_sensor.h>
Templated struct for returning the OSF type string.
Public Static Functions
- 
static inline const std::string type()
 Return the OSF type string.
- Returns:
 The OSF type string “ouster/v1/os_sensor/LidarSensor”.
 - 
static inline const std::string type()