pub struct Params {
pub time_gap: f64,
pub alpha: f64,
pub interaction_range: f64,
pub interaction_strength: f64,
pub wall_range: f64,
pub wall_strength: f64,
pub arrival_radius: f64,
}Expand description
Parameters for the Collision-Free Speed model.
Fields§
§time_gap: f64Safety time gap (s). Larger values produce more conservative walkers.
alpha: f64Direction blending weight on the desired (goal) direction.
interaction_range: f64Interaction range for neighbour repulsion (m).
interaction_strength: f64Interaction strength for neighbour repulsion (dimensionless).
wall_range: f64Wall interaction range (m).
wall_strength: f64Wall interaction strength (dimensionless).
arrival_radius: f64Arrival radius (m). See
social_force::Params::arrival_radius.
Default: 0.3 m.
Implementations§
Source§impl Params
impl Params
Sourcepub fn validate(&self, dt: f64) -> Result<(), CrowdError>
pub fn validate(&self, dt: f64) -> Result<(), CrowdError>
Validate this parameter set against dt.
CFS is a first-order kinematic model: speeds are directly
clamped from the collision-free headroom, so there is no
explicit-Euler CFL condition to check. Validation therefore
focuses on strictly-positive ranges and a finite positive dt.
Trait Implementations§
impl Copy for Params
impl StructuralPartialEq for Params
Auto Trait Implementations§
impl Freeze for Params
impl RefUnwindSafe for Params
impl Send for Params
impl Sync for Params
impl Unpin for Params
impl UnsafeUnpin for Params
impl UnwindSafe for Params
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