Skip to content

Commit

Permalink
Push latest code.
Browse files Browse the repository at this point in the history
  • Loading branch information
ashay-bdai committed Sep 20, 2024
1 parent 7298b93 commit 98a4041
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions predicators/perception/spot_perceiver.py
Original file line number Diff line number Diff line change
Expand Up @@ -658,25 +658,25 @@ def _create_goal(self, state: State,
# GroundAtom(VLMOn, [cup, pan])
}
return goal
# if goal_description == "put the mess in the dustpan":
# robot = Object("robot", _robot_type)
# dustpan = Object("dustpan", _dustpan_type)
# wrappers = Object("wrappers", _wrappers_type)
# goal = {
# GroundAtom(Inside, [wrappers, dustpan]),
# GroundAtom(Holding, [robot, dustpan])
# }
# return goal

if goal_description == "put the mess in the dustpan":
robot = Object("robot", _robot_type)
dustpan = Object("dustpan", _dustpan_type)
wrappers = Object("wrappers", _wrappers_type)
goal = {
# GroundAtom(Inside, [wrappers, dustpan]),
GroundAtom(Inside, [wrappers, dustpan]),
GroundAtom(Holding, [robot, dustpan])
}
return goal

# if goal_description == "put the mess in the dustpan":
# robot = Object("robot", _robot_type)
# dustpan = Object("dustpan", _dustpan_type)
# wrappers = Object("wrappers", _wrappers_type)
# goal = {
# # GroundAtom(Inside, [wrappers, dustpan]),
# GroundAtom(Holding, [robot, dustpan])
# }
# return goal

raise NotImplementedError("Unrecognized goal description")

Expand Down

0 comments on commit 98a4041

Please sign in to comment.