mherb / kalman

Header-only C++11 Kalman Filtering Library (EKF, UKF) based on Eigen3
MIT License
1.33k stars 383 forks source link

Add optional argument forwarding to predict/update using variadic templates #5

Open mherb opened 9 years ago

mherb commented 9 years ago

Example:

// Time-step
float dt = 0.001;
// Pass time-step as optional argument, which is forwarded to sys.f(x,u,dt)
filter.predict(sys, u, dt);

However, this would require to remove virtual-ness of fand h in System/Measurement-Models to allow custom arguments in each model.

wujilingfeng commented 2 years ago

Example:

// Time-step
float dt = 0.001;
// Pass time-step as optional argument, which is forwarded to sys.f(x,u,dt)
filter.predict(sys, u, dt);

However, this would require to remove virtual-ness of fand h in System/Measurement-Models to allow custom arguments in each model.

Why did UnscentedKalmanFilter not add this parameter?