Class DeskewMethodFactory

Class Documentation

class DeskewMethodFactory

Factory for constructing deskew method instances by name.

Provides static convenience functions to create concrete DeskewMethod implementations using the deskew method name.

Public Static Functions

static std::unique_ptr<DeskewMethod> create(const std::string &method, const std::vector<std::shared_ptr<ouster::sdk::core::SensorInfo>> &infos)

Create a deskew method by name using sensor info objects.

Parameters:
  • method[in] – The string identifier of the desired method (e.g., “constant_velocity”, “imu_deskew”).

  • infos[in] – Per-sensor SensorInfo shared pointers used to internally build XYZLuts for the selected method.

Throws:

if – the method name is unrecognized.

Returns:

Unique pointer to a DeskewMethod instance, or nullptr if “none” was passed as the method name