pub struct Params {
pub num_candidates: usize,
pub stride_at_free_flow: f64,
pub cone_half_angle: f64,
pub target_weight: f64,
pub ped_strength: f64,
pub ped_range: f64,
pub wall_strength: f64,
pub wall_range: f64,
pub arrival_radius: f64,
}Expand description
Parameters for the Optimal Steps model.
Fields§
§num_candidates: usizeNumber of candidate points sampled on the stride circle.
stride_at_free_flow: f64Stride length for a pedestrian walking at desired_speed (m).
Candidate radius is clamped to stride_at_free_flow * v/v0.
cone_half_angle: f64Half-angle of the forward search cone (rad). Candidates outside this cone relative to the desired direction are discarded.
target_weight: f64Weight of the destination-attraction term (per m).
ped_strength: f64Strength of the pairwise pedestrian repulsion penalty.
ped_range: f64Range of the pairwise pedestrian repulsion penalty (m).
wall_strength: f64Strength of the wall repulsion penalty.
wall_range: f64Range of the wall repulsion penalty (m).
arrival_radius: f64Arrival radius (m). See
social_force::Params::arrival_radius.
Default: 0.3 m.
Implementations§
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