Skip to content
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

Updater should handle state #1

Open
zsunberg opened this issue Jun 4, 2024 · 0 comments
Open

Updater should handle state #1

zsunberg opened this issue Jun 4, 2024 · 0 comments

Comments

@zsunberg
Copy link

zsunberg commented Jun 4, 2024

mutable struct StatefulPBVIPolicy{P,T,A} <: Policy
const pomdp::P
const tree::T
const actions::A
const solver
state::Int
b::SparseVector{Float64,Int}
last_a::Int
steps::Int
const t_replan::Float64
const ϵ_replan::Float64
function StatefulPBVIPolicy(pomdp::P, tree::T, solver::SO; t_replan=0.05, ϵ_replan=solver.epsilon) where {P,T, SO}
A = ordered_actions(pomdp)
return new{P,T,typeof(A)}(pomdp, tree, A, solver, 1, first(tree.b), -1, 0, t_replan, ϵ_replan)
end
end

My intent when designing POMDPs.jl was for people to handle a stateful policy by creating an updater/policy pair. We should talk about this in a meeting.

-- Zach

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant