pub struct FrameConverter { /* private fields */ }Expand description
It reads columns of sensor data, and gathers points into sequence of frames.
It internally computes point cloud using PointCloudConverter. The columns must be pushed in the same order of LIDAR output. It keeps track of skipped columns and dropped frames.
Implementations§
Source§impl FrameConverter
impl FrameConverter
Sourcepub fn from_config(config: Config) -> Self
pub fn from_config(config: Config) -> Self
Creates converter from config.
Sourcepub fn resolution(&self) -> (u16, u16)
pub fn resolution(&self) -> (u16, u16)
Returns the resolution in (width, height) pair.
Sourcepub fn columns_per_revolution(&self) -> u16
pub fn columns_per_revolution(&self) -> u16
Returns the number of columns per revolution.
Sourcepub fn push_column(&mut self, column: &Column) -> Result<Vec<Frame>>
pub fn push_column(&mut self, column: &Column) -> Result<Vec<Frame>>
Pushes new Column to converter.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FrameConverter
impl RefUnwindSafe for FrameConverter
impl Send for FrameConverter
impl Sync for FrameConverter
impl Unpin for FrameConverter
impl UnwindSafe for FrameConverter
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more