Replies: 1 comment 4 replies
-
Hi @miguzca , I really apologize for letting this slip through the cracks! There is a simple solution: just delete the second method of Another alternative is to just define function POMDPs.transition(pp::UAVchaseProblem, s::MDPState, a::MDPAction)
return ImplicitDistribution() do rng
# put all your code that was in `gen` here
return MDPState(curr_pos, curr_angle, curr_targ, curr_targ_true)
end
end I don't think sampletype should be needed anymore, but feel free to elaborate if you keep running into problems. |
Beta Was this translation helpful? Give feedback.
-
Hi all!,
Thank you for the nice framework!. I am super new to Julia, and I am trying to run an implementation of a project that was done a while a go, but it seems that the implementation does not run in new versions of POMDPs framework and I am trying to figure out how to make it run. The implementation is provided here (https://github.com/biy001/UAV-autonomous-landing/blob/master/UAVLanding.jl) and I have noticed that there are mainly issues in the way "generate_s", "generate_o" and "generate_sr" are implemented in new versions of the framework. In current versions, apparently you have to use "POMDPs.gen" and return a NamedTuple with next state (sp), observation (o), and reward (r). So, basically I have modified for example
with
and
with
But I get an "StackOverflowError" because it seems to be looping (calling recursively (*) and (**)). So I guess I just do not know how to call the different implementations of "POMDPs.gen", could you please explain me how to do it?. Similarly, there is an issue with
And I have modified the code like this
But I do not think that is going to work (so far it does not show any errors there). Do you have any ideas about how to solve these issues? :).
Thank you very much in advance.!
Beta Was this translation helpful? Give feedback.
All reactions