Closed Wu-Chenyang closed 4 years ago
Hi,
It seems like it is passing a StaticArrays.SArray{Tuple{2},Int64,1,2}
instead of Int64
for the action when calling transition
and causes a method error. I have to admit the error message is not super clear.
I think it is because the move_east
policy returns the wrong object, it returns a RSPos
instead of an action.
If you want a policy that always return the action move east then it should be something like that.
move_east = FunctionPolicy() do b
return RockSample.BASIC_ACTIONS_DICT[:east] # return an action (::Int64)
end
Ah! Thanks for quick answer. That solved my problem. 👍
First, I defined a rollout policy:
Second, I used it to estimate values for POMCPOW:
Last, I got output as follows.
Here shows the version of my packages:
Besides, for compatibility, I reset the git HEAD to the commit before "update to pomdps 0.9" with command
git reset --hard 21600e68ae0f633b6ad7ba360429dc4299654d7a
How can I fix this issue?