Skip to content

Commit

Permalink
circular corridors beginning
Browse files Browse the repository at this point in the history
  • Loading branch information
FlyingWorkshop committed May 12, 2024
1 parent 585ab7d commit 25b78a0
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/CompressedBeliefMDPs.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
module CompressedBeliefMDPs

using POMDPs, POMDPTools, POMDPModels
using QuickPOMDPs
using ParticleFilters
using LocalApproximationValueIteration
using LocalFunctionApproximation
Expand Down
43 changes: 43 additions & 0 deletions src/envs/circular_corridors.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
struct CircularCorridorsState
is_top::Bool
index::Integer
end


struct CircularCorridorsPOMDP <: POMDP{CircularCorridorsState, Integer, Integer}
top_goal::CircularCorridorsState
bot_goal::CircularCorridorsState
end


# actions
const LEFT = 0
const RIGHT = 1
const SENSE_CORRIDOR = 2
const DECLARE_GOAL = 3


function states(p::CircularCorridorsPOMDP)
return nothing
end


function stateindex(p::CircularCorridorsPOMDP, s::CircularCorridorsState)
return nothing
end


# function observation(p::CircularCorridorsPOMDP, a::Integer, sp::CircularCorridorsState)
# if a == SENSE_CORRIDOR
# if sp.is_top
# return sp === p.top_goal
# else
# return sp === p.bot_goal
# end
# else
# # TODO: von Mises distribution
# end
# end



0 comments on commit 25b78a0

Please sign in to comment.