Skip to main content

StateEstimation::Particle

StateEstimation::Particle

A weighted particle representing a discrete state (pixel location + velocity). More…

#include <MaskParticleFilter.hpp>

Public Functions

Name
Particle()
Particle(Point2D< uint32_t > pos, float w)
Particle(Point2D< uint32_t > pos, Point2D< float > vel, float w)

Public Attributes

Name
Point2D< uint32_t > position
Point2D< float > velocity
float weight

Detailed Description

struct StateEstimation::Particle;

A weighted particle representing a discrete state (pixel location + velocity).

When use_velocity_model is enabled, particles track both position and velocity. Velocity is in pixels per frame (or pixels per time unit if using actual dt).

Public Functions Documentation

function Particle

inline Particle()

function Particle

inline Particle(
    Point2D< uint32_t > pos,
    float w
)

function Particle

inline Particle(
    Point2D< uint32_t > pos,
    Point2D< float > vel,
    float w
)

Public Attributes Documentation

variable position

Point2D< uint32_t > position;

variable velocity

Point2D< float > velocity;

variable weight

float weight;

Updated on 2026-11-13 at 20:25:41 +0000