pub struct GroundConfig {
pub cell_size: f32,
pub height_threshold: f32,
pub erosion_cells: usize,
pub up_axis: UpAxis,
}Expand description
Configuration for GroundSegmenter.
Fields§
§cell_size: f32Side length of each grid cell in the ground plane.
height_threshold: f32Max height above the local ground estimate for a point to be ground.
erosion_cells: usizeErosion window radius in cells (0 disables erosion).
up_axis: UpAxisWhich axis is “up”.
Implementations§
Source§impl GroundConfig
impl GroundConfig
Sourcepub const fn new(cell_size: f32, height_threshold: f32) -> GroundConfig
pub const fn new(cell_size: f32, height_threshold: f32) -> GroundConfig
Creates a config from the cell size and height threshold (Z up).
Trait Implementations§
Source§impl Clone for GroundConfig
impl Clone for GroundConfig
Source§fn clone(&self) -> GroundConfig
fn clone(&self) -> GroundConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GroundConfig
impl Debug for GroundConfig
Source§impl Default for GroundConfig
impl Default for GroundConfig
Source§fn default() -> GroundConfig
fn default() -> GroundConfig
Returns the “default value” for a type. Read more
Source§impl PartialEq for GroundConfig
impl PartialEq for GroundConfig
impl Copy for GroundConfig
impl StructuralPartialEq for GroundConfig
Auto Trait Implementations§
impl Freeze for GroundConfig
impl RefUnwindSafe for GroundConfig
impl Send for GroundConfig
impl Sync for GroundConfig
impl Unpin for GroundConfig
impl UnsafeUnpin for GroundConfig
impl UnwindSafe for GroundConfig
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