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

Need to check if the belief is terminal in stepthrough #549

Closed
himanshugupta1009 opened this issue May 27, 2024 · 1 comment
Closed

Need to check if the belief is terminal in stepthrough #549

himanshugupta1009 opened this issue May 27, 2024 · 1 comment

Comments

@himanshugupta1009
Copy link
Contributor

himanshugupta1009 commented May 27, 2024

I believe there needs to be an additional check in the Base.iterate function here when the iterator is of type POMDPSimIterator -

if isterminal(it.pomdp, is[2]) || is[1] > it.max_steps

It is possible that the true state is not terminal, but the belief represented using a particle set consists of all terminal states. In that case, the simulation should stop, but this is not being checked at the moment and the action_info function leads to an error.

Please let me know if I am missing something here. Thanks!

@zsunberg
Copy link
Member

The error here is due to an inaccurate belief. The person designing or operating the belief updater or policy should be responsible for handling this, not the simulation - it should be fixed at the solver/belief updater. If the simulator terminates on an inaccurate "terminal" belief, it could prevent the simulation from reaching an important terminal state, which would be a silent error and hence harmful.

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