8000 Bug in blocks moveb_m · Issue #4 · oubiwann/pyhop · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Bug in blocks moveb_m #4
Open
Open
@bri-jones

Description

@bri-jones

I believe this line:

b1 = helpers.find_if( lambda x: status(x,state,goal,'table') == 'waiting', helpers.all(state))

should be this one to prevent infinite recursion when a block is waiting but already on the table:

b1 = helpers.find_if( lambda x: status(x,state,goal,'table') == 'waiting' and state.pos[x] != 'table', helpers.all(state))

You can trigger the bug in the current code by reversing the order of key iteration in find_if.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0