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

Converting to FD plan fails when using the a-star search planner #1

Open
yijiangh opened this issue Jan 4, 2022 · 0 comments
Open

Comments

@yijiangh
Copy link

yijiangh commented Jan 4, 2022

I'm trying to use a non-default pyplanner setting, starting from the following setup:

planner = {
                'search': 'a_star', # eager | lazy | hill_climbing | a_star | random_walk | mcts
                'evaluator': 'greedy', # 'bfs' | 'uniform' | 'astar' | 'wastar2' | 'wastar3' | 'greedy'
                'heuristic': 'ff', # goal | add | ff | max | blind
                'successors': 'all', # all | random | first_goals | first_operators,
            }

However, after a plan is found, PDDLStream has a step that converts the plan back to FD format that fails due to a missing state key in the fd_action_from_py_action[action]:

pddlstream\pddlstream\language\attachments.py", line 198, in solve_pyplanners
    fd_action_from_py_action[action][state]
KeyError: State{Atom atrack(v10), Atom atrack(v11), Atom atrack(v12), Atom atrack(v13), Atom atrack(v14), Atom atrack(v15), Atom atrack(v16), Atom robottoolchangerempty(), Atom toolnotoccupiedonjoint(v10), Atom toolnotoccupiedonjoint(v11), Atom toolnotoccupiedonjoint(v12), Atom toolnotoccupiedonjoint(v13)}

I printed and found that the fd_action_from_py_action[action][state] is an empty dict! Weirdly, when using the eager search setup, this will not happen. Still looking into the cause of this problem and will report back soon.

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

1 participant