Skip to content

States with varying applicable actions #338

Discussion options

You must be logged in to vote

POMDPs.actions has an optional state or belief argument.

function POMDPs.actions(m::PickNPlace, s)
    if holding(s)
        return [:place]
    else
        return [:pick, :place, :push]
    end
end

In a POMDP rather than an MDP, the second argument will actually be a belief instead of a state, but the robot should know with certainty whether it is holding something, so you should be able to get the relevant information from the belief. Most solvers should work with this, but a few may not, so you may have to add a penalty in the reward function to penalize invalid actions. Let us know if you have any follow-up questions.

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@DonalOCois
Comment options

@zsunberg
Comment options

@DonalOCois
Comment options

@zsunberg
Comment options

@DonalOCois
Comment options

Answer selected by adubredu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants