Skip to main content

EngineConfig

Struct EngineConfig 

Source
pub struct EngineConfig {
    pub association_radius_meters: f32,
    pub stale_timeout_seconds: f64,
}
Expand description

Tunable thresholds for association and map maintenance.

Fields§

§association_radius_meters: f32

Detections farther than this from an existing object (in meters) are treated as a new object rather than a repeat observation of it.

0.3m comes from the ground-plane projection’s noise sensitivity: for this v0.1 monocular ground-plane method, a fixed pixel error in the detector’s bbox translates to a ground-position error that grows sharply with distance/viewing angle (near-grazing rays amplify small pixel noise into large position swings). At the indoor near-to-medium range this v0.1 engine targets (up to ~4m), +/-8-10px of detector localization error — representative of a moderate real-time detector — stays under ~0.26m of ground jitter, so 0.3m has margin without being so loose that distinct nearby objects merge. Beyond ~5-8m or at shallow viewing angles this margin erodes fast; that’s an inherent limitation of ground-plane-only projection, not something this constant can fix. Validated against real camera motion with synthetic +/-8px detector noise in tests/replay_tum_fixture.rs / tests/fixtures/tum_freiburg1_xyz.json.

§stale_timeout_seconds: f64

An object not reinforced by a new observation within this many seconds (frame-timestamp time, not wall-clock) is dropped. One rule covers all of map maintenance: a one-off false detection never gets reinforced and ages out; a genuinely stale object ages out; an object that moved ages out at its old position while a new one forms at the new position.

2.0s is a reasoned assumption, not a measured one: object detection is usually the expensive stage of a mobile perception pipeline and commonly throttled well below camera framerate, so assume ~5Hz detections and tolerate ~10 consecutive misses (occlusion, motion blur) before treating an object as gone. There’s no real detector dropout data behind this yet — revisit once a live frontend exists.

Trait Implementations§

Source§

impl Clone for EngineConfig

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for EngineConfig

Source§

impl Debug for EngineConfig

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for EngineConfig

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.