Function ouster::sdk::algorithm::plumb

Function Documentation

nonstd::optional<core::Matrix4dR> ouster::sdk::algorithm::plumb(const core::FrameSet &frames, bool use_imu = true, bool use_walls = true)

Plumb a frame set: level from the IMU, then refine from wall geometry.

plumb_imu() followed by plumb_walls() seeded with the IMU levelling. Without usable IMU data the wall refinement runs from the current orientation alone, which assumes it is already within the wall search range of level; without a trustworthy wall solution the IMU levelling stands. Each outcome is logged.

Parameters:
  • frames[in] Frame set to sample; see plumb_imu() and plumb_walls().

  • use_imu[in] Run the IMU stage.

  • use_walls[in] Run the wall stage.

Returns:

Rotation-only correction to left-multiply onto the current orientation; empty when no requested stage produced a correction.