-
Notifications
You must be signed in to change notification settings - Fork 15
[WIP] Rao-Blackwellized Particle Filter #73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See inline comments.
struct RaoBlackwellizedParticleFilter <: Updater | ||
particle_filter::BasicParticleFilter | ||
analytical_filter::AbstractFilter # https://github.com/sisl/GaussianFilters.jl/blob/master/src/kf_classes.jl#L7 | ||
end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
struct RaoBlackwellizedParticleFilter <: Updater | |
particle_filter::BasicParticleFilter | |
analytical_filter::AbstractFilter # https://github.com/sisl/GaussianFilters.jl/blob/master/src/kf_classes.jl#L7 | |
end | |
struct RaoBlackwellizedParticleFilter{PF, AF} <: Updater | |
particle_filter::PF | |
analytical_filter::AF | |
end |
abstract field types can negatively effect performance. We should have a docstring explaining what is expected of particle_filter
and analytical_filter
.
analytical_filter::AbstractFilter # https://github.com/sisl/GaussianFilters.jl/blob/master/src/kf_classes.jl#L7 | ||
end | ||
|
||
mutable struct RaoBlackwellizedParticleCollection{P, T<:AbstractVector{<:Number}, S<:Symmetric{<:Number}, SP, AP, R} <: RaoBlackwellizedParticleBelief |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this needs to be mutable
normalized_weights = weights ./ sum(weights) | ||
analytical_means = [belief.μ for belief in b.analytical_beliefs] | ||
weighted_analytical_mean = sum(normalized_weights .* analytical_means) | ||
return (particles_mean, weighted_analytical_mean) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these should be concatenated (vcat
)
Pull request to open-source RBPF that uses GaussianFilters.jl (https://github.com/sisl/GaussianFilters.jl)