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

POMDPs.value doesn't work w/ POMCPPlanner #37

Open
FlyingWorkshop opened this issue Mar 17, 2024 · 1 comment
Open

POMDPs.value doesn't work w/ POMCPPlanner #37

FlyingWorkshop opened this issue Mar 17, 2024 · 1 comment

Comments

@FlyingWorkshop
Copy link
Member

I was trying to do some benchmarking for the upcoming CompressedBeliefMDPs.jl package and ran into some trouble when trying to use POMDPs.value on POMCPPlanner. Is this expected behavior? POMCPPlanner subclasses POMDPs.Policy, so I thought it would support the POMDPs.jl interface.

Steps to Recreate

using BasicPOMCP
using POMDPs
using POMDPTools
using POMDPModels

pomdp = BabyPOMDP()
solver = POMCPSolver()
planner = solve(solver, pomdp)
r = value(planner, initialstate(pomdp))

Error

ERROR: LoadError: MethodError: no method matching value(::POMCPPlanner{BabyPOMDP, BasicPOMCP.SolvedPORollout{RandomPolicy{Random._GLOBAL_RNG, BabyPOMDP, NothingUpdater}, NothingUpdater, Random._GLOBAL_RNG}, Random._GLOBAL_RNG}, ::BoolDistribution)

Closest candidates are:
  value(::MCTS.MCTSPlanner, ::Any)
   @ MCTS ~/.julia/packages/MCTS/AjLdf/src/vanilla.jl:199
  value(::MCTS.MCTSTree, ::Any)
   @ MCTS ~/.julia/packages/MCTS/AjLdf/src/vanilla.jl:206
  value(::MCTS.MCTSPlanner{<:Union{MDP, POMDP}, S, A}, ::S, ::A) where {S, A}
   @ MCTS ~/.julia/packages/MCTS/AjLdf/src/vanilla.jl:214
  ...

Stacktrace:
 [1] top-level scope
   @ ~/VSCodeProjects/BeliefCompression/demos/pomcp_test.jl:9
in expression starting at /Users/logan/VSCodeProjects/BeliefCompression/demos/pomcp_test.jl:9
@mykelk
Copy link
Member

mykelk commented Mar 17, 2024

I think some online algorithms do not do not support value.

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

2 participants