Skip to content

Commit

Permalink
update env
Browse files Browse the repository at this point in the history
  • Loading branch information
lf-zhao committed Oct 3, 2024
1 parent 1cfaf71 commit 57b3abd
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions predicators/envs/spot_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -1671,7 +1671,7 @@ def _get_sweeping_surface_for_container(container: Object,
_ContainingWaterUnknown,
_ContainingWater,
_NotContainingWater,
_InHandViewFromTop # TODO check why missing
_InHandViewFromTop
})

_VLM_CLASSIFIER_PREDICATES: Set[VLMPredicate] = {
Expand Down Expand Up @@ -1728,10 +1728,7 @@ def _create_operators() -> Iterator[STRIPSOperator]:
LiftedAtom(_InHandView, [robot, obj]),
}
del_effs = set()
# TODO check the ignore effs
ignore_effs = {_Reachable, _InHandViewFromTop, _InView, _RobotReadyForSweeping}
# ignore_effs = {_Reachable, _InHandView, _InView, _RobotReadyForSweeping}
# ignore_effs = set()
yield STRIPSOperator("MoveToHandObserveObjectFromTop", parameters, preconds,
add_effs, del_effs, ignore_effs)

Expand Down Expand Up @@ -3399,7 +3396,7 @@ def _detection_id_to_obj(self) -> Dict[ObjectDetectionID, Object]:
# "green bowl/greenish bowl")
# TODO test
green_bowl_detection = LanguageObjectDetectionID(
"cardboard box/brown box")
"cardboard box/paper box")
detection_id_to_obj[green_bowl_detection] = green_bowl

# # TODO temp test new object sets
Expand Down Expand Up @@ -3472,16 +3469,17 @@ def _detection_id_to_obj(self) -> Dict[ObjectDetectionID, Object]:
# NOTE: we view cup as container;
cup = Object("cup", _container_type)
# cup_detection = LanguageObjectDetectionID("green bowl/greenish bowl")
cup_detection = LanguageObjectDetectionID("orange cup/orange cylinder/orange-ish mug")
# cup_detection = LanguageObjectDetectionID("orange cup/orange cylinder/orange-ish mug")
# TODO test
# cup_detection = LanguageObjectDetectionID("spam box/spam container/spam-ish box")
# cup_detection = LanguageObjectDetectionID("yellow apple/yellowish apple")
# cup_detection = LanguageObjectDetectionID("green cup/greenish cup")
# cup_detection = LanguageObjectDetectionID("green cup/greenish cup/green cylinder")
cup_detection = LanguageObjectDetectionID("green block/greenish block")
# cup_detection = LanguageObjectDetectionID("green apple/greenish apple")
detection_id_to_obj[cup_detection] = cup

cardboard_box = Object("cardboard_box", _container_type)
cardboard_box_detection = LanguageObjectDetectionID("cardboard box/brown box")
cardboard_box_detection = LanguageObjectDetectionID("cardboard box/paper box")
detection_id_to_obj[cardboard_box_detection] = cardboard_box

for obj, pose in get_known_immovable_objects().items():
Expand Down Expand Up @@ -3541,7 +3539,7 @@ def _detection_id_to_obj(self) -> Dict[ObjectDetectionID, Object]:
detection_id_to_obj[cup_detection] = cup

cardboard_box = Object("cardboard_box", _container_type)
cardboard_box_detection = LanguageObjectDetectionID("cardboard box/brown box")
cardboard_box_detection = LanguageObjectDetectionID("cardboard box/paper box")
detection_id_to_obj[cardboard_box_detection] = cardboard_box

for obj, pose in get_known_immovable_objects().items():
Expand Down

0 comments on commit 57b3abd

Please sign in to comment.