Skip to content

Commit

Permalink
only cookable and fillable are heatable
Browse files Browse the repository at this point in the history
  • Loading branch information
ChengshuLi committed Mar 11, 2024
1 parent 3f14b32 commit a5e69b9
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 18 deletions.
11 changes: 2 additions & 9 deletions bddl/activity_definitions/cook_lasagne/problem0.bddl
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,7 @@
)

(:init
(ontop lasagna.n.01_1 oven.n.01_1)
(not
(hot oven.n.01_1)
)
(ontop lasagna.n.01_1 oven.n.01_1)
(not
(cooked lasagna.n.01_1)
)
Expand All @@ -26,11 +23,7 @@
(exists
(?lasagna.n.01 - lasagna.n.01)
(ontop ?lasagna.n.01 ?oven.n.01_1)
)
(exists
(?oven.n.01 - oven.n.01)
(hot ?oven.n.01)
)
)
(forall
(?lasagna.n.01 - lasagna.n.01)
(cooked ?lasagna.n.01_1)
Expand Down
6 changes: 1 addition & 5 deletions bddl/activity_definitions/cook_pumpkin_seeds/problem0.bddl
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,7 @@
agent.n.01_1 - agent.n.01
)

(:init
(not
(hot oven.n.01_1)
)
(:init
(filled pumpkin_seed__bag.n.01_1 pumpkin_seed.n.01_1)
(ontop pumpkin_seed__bag.n.01_1 chopping_board.n.01_1)
(insource salt__shaker.n.01_1 salt.n.02_1)
Expand All @@ -41,7 +38,6 @@
(real ?cooked__pumpkin_seed.n.01_1)
(covered ?cookie_sheet.n.01_1 ?cooked__pumpkin_seed.n.01_1)
(covered ?cookie_sheet.n.01_1 ?salt.n.02_1)
(hot ?oven.n.01_1)
)
)
)
4 changes: 3 additions & 1 deletion bddl/data_generation/get_syn_prop_annots_canonical.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,9 @@ def add_programmatic_properties(synset_content): # runs programmatic addition ov
synset_content[synset]["deformable"] = {}
if ("cloth" in synset_content[synset]) or ("rope" in synset_content[synset]):
synset_content[synset]["drapeable"] = {}
if ("nonSubstance" in synset_content[synset]) and ("cookable" in synset_content[synset] or "fillable" in synset_content[synset]):
# cookables and fillables are both heatable
synset_content[synset]["heatable"] = {}
if "nonSubstance" in synset_content[synset]: # non-substances are both wetable and mixable
synset_content[synset].update({
"wetable": {},
Expand All @@ -139,7 +142,6 @@ def add_programmatic_properties(synset_content): # runs programmatic addition ov
"rustable": {},
"wrinkleable": {},
"disinfectable": {},
"heatable": {} # All nonsubstances are heatable. Substances are not heatable.
})
synset_content[synset]["freezable"] = {} # all synsets are freezable

Expand Down
2 changes: 0 additions & 2 deletions bddl/data_generation/process_prop_param_annots.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,6 @@ def create_get_save_propagated_annots_params(syns_to_props):
raise ValueError(f"synset {param_record['synset']} cookable annotation has NaN value for parameter {param_name}. Either handle NaN or annotate parameter value.")
elif prop == "flammable":
raise ValueError(f"synset {param_record['synset']} flammable annotation has NaN value for parameter {param_name}. Either handle NaN or annotate parameter value.")
elif prop == "heatable":
raise ValueError(f"synset {param_record['synset']} heatable annotation has NaN value for parameter {param_name}. Either handle NaN or annotate parameter value.")
elif prop == "heatSource":
raise ValueError(f"synset {param_record['synset']} heatSource annotation has NaN value for parameter {param_name}. Either handle NaN or annotate parameter value.")
elif prop == "particleApplier":
Expand Down
1 change: 0 additions & 1 deletion bddl/data_generation/pull_sheets.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
(SYNSET_PARAMS_SHEET_KEY, "coldSource", "prop_param_annots/coldSource.csv"),
(SYNSET_PARAMS_SHEET_KEY, "cookable", "prop_param_annots/cookable.csv"),
(SYNSET_PARAMS_SHEET_KEY, "flammable", "prop_param_annots/flammable.csv"),
(SYNSET_PARAMS_SHEET_KEY, "heatable", "prop_param_annots/heatable.csv"),
(SYNSET_PARAMS_SHEET_KEY, "particleApplier", "prop_param_annots/particleApplier.csv"),
(SYNSET_PARAMS_SHEET_KEY, "particleSource", "prop_param_annots/particleSource.csv"),
(SYNSET_PARAMS_SHEET_KEY, "particleRemover", "prop_param_annots/particleRemover.csv"),
Expand Down

0 comments on commit a5e69b9

Please sign in to comment.