JuliaPOMDP / POMDPModels.jl

Problem models for testing POMDPs.jl
Other
31 stars 28 forks source link

Setting initial state belief in TabularPOMDP? #76

Open ShawnGeller opened 3 years ago

ShawnGeller commented 3 years ago

Hello, thank you for making this package! I wanted to know how to set the initial state belief in a TabularPOMDP. It looks like currently it's hard coded to be uniform over states. I'm not very familiar with Julia, so I tried extending this myself but had some trouble.

zsunberg commented 3 years ago

Yes, you are correct. For now, as a hack, you can override it yourself by overriding the initialstate function, for example:

POMDPs.initialstate(p::TabularPOMDP) = POMDPModelTools.Deterministic(1)

Eventually, we should put another field in the TabularPOMDP struct so that people can set it via the constructor. PRs welcome :)

ShawnGeller commented 3 years ago

Got it, thanks for the quick hack!