-
Notifications
You must be signed in to change notification settings - Fork 59
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
Probabilistic Effects are not applied correctly #73
Comments
|
hi Rushang! i'm not sure I understand the example you gave. what is wrong with it? isn't this what is desired? i don't quite get what you mean by "this causes application of the effect to result in invalid states" |
Hi Rohan, You are correct that the desired result removes Using this domain file with this problem file and getting possible successors of the action returns two states with the predicate
Problem
Applying the action |
sampling a transition works fine, but trying to get all possible successors does not. |
the issue is that the predicate |
hi Rushang, thanks for reporting, i'll need to write a unit test to check this and figure out the bug. will get to it later! |
hi Rushang, i've successfully recreated the bug in a unit test (c1a0b95) unfortunately, the logic in in terms of the actual bug, these lines are doing the wrong thing, by adding individual atoms from each effect into the side note: another bug i noticed is that if you call sorry that i couldn't be more help, Rushang 😢 cc @tomsilver in case you have time to dig deeper into this |
Thanks Rohan! I've been just using my workaround to move the common effects outside the loop. I'll try to see if i can open up a pull request in case i do manage to fix the issue! |
I might have a fix for this. Where can i find the process for creating tests and pull requests? @tomsilver |
@RushangKaria I have just discovered the exact same bug and was thinking of searching for a fix when I read this thread, especially your last message when you say that you found a fix. I am the maintainer of a fork of pddlgymnasium (which is itself a fork of pddlgym enabling gymnasium instead of gym) for which I build and upload wheels on PyPi. I have already corrected some annoying parsing bugs, including bugs related to parsing probabilistic effects. I would be happy if you can create a pull request to my repository with your fix of the probabilistic effect application bug. Thanks a lot in advance! |
Hi @fteicht , Gosh! Its been a long time. I'll have to try and search if I can find the code and fix somewhere! IIRC the fix was not too difficult. |
Hi @RushangKaria I'm glad to hear from you since this thread is nearly one year old! |
Hi @fteicht Im afraid I cannot find the fix! The issue happens with the common effects as I had mentioned earlier. IIRC the fix I made collects such operators iteratively in a set and then applies the rest of the logic as-is. I'm sorry that I couldn't help you much. |
Currently, if there are common sets of probabilistic effects, they are not applied correctly since the parser expects the common effects to be defined outside the probabilistic block
Here is a simple example. (assume empty preconditions and a single parameter x).
The text was updated successfully, but these errors were encountered: