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, const core::Matrix4dR &initial_pose = core::Matrix4dR::Identity())

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.

  • initial_pose[in] Pose used to anchor the first frame before a motion model has been established. Defaults to identity.

Throws:

if – the method name is unrecognized.

Returns:

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