You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
function POMDPs.generate_sr(pp::UAVchasePOMDP, s::MDPState, a::MDPAction, rng::AbstractRNG)
sp = generate_s(pp, s, a, rng)
return sp, reward(pp,a, sp)
end
with
function POMDPs.gen(pp::UAVchasePOMDP, s::MDPState, a::MDPAction, rng::AbstractRNG) #(**)
#here generate_s is called in the old implementation.
sp=@gen(:sp)(pp,s,a,rng) #Seems to be calling recursively the implementation we are doing here. (*)
return (sp=sp, r=reward(pp,a, sp))
end
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
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.!
The text was updated successfully, but these errors were encountered: