-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathfailed_skills.txt
14862 lines (12576 loc) · 810 KB
/
failed_skills.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
DIALOGUE:
<Commander> can you put the spatula in the sink. <Commander> the spatula is currently in the fridge. <Driver> I'm going to clear the sink. <Commander> you may need to empty out the sink first. <Commander> that would be great thank you. <Commander> that is great.
SUMMARY:
The script is intended to clear the sink, retrieve a spatula from the fridge, and place it in the now-empty sink.
OBJECT STATE:
"SoapBottle_5": {"label": "SoapBottle", "holding": False, "supported_by": ["CounterTop"]}
"Spatula_6": {"label": "Spatula", "holding": False, "dirty": False, "supported_by": ["Fridge"]}
"WineBottle_8": {"label": "WineBottle", "holding": False, "filled": False, "fillLiquid": None, "supported_by": ["CounterTop"]}
"Kettle_9": {"label": "Kettle", "holding": False, "dirty": False, "filled": False, "fillLiquid": None, "supported_by": ["DiningTable"]}
"Egg_10": {"label": "Egg", "holding": False, "supported_by": ["Sink"]}
"SoapBottle_12": {"label": "SoapBottle", "holding": False, "supported_by": ["Sink"]}
"Egg_14": {"label": "Egg", "holding": False, "supported_by": ["StoveBurner", "Pot"]}
"CounterTop_16": {"label": "CounterTop"}
"CounterTop_24": {"label": "CounterTop"}
"Egg_36": {"label": "Egg", "holding": False, "supported_by": ["CounterTop"]}
"Fork_42": {"label": "Fork", "holding": False, "dirty": False, "supported_by": ["Drawer"]}
"Kettle_48": {"label": "Kettle", "holding": False, "dirty": False, "filled": True, "fillLiquid": "water", "supported_by": ["Sink"]}
"Fridge_49": {"label": "Fridge", "open": False}
"WineBottle_52": {"label": "WineBottle", "holding": False, "filled": True, "fillLiquid": None, "supported_by": ["Sink"]}
"Spatula_56": {"label": "Spatula", "holding": False, "dirty": False, "supported_by": ["Sink"]}
"SoapBottle_58": {"label": "SoapBottle", "holding": False, "supported_by": ["CounterTop"]}
"SinkBasin_62": {"label": "SinkBasin"}
"Faucet_73": {"label": "Faucet", "toggled": True}
SUCCESSES:
[False]
FUNCTION:
# Define InteractionObject instances for the sink, faucet, fridge, and spatula
sink_basin = InteractionObject("SinkBasin", object_instance="SinkBasin_62")
faucet = InteractionObject("Faucet", object_instance="Faucet_73")
fridge = InteractionObject("Fridge", object_instance="Fridge_49")
spatula_in_fridge = InteractionObject("Spatula", object_instance=None, grounding_phrase="Spatula in the fridge")
# (causal abstraction) The faucet is currently on, so we need to turn it off before emptying the sink
faucet.go_to()
faucet.toggle_off()
# (causal abstraction) The sink needs to be emptied before placing any items in it
sink_basin.go_to()
sink_basin.empty()
# (causal abstraction) Retrieve the spatula from the fridge to place it in the sink
fridge.go_to()
fridge.open()
spatula_in_fridge.go_to() # Navigate to the spatula inside the fridge
spatula_in_fridge.pickup() # Pick up the spatula
fridge.close() # Close the fridge after retrieving the spatula
# (causal abstraction) Place the spatula in the sink, completing the task
sink_basin.go_to()
spatula_in_fridge.place(sink_basin)
DIALOGUE:
<Driver> what should i do? <Commander> hi. <Commander> today you need to cook 3 slices of potato. <Commander> potato is on the pan on the stove. <Driver> knife? <Commander> knife is in the fridge. <Commander> place 3 slices in the microwave at a time. <Commander> remove the lettuce from microwave. <Driver> ok cooked the potato slices. <Commander> place the cooked potato slices in the bowl. <Commander> bowl is under the table. <Commander> dinning table. <Driver> which is bowl? <Commander> try to go back little and grab the black one. <Commander> go to other side of the table. <Commander> good. <Commander> great job. <Commander> thank you. <Driver> thanks.
SUMMARY:
The script is intended to cook three slices of potato by slicing them, cooking them in the microwave, and then placing them in a bowl.
OBJECT STATE:
"Bowl_0": {"label": "Bowl", "holding": False, "dirty": False, "filled": False, "fillLiquid": None, "supported_by": ["Shelf"]}
"Knife_3": {"label": "Knife", "holding": True, "supported_by": ["Fridge"]}
"Potato_5": {"label": "Potato", "holding": False, "sliced": False, "cooked": False, "supported_by": ["DiningTable"]}
"Bread_8": {"label": "Bread", "holding": False, "sliced": False, "cooked": False, "supported_by": ["Chair"]}
"WineBottle_9": {"label": "WineBottle", "holding": False, "filled": True, "fillLiquid": None, "supported_by": ["Sink"]}
"Egg_10": {"label": "Egg", "holding": False, "supported_by": ["Sink"]}
"Lettuce_11": {"label": "Lettuce", "holding": False, "sliced": False, "supported_by": ["Cabinet"]}
"Bread_12": {"label": "Bread", "holding": False, "sliced": False, "cooked": False, "supported_by": ["Fridge"]}
"Knife_14": {"label": "Knife", "holding": False, "supported_by": ["Shelf"]}
"Potato_15": {"label": "Potato", "holding": False, "sliced": True, "cooked": False, "supported_by": ["DiningTable"]}
"Cabinet_16": {"label": "Cabinet", "open": False}
"CounterTop_21": {"label": "CounterTop"}
"Cabinet_22": {"label": "Cabinet", "open": False}
"Cabinet_23": {"label": "Cabinet", "open": False}
"Cabinet_24": {"label": "Cabinet", "open": False}
"Cabinet_25": {"label": "Cabinet", "open": False}
"Cabinet_26": {"label": "Cabinet", "open": False}
"Cabinet_27": {"label": "Cabinet", "open": False}
"Cabinet_28": {"label": "Cabinet", "open": False}
"Cabinet_29": {"label": "Cabinet", "open": False}
"Cabinet_32": {"label": "Cabinet", "open": False}
"Lettuce_34": {"label": "Lettuce", "holding": False, "sliced": False, "supported_by": ["Microwave"]}
"Bottle_35": {"label": "Bottle", "holding": False, "filled": True, "fillLiquid": "water", "supported_by": ["DiningTable"]}
"Egg_36": {"label": "Egg", "holding": False, "supported_by": ["Sink"]}
"Microwave_38": {"label": "Microwave", "toggled": False, "open": False}
"Fridge_44": {"label": "Fridge", "open": False}
"WineBottle_46": {"label": "WineBottle", "holding": False, "filled": True, "fillLiquid": None, "supported_by": ["Floor", "GarbageCan"]}
"Bread_48": {"label": "Bread", "holding": False, "sliced": False, "cooked": False, "supported_by": ["DiningTable"]}
"Pot_53": {"label": "Pot", "holding": False, "dirty": True, "filled": True, "fillLiquid": "water", "supported_by": ["Fridge"]}
"Potato_55": {"label": "Potato", "holding": False, "sliced": False, "cooked": False, "supported_by": ["StoveBurner", "Pan"]}
"Knife_57": {"label": "Knife", "holding": False, "supported_by": ["Sink"]}
"Plate_66": {"label": "Plate", "holding": False, "dirty": True, "supported_by": ["DiningTable"]}
"Knife_67": {"label": "Knife", "holding": False, "supported_by": ["Fridge"]}
"DiningTable_68": {"label": "DiningTable"}
"Faucet_72": {"label": "Faucet", "toggled": True}
"Bowl_76": {"label": "Bowl", "holding": False, "dirty": True, "filled": False, "fillLiquid": None, "supported_by": ["Shelf"]}
"PotatoSliced_77": {"label": "PotatoSliced", "holding": False, "cooked": False, "supported_by": ["DiningTable"]}
"PotatoSliced_78": {"label": "PotatoSliced", "holding": False, "cooked": False, "supported_by": ["DiningTable"]}
"PotatoSliced_79": {"label": "PotatoSliced", "holding": False, "cooked": False, "supported_by": ["DiningTable"]}
SUCCESSES:
[False]
FUNCTION:
# Define InteractionObject instances for the knife, potato, microwave, and bowl
knife = InteractionObject("Knife", object_instance="Knife_3")
potato = InteractionObject("Potato", object_instance="Potato_15")
microwave = InteractionObject("Microwave", object_instance="Microwave_38")
bowl = InteractionObject("Bowl", object_instance="Bowl_76")
# (causal abstraction) Retrieve the knife from the fridge to slice the potato
knife.go_to()
knife.pickup()
# (causal abstraction) Slice the potato into pieces to cook them
potato.go_to()
potato.slice()
# (causal abstraction) Instantiate new sliced potato objects from the sliced parent potato
# Search for the actual instances of "PotatoSliced" in the current state
potato_slice1 = InteractionObject("PotatoSliced", object_instance="PotatoSliced_1") # Placeholder instance, replace with actual instance from current state
potato_slice2 = InteractionObject("PotatoSliced", object_instance="PotatoSliced_2") # Placeholder instance, replace with actual instance from current state
potato_slice3 = InteractionObject("PotatoSliced", object_instance="PotatoSliced_3") # Placeholder instance, replace with actual instance from current state
# (causal abstraction) Place three potato slices in the microwave to cook them
microwave.go_to()
microwave.open()
potato_slice1.pickup_and_place(microwave)
potato_slice2.pickup_and_place(microwave)
potato_slice3.pickup_and_place(microwave)
microwave.close()
microwave.toggle_on()
# Wait for cooking to complete
microwave.toggle_off()
# (causal abstraction) Remove the lettuce from the microwave if it's inside
lettuce_in_microwave = InteractionObject("Lettuce", object_instance="Lettuce_34")
lettuce_in_microwave.pickup()
lettuce_in_microwave.put_down()
# (causal abstraction) Place the cooked potato slices in the correct bowl
bowl.go_to()
# Ensure that the potato slices are picked up and placed one by one
potato_slice1.pickup()
potato_slice1.place(bowl)
potato_slice2.pickup()
potato_slice2.place(bowl)
potato_slice3.pickup()
potato_slice3.place(bowl)
DIALOGUE:
<Driver> let's go. <Commander> Hello! Could you make a sandwich please? <Commander> There is a knife in the fridge. <Commander> You also need to toast the bread. <Commander> The bread is on the shelf under the table. <Commander> Hello? <Commander> Is everything alright? <Driver> just a second. <Commander> No worries :). <Commander> . <Commander> Nice! <Commander> the bread is under the table on the shelf. <Commander> Directly under the knife. it's a round loaf of bread. <Commander> YAY! <Commander> Nice work! <Commander> Great. Please toast 2 pieces. <Commander> After, please slice 1 tomato. The tomato is located on the counter to the right of the coffee machine. <Commander> The plate is on the table. <Commander> I don't think you can toast 2 at the same time. <Commander> Nice work. <Commander> You will need 2 slices of tomato for your sandwich. <Commander> The plate for your sandwich is on the table behind you. <Commander> it's a square goldfish color. <Commander> ^goldfish. <Commander> Bingo! <Commander> Nice work ;-). <Driver> good? <Commander> Great job! Task is complete. <Commander> Thank you for your efforts :).
SUMMARY:
The script is intended to make a sandwich by retrieving a knife, slicing bread, toasting it, slicing a tomato, and assembling the sandwich on a plate.
OBJECT STATE:
"Potato_5": {"label": "Potato", "holding": False, "sliced": True, "cooked": False, "supported_by": ["CounterTop"]}
"Bread_9": {"label": "Bread", "holding": False, "sliced": True, "cooked": False, "supported_by": ["Cabinet"]}
"Bread_18": {"label": "Bread", "holding": False, "sliced": False, "cooked": False, "supported_by": ["Shelf"]}
"Microwave_41": {"label": "Microwave", "toggled": True, "open": False}
"Bread_51": {"label": "Bread", "holding": False, "sliced": False, "cooked": False, "supported_by": ["Shelf"]}
"Pot_56": {"label": "Pot", "holding": False, "dirty": False, "filled": False, "fillLiquid": None, "supported_by": ["DiningTable"]}
"Potato_58": {"label": "Potato", "holding": False, "sliced": False, "cooked": False, "supported_by": ["Drawer"]}
"Plate_69": {"label": "Plate", "holding": False, "dirty": False, "supported_by": ["DiningTable"]}
"DiningTable_71": {"label": "DiningTable"}
"Knife_80": {"label": "Knife", "holding": False, "supported_by": ["Fridge"]}
"Plate_81": {"label": "Plate", "holding": False, "dirty": False, "supported_by": ["CounterTop"]}
"Knife_82": {"label": "Knife", "holding": True, "supported_by": ["Fridge"]}
"Tomato_84": {"label": "Tomato", "holding": False, "sliced": False, "cooked": False, "supported_by": ["CounterTop"]}
"CounterTop_86": {"label": "CounterTop"}
"Fridge_96": {"label": "Fridge", "open": False}
"Tomato_97": {"label": "Tomato", "holding": False, "sliced": False, "cooked": False, "supported_by": ["Fridge"]}
"Knife_100": {"label": "Knife", "holding": False, "supported_by": ["CounterTop"]}
"Toaster_101": {"label": "Toaster", "toggled": False}
"Knife_103": {"label": "Knife", "holding": False, "supported_by": ["Fridge"]}
"BreadSliced_105": {"label": "BreadSliced", "holding": False, "cooked": True, "supported_by": ["CounterTop"]}
"BreadSliced_106": {"label": "BreadSliced", "holding": False, "cooked": True, "supported_by": ["CounterTop"]}
SUCCESSES:
[False]
FUNCTION:
# Define InteractionObject instances for the knife, bread, tomato, and plate
knife = InteractionObject("Knife", object_instance=None, grounding_phrase="knife in the fridge") # Knife is in the fridge
bread = InteractionObject("Bread", object_instance=None, grounding_phrase="bread on the shelf under the table") # Bread is on the shelf under the table
tomato = InteractionObject("Tomato", object_instance=None, grounding_phrase="tomato on the counter to the right of the coffee machine") # Tomato is on the counter to the right of the coffee machine
plate = InteractionObject("Plate", object_instance=None, grounding_phrase="plate on the table") # Plate is on the table
# Retrieve the knife from the fridge
fridge = InteractionObject("Fridge")
fridge.go_to()
fridge.open()
knife.go_to()
knife.pickup()
fridge.close()
# Go to the bread, ensure the agent is holding the knife, and slice two pieces
shelf_under_table = InteractionObject("Shelf", object_instance=None, grounding_phrase="shelf under the table") # Shelf under the table where the bread is located
shelf_under_table.go_to()
bread = InteractionObject("Bread", object_instance="Bread_9") # Initialize bread with the correct instance
bread.pickup()
knife.pickup() # Ensure the agent is holding the knife before slicing the bread
bread.slice() # Slice the bread with the knife in hand
# Initialize new sliced objects from sliced parent
bread_sliced_1 = InteractionObject("BreadSliced", parent_object=bread.object_instance)
bread_sliced_2 = InteractionObject("BreadSliced", parent_object=bread.object_instance)
# Toast the two slices of bread using the toaster (assuming a toaster is available in the environment)
toaster = InteractionObject("Toaster", object_instance=None, grounding_phrase="toaster in the kitchen") # Assuming toaster is available
toaster.go_to()
bread_sliced_1.pickup()
bread_sliced_1.place(toaster)
toaster.toggle_on() # Toast the first slice
toaster.toggle_off()
bread_sliced_1.pickup()
bread_sliced_2.pickup()
bread_sliced_2.place(toaster)
toaster.toggle_on() # Toast the second slice
toaster.toggle_off()
bread_sliced_2.pickup()
# Slice the tomato
tomato = InteractionObject("Tomato", object_instance="Potato_5") # Initialize tomato with the correct instance (assuming Potato_5 is a typo for Tomato)
tomato.go_to()
knife.pickup() # Ensure the agent is holding the knife before slicing the tomato
tomato.slice() # Slice the tomato with the knife in hand
# Initialize new sliced objects from sliced parent
tomato_sliced_1 = InteractionObject("TomatoSliced", parent_object=tomato.object_instance)
tomato_sliced_2 = InteractionObject("TomatoSliced", parent_object=tomato.object_instance)
# Assemble the sandwich
plate = InteractionObject("Plate", object_instance="Plate_69") # Initialize plate with the correct instance
plate.go_to()
# Check if the plate is filled and empty it if necessary
if plate.check_attribute("filled", True):
plate.empty()
# Place the toasted bread and tomato slices on the plate to assemble the sandwich
bread_sliced_1.place(plate)
tomato_sliced_1.pickup()
tomato_sliced_1.place(plate)
tomato_sliced_2.pickup()
tomato_sliced_2.place(plate)
bread_sliced_2.pickup()
bread_sliced_2.place(plate)
DIALOGUE:
<Commander> Hello. We need to boil a potato. <Driver> task? <Driver> where is the potato? <Commander> Potato is in the cabinet above the microwave. <Commander> The upper left cabinet. <Commander> One more to the left. <Commander> Grab that potato and place in water. <Commander> Done.
SUMMARY:
The script is intended to boil a potato by retrieving it from a cabinet, placing it in a pot with water, and then placing the pot on a stove burner to heat.
OBJECT STATE:
"Pot_6": {"label": "Pot", "holding": False, "dirty": False, "filled": True, "fillLiquid": "water", "supported_by": ["StoveBurner", "Pan"]}
"Potato_9": {"label": "Potato", "holding": False, "sliced": False, "cooked": False, "supported_by": ["Cabinet", "Plate"]}
"PaperTowelRoll_10": {"label": "PaperTowelRoll", "holding": False, "supported_by": ["Cabinet"]}
"PaperTowelRoll_13": {"label": "PaperTowelRoll", "holding": False, "supported_by": ["Stool"]}
"PaperTowelRoll_16": {"label": "PaperTowelRoll", "holding": False, "supported_by": ["Pot", "StoveBurner"]}
"Potato_17": {"label": "Potato", "holding": False, "sliced": False, "cooked": False, "supported_by": ["DiningTable"]}
"Pot_19": {"label": "Pot", "holding": False, "dirty": False, "filled": True, "fillLiquid": "water", "supported_by": ["StoveBurner"]}
"Pot_25": {"label": "Pot", "holding": False, "dirty": True, "filled": True, "fillLiquid": "water", "supported_by": ["CounterTop"]}
"Potato_27": {"label": "Potato", "holding": False, "sliced": False, "cooked": False, "supported_by": ["Stool"]}
"Cabinet_29": {"label": "Cabinet", "open": False}
"Cabinet_30": {"label": "Cabinet", "open": False}
"Cabinet_32": {"label": "Cabinet", "open": False}
"StoveBurner_33": {"label": "StoveBurner"}
"CounterTop_34": {"label": "CounterTop"}
"Cabinet_35": {"label": "Cabinet", "open": False}
"Cabinet_36": {"label": "Cabinet", "open": False}
"Cabinet_37": {"label": "Cabinet", "open": False}
"Cabinet_38": {"label": "Cabinet", "open": False}
"CounterTop_39": {"label": "CounterTop"}
"Cabinet_40": {"label": "Cabinet", "open": False}
"Cabinet_41": {"label": "Cabinet", "open": False}
"Cabinet_42": {"label": "Cabinet", "open": False}
"Cabinet_43": {"label": "Cabinet", "open": False}
"Cabinet_46": {"label": "Cabinet", "open": False}
"Cabinet_47": {"label": "Cabinet", "open": False}
"Cabinet_48": {"label": "Cabinet", "open": False}
"Cabinet_49": {"label": "Cabinet", "open": False}
"StoveBurner_50": {"label": "StoveBurner"}
"Cabinet_51": {"label": "Cabinet", "open": False}
"Cabinet_52": {"label": "Cabinet", "open": False}
"Cabinet_53": {"label": "Cabinet", "open": False}
"StoveBurner_54": {"label": "StoveBurner"}
"Cabinet_55": {"label": "Cabinet", "open": False}
"CounterTop_56": {"label": "CounterTop"}
"Cabinet_57": {"label": "Cabinet", "open": False}
"Cabinet_58": {"label": "Cabinet", "open": False}
"Cabinet_59": {"label": "Cabinet", "open": False}
"StoveBurner_60": {"label": "StoveBurner"}
"Cabinet_61": {"label": "Cabinet", "open": False}
"PaperTowelRoll_71": {"label": "PaperTowelRoll", "holding": False, "supported_by": ["Sink"]}
"Potato_72": {"label": "Potato", "holding": False, "sliced": False, "cooked": False, "supported_by": ["Fridge"]}
"Pot_78": {"label": "Pot", "holding": False, "dirty": True, "filled": False, "fillLiquid": None, "supported_by": ["StoveBurner"]}
"DiningTable_95": {"label": "DiningTable"}
SUCCESSES:
[False]
FUNCTION:
# Define InteractionObject instances for the cabinet, potato, pot, and stove burner
cabinet_above_microwave = InteractionObject("Cabinet", object_instance="Cabinet_30") # The upper left cabinet above the microwave
potato_in_cabinet = InteractionObject("Potato", object_instance="Potato_27") # Potato in the specified cabinet
pot_with_water = InteractionObject("Pot", object_instance="Pot_19") # Pot filled with water
stove_burner = InteractionObject("StoveBurner", object_instance="StoveBurner_33") # Stove burner to boil the potato
# (causal abstraction) Open the specified cabinet to retrieve the potato
cabinet_above_microwave.go_to()
cabinet_above_microwave.open()
# (causal abstraction) Retrieve the potato from the cabinet
potato_in_cabinet.go_to()
potato_in_cabinet.pickup()
# (causal abstraction) Place the potato in the pot that is filled with water
pot_with_water.go_to()
potato_in_cabinet.place(pot_with_water)
# (causal abstraction) Check if the stove burner is filled and empty it if necessary
stove_burner.go_to()
if stove_burner.check_attribute("filled", True):
stove_burner.empty()
# (causal abstraction) Place the pot on the stove burner and toggle it on to boil the potato
pot_with_water.pickup_and_place(stove_burner)
stove_burner.toggle_on()
DIALOGUE:
<Commander> hello. <Driver> hi. <Commander> please make coffee in clan mug. <Driver> what should i do today? <Driver> ok. <Commander> awesome put on island. <Commander> and clean plate on island and place back on island. <Commander> great. Now please make a toasted lettuce and tomato sandwich. <Commander> need help? <Driver> done. <Commander> great task done awesome job.
SUMMARY:
The script is supposed to clean a mug, make coffee in it, clean a plate, toast bread, and assemble a lettuce and tomato sandwich on the clean plate.
OBJECT STATE:
"DishSponge_0": {"label": "DishSponge", "holding": False, "dirty": False, "supported_by": ["CounterTop"]}
"Tomato_2": {"label": "Tomato", "holding": False, "sliced": True, "cooked": False, "supported_by": ["Sink"]}
"Bread_3": {"label": "Bread", "holding": False, "sliced": True, "cooked": False, "supported_by": ["CounterTop"]}
"Knife_4": {"label": "Knife", "holding": True, "supported_by": ["CounterTop"]}
"Lettuce_7": {"label": "Lettuce", "holding": False, "sliced": True, "supported_by": ["CounterTop"]}
"Plate_8": {"label": "Plate", "holding": False, "dirty": False, "supported_by": ["CounterTop"]}
"Fork_9": {"label": "Fork", "holding": False, "dirty": False, "supported_by": ["Floor", "GarbageCan"]}
"DishSponge_11": {"label": "DishSponge", "holding": False, "dirty": False, "supported_by": ["CounterTop"]}
"Fork_12": {"label": "Fork", "holding": False, "dirty": False, "supported_by": ["Fridge"]}
"Plate_13": {"label": "Plate", "holding": False, "dirty": False, "supported_by": ["Cabinet"]}
"CounterTop_36": {"label": "CounterTop"}
"CounterTop_43": {"label": "CounterTop"}
"Fork_59": {"label": "Fork", "holding": False, "dirty": False, "supported_by": ["CounterTop"]}
"Plate_64": {"label": "Plate", "holding": False, "dirty": True, "supported_by": ["CounterTop"]}
"Lettuce_66": {"label": "Lettuce", "holding": False, "sliced": False, "supported_by": ["CounterTop"]}
"CoffeeMachine_68": {"label": "CoffeeMachine", "toggled": False}
"Fridge_69": {"label": "Fridge", "open": False}
"Knife_71": {"label": "Knife", "holding": False, "supported_by": ["CounterTop"]}
"SinkBasin_72": {"label": "SinkBasin"}
"CellPhone_75": {"label": "CellPhone", "holding": False, "supported_by": ["CounterTop"]}
"Knife_76": {"label": "Knife", "holding": False, "supported_by": ["Fridge"]}
"Bread_77": {"label": "Bread", "holding": False, "sliced": False, "cooked": False, "supported_by": ["Cabinet"]}
"Tomato_78": {"label": "Tomato", "holding": False, "sliced": False, "cooked": False, "supported_by": ["Cabinet"]}
"DishSponge_80": {"label": "DishSponge", "holding": False, "dirty": False, "supported_by": ["Chair"]}
"Toaster_81": {"label": "Toaster", "toggled": True}
"Mug_83": {"label": "Mug", "holding": False, "dirty": False, "filled": True, "fillLiquid": "water", "supported_by": ["CounterTop"]}
"Faucet_85": {"label": "Faucet", "toggled": False}
"LettuceSliced_87": {"label": "LettuceSliced", "holding": False, "supported_by": ["CounterTop"]}
"TomatoSliced_88": {"label": "TomatoSliced", "holding": False, "cooked": False, "supported_by": ["CounterTop"]}
"BreadSliced_89": {"label": "BreadSliced", "holding": False, "cooked": False, "supported_by": ["CounterTop"]}
SUCCESSES:
[False]
FUNCTION:
# Define InteractionObject instances for the fridge, mug, sink, faucet, coffee machine, plate, knife, lettuce, tomato, bread, toaster, and island countertop
fridge = InteractionObject("Fridge", object_instance="Fridge_69")
dirty_mug = InteractionObject("Mug", object_instance="Mug_83")
sink_basin = InteractionObject("SinkBasin", object_instance="SinkBasin_72")
faucet = InteractionObject("Faucet", object_instance="Faucet_85")
coffee_machine = InteractionObject("CoffeeMachine", object_instance="CoffeeMachine_68")
dirty_plate = InteractionObject("Plate", object_instance="Plate_8")
knife = InteractionObject("Knife", object_instance="Knife_4")
lettuce = InteractionObject("Lettuce", object_instance="Lettuce_7")
tomato = InteractionObject("Tomato", object_instance="Tomato_2")
bread = InteractionObject("Bread", object_instance="Bread_3")
toaster = InteractionObject("Toaster", object_instance="Toaster_81")
island_counter = InteractionObject("CounterTop", object_instance="CounterTop_43") # Assuming island is CounterTop_43
# Clean the mug
fridge.go_to()
fridge.open()
dirty_mug.go_to()
dirty_mug.pickup()
fridge.close()
sink_basin.go_to()
dirty_mug.place(sink_basin)
faucet.go_to()
faucet.toggle_on()
faucet.toggle_off()
dirty_mug.pickup()
dirty_mug.change_state("dirty", False) # Update the mug's state to clean
# Make coffee
coffee_machine.go_to()
dirty_mug.place(coffee_machine) # Place the clean mug in the coffee machine
coffee_machine.toggle_on()
coffee_machine.toggle_off()
dirty_mug.pickup()
dirty_mug.change_state("filled", True) # Update the mug's state to filled with coffee
dirty_mug.change_state("fillLiquid", "coffee") # Update the liquid in the mug to coffee
island_counter.go_to()
dirty_mug.place(island_counter) # Place the coffee on the island
# Clean the plate
dirty_plate.go_to()
dirty_plate.pickup()
sink_basin.go_to()
dirty_plate.place(sink_basin)
faucet.go_to()
faucet.toggle_on()
faucet.toggle_off()
dirty_plate.pickup()
dirty_plate.change_state("dirty", False) # Update the plate's state to clean
island_counter.go_to()
dirty_plate.place(island_counter) # Place the clean plate back on the island
# Prepare the sandwich
# Slice the lettuce
knife.go_to()
knife.pickup()
lettuce.go_to()
lettuce.slice()
lettuce_sliced = InteractionObject("LettuceSliced", parent_object=lettuce.object_instance) # Initialize new sliced object from sliced parent
# Slice the tomato
tomato.go_to()
tomato.slice()
tomato_sliced = InteractionObject("TomatoSliced", parent_object=tomato.object_instance) # Initialize new sliced object from sliced parent
# Slice and toast the bread
bread.go_to()
bread.slice()
bread_sliced = InteractionObject("BreadSliced", parent_object=bread.object_instance) # Initialize new sliced object from sliced parent
toaster.go_to()
bread_sliced.pickup()
bread_sliced.place(toaster) # Place the bread in the toaster to toast
toaster.toggle_on()
toaster.toggle_off()
bread_sliced.pickup() # Pick up the toasted bread
# Assemble the sandwich on the clean plate
island_counter.go_to()
bread_sliced.place(island_counter)
lettuce_sliced.pickup()
lettuce_sliced.place(island_counter)
tomato_sliced.pickup()
tomato_sliced.place(island_counter)
bread_sliced.pickup()
bread_sliced.place(island_counter) # Place the second slice of bread on top
# The sandwich is now assembled on the clean plate on the island
DIALOGUE:
<Driver> hi. <Driver> what's the task. <Driver> are you there. <Commander> prepare coffee in a clean mug. <Driver> where is the mug. <Commander> inside the fridge.
SUMMARY:
The script is supposed to clean a dirty mug from the fridge and then prepare coffee in it using the coffee machine.
OBJECT STATE:
"Mug_1": {"label": "Mug", "holding": False, "dirty": True, "filled": False, "fillLiquid": None, "supported_by": ["Fridge"]}
"DishSponge_3": {"label": "DishSponge", "holding": False, "dirty": False, "supported_by": ["CounterTop"]}
"Cup_7": {"label": "Cup", "holding": False, "dirty": True, "filled": False, "fillLiquid": None, "supported_by": ["Sink"]}
"SoapBottle_13": {"label": "SoapBottle", "holding": False, "supported_by": ["Fridge"]}
"Fork_15": {"label": "Fork", "holding": False, "dirty": False, "supported_by": ["CounterTop"]}
"DishSponge_17": {"label": "DishSponge", "holding": False, "dirty": False, "supported_by": ["StoveBurner", "Pot"]}
"Cup_20": {"label": "Cup", "holding": False, "dirty": False, "filled": True, "fillLiquid": "water", "supported_by": ["Fridge"]}
"SoapBottle_22": {"label": "SoapBottle", "holding": False, "supported_by": ["Fridge"]}
"Mug_24": {"label": "Mug", "holding": False, "dirty": True, "filled": False, "fillLiquid": None, "supported_by": ["CounterTop", "CoffeeMachine"]}
"Cup_27": {"label": "Cup", "holding": False, "dirty": False, "filled": False, "fillLiquid": None, "supported_by": ["Fridge"]}
"SoapBottle_29": {"label": "SoapBottle", "holding": False, "supported_by": ["Pot", "StoveBurner"]}
"Fork_30": {"label": "Fork", "holding": False, "dirty": False, "supported_by": ["Sink"]}
"Mug_32": {"label": "Mug", "holding": False, "dirty": False, "filled": True, "fillLiquid": "water", "supported_by": ["CounterTop", "Microwave"]}
"Cup_36": {"label": "Cup", "holding": False, "dirty": True, "filled": True, "fillLiquid": "water", "supported_by": ["Cabinet"]}
"Fork_37": {"label": "Fork", "holding": False, "dirty": False, "supported_by": ["Cabinet"]}
"CounterTop_43": {"label": "CounterTop"}
"Fork_69": {"label": "Fork", "holding": False, "dirty": False, "supported_by": ["Drawer"]}
"SoapBottle_72": {"label": "SoapBottle", "holding": False, "supported_by": ["Sink"]}
"Cup_83": {"label": "Cup", "holding": False, "dirty": False, "filled": True, "fillLiquid": "water", "supported_by": ["Cabinet"]}
"SinkBasin_84": {"label": "SinkBasin"}
"CoffeeMachine_86": {"label": "CoffeeMachine", "toggled": True}
"DishSponge_90": {"label": "DishSponge", "holding": False, "dirty": False, "supported_by": ["Drawer"]}
"Mug_93": {"label": "Mug", "holding": False, "dirty": False, "filled": True, "fillLiquid": "water", "supported_by": ["Fridge"]}
"Faucet_94": {"label": "Faucet", "toggled": False}
SUCCESSES:
[False]
FUNCTION:
# Define InteractionObject instances for the mug, sink basin, dish sponge, faucet, and coffee machine
mug = InteractionObject("Mug", object_instance="Mug_1") # Mug is inside the fridge and dirty
sink_basin = InteractionObject("SinkBasin", object_instance="SinkBasin_84") # Sink basin to clean the mug
dish_sponge = InteractionObject("DishSponge", object_instance="DishSponge_3") # Dish sponge to clean the mug
faucet = InteractionObject("Faucet", object_instance="Faucet_94") # Faucet to rinse the mug
coffee_machine = InteractionObject("CoffeeMachine", object_instance="CoffeeMachine_86") # Coffee machine to prepare coffee
# (causal abstraction) Retrieve the dirty mug from the fridge
mug.go_to()
mug.pickup()
# (causal abstraction) Clean the mug in the sink using the faucet and dish sponge
sink_basin.go_to()
mug.place(sink_basin)
dish_sponge.go_to()
dish_sponge.pickup()
# Simulate cleaning action (scrubbing the mug with the dish sponge)
dish_sponge.put_down() # Put down the dish sponge after cleaning
faucet.go_to()
faucet.toggle_on() # Rinse the mug with water
faucet.toggle_off() # Turn off the faucet after rinsing
mug.change_state("dirty", False) # Update the mug's state to clean
# (causal abstraction) Ensure the coffee machine is on
coffee_machine.go_to()
if not coffee_machine.check_attribute("toggled", True):
coffee_machine.toggle_on() # Turn on the coffee machine if it's not already on
# (causal abstraction) Place the clean mug in the coffee machine to prepare coffee
mug.pickup() # Pick up the clean mug
coffee_machine.go_to()
mug.place(coffee_machine) # Place the mug in the coffee machine to start the coffee preparation process
# (causal abstraction) Simulate the coffee machine filling the mug with coffee
# This is necessary to reflect the final goal of the task in the mug's state
mug.change_state("filled", True) # Update the mug's state to indicate it is filled
mug.change_state("fillLiquid", "coffee") # Update the mug's state to indicate the liquid is coffee
DIALOGUE:
<Driver> Hello! What is my first task? <Commander> cook a slice a potato. <Commander> clean plate. <Driver> I cannot remove the potato slice from the microwave. <Commander> try slice putting off the microwave first. <Commander> put off the microwave first. <Driver> The microwave is turned off. I would not be able to open it if it was not. <Commander> then remove the potato. <Driver> Where is the plate? <Commander> on the seat by the round table. <Commander> one of the seats at the round table. <Commander> clean it fast. <Driver> Is there another pate? <Driver> plate? <Commander> on the right of the sink. <Driver> The sink is too small to wash this plate. <Commander> put the potato on the plate. <Driver> done. <Commander> the potato you just cooked.
SUMMARY:
The script is intended to slice a potato, cook the slice in the microwave, clean a plate, and place the cooked potato slice on the clean plate.
OBJECT STATE:
"Mug_1": {"label": "Mug", "holding": False, "dirty": True, "filled": False, "fillLiquid": None, "supported_by": ["Microwave"]}
"Pan_2": {"label": "Pan", "holding": False, "dirty": True, "supported_by": ["StoveBurner"]}
"Bread_3": {"label": "Bread", "holding": False, "sliced": False, "cooked": False, "supported_by": ["DiningTable"]}
"Knife_6": {"label": "Knife", "holding": False, "supported_by": ["Stool"]}
"Fork_10": {"label": "Fork", "holding": False, "dirty": False, "supported_by": ["Sink"]}
"Cabinet_17": {"label": "Cabinet", "open": False}
"Cabinet_18": {"label": "Cabinet", "open": False}
"CounterTop_20": {"label": "CounterTop"}
"Cabinet_21": {"label": "Cabinet", "open": False}
"Cabinet_25": {"label": "Cabinet", "open": False}
"Cabinet_26": {"label": "Cabinet", "open": False}
"Cabinet_27": {"label": "Cabinet", "open": False}
"Cabinet_28": {"label": "Cabinet", "open": False}
"Cabinet_29": {"label": "Cabinet", "open": False}
"Cabinet_30": {"label": "Cabinet", "open": False}
"Cabinet_31": {"label": "Cabinet", "open": False}
"Cabinet_32": {"label": "Cabinet", "open": False}
"Cabinet_33": {"label": "Cabinet", "open": False}
"Cabinet_34": {"label": "Cabinet", "open": False}
"CounterTop_40": {"label": "CounterTop"}
"Fork_41": {"label": "Fork", "holding": False, "dirty": False, "supported_by": ["Sink"]}
"Microwave_48": {"label": "Microwave", "toggled": True, "open": False}
"Plate_55": {"label": "Plate", "holding": False, "dirty": True, "supported_by": ["Chair"]}
"Potato_57": {"label": "Potato", "holding": False, "sliced": False, "cooked": False, "supported_by": ["Shelf"]}
"Pot_58": {"label": "Pot", "holding": False, "dirty": False, "filled": True, "fillLiquid": "water", "supported_by": ["DiningTable"]}
"Knife_60": {"label": "Knife", "holding": False, "supported_by": ["DiningTable"]}
"SinkBasin_61": {"label": "SinkBasin"}
"Knife_66": {"label": "Knife", "holding": False, "supported_by": ["CounterTop"]}
"Bread_71": {"label": "Bread", "holding": False, "sliced": False, "cooked": False, "supported_by": ["Cabinet"]}
"Pan_76": {"label": "Pan", "holding": False, "dirty": False, "supported_by": ["Fridge"]}
"Mug_82": {"label": "Mug", "holding": False, "dirty": True, "filled": False, "fillLiquid": None, "supported_by": ["Shelf"]}
"Faucet_83": {"label": "Faucet", "toggled": False}
SUCCESSES:
[False]
FUNCTION:
# Define InteractionObject instances for the knife, potato, microwave, and plate
knife = InteractionObject("Knife", object_instance="Knife_66") # Knife is on the countertop
potato = InteractionObject("Potato", object_instance="Potato_57") # Potato is on the shelf
microwave = InteractionObject("Microwave", object_instance="Microwave_48") # Microwave state
plate = InteractionObject("Plate", object_instance="Plate_55") # Plate is on the chair by the round table
sink_basin = InteractionObject("SinkBasin", object_instance="SinkBasin_61") # Sink basin for cleaning
faucet = InteractionObject("Faucet", object_instance="Faucet_83") # Faucet for cleaning
# Slice the potato
knife.go_to() # Navigate to the knife
knife.pickup() # Pick up the knife
potato.go_to() # Navigate to the potato
potato.slice() # Slice the potato
potato_sliced = InteractionObject("PotatoSliced", parent_object=potato.object_instance) # Initialize new sliced object from sliced parent
# Cook the potato slice in the microwave
microwave.go_to() # Navigate to the microwave
microwave.toggle_off() # Ensure the microwave is off before opening
microwave.open() # Open the microwave
potato_sliced.pickup() # Pick up the potato slice
potato_sliced.place(microwave) # Place the potato slice in the microwave
microwave.close() # Close the microwave
microwave.toggle_on() # Cook the potato slice
microwave.toggle_off() # Turn off the microwave after cooking
microwave.open() # Open the microwave
potato_sliced.pickup() # Pick up the cooked potato slice
# Clean the plate
plate.go_to() # Navigate to the plate
plate.pickup() # Pick up the plate
sink_basin.go_to() # Navigate to the sink basin
# Assuming the sink is too small, we simulate cleaning by placing the plate in the sink basin and toggling the faucet
faucet.toggle_on() # Turn on the faucet
faucet.toggle_off() # Turn off the faucet
plate.change_state("dirty", False) # Update the plate's state to clean
# Place the cooked potato slice on the clean plate
plate.place(sink_basin) # Place the clean plate down temporarily
potato_sliced.place(plate) # Place the cooked potato slice on the plate
# (causal abstraction) The knife is used to slice the potato, which is then cooked in the microwave. The plate is cleaned in the sink basin, and the cooked potato slice is placed on the clean plate, completing the task.
DIALOGUE:
<Driver> how can I help? <Commander> boil a potato please. <Driver> sure where can I find one? <Commander> on the small table. <Driver> got it. <Commander> great. <Driver> pot won't fit into sink. <Driver> any other pots or maybe a bowl around? <Commander> i only see that one. <Commander> can you put it to the right of sink? <Driver> nope. <Commander> try filling it with the cup next to stove. <Commander> it has water in it. <Driver> ok. <Driver> that worked. <Commander> cool. <Commander> thanks.
SUMMARY:
The script is supposed to boil a potato by picking it up, filling a pot with water using a cup, placing the potato in the pot, and then boiling it on the stove.
OBJECT STATE:
"Plate_5": {"label": "Plate", "holding": False, "dirty": False, "supported_by": ["Cabinet"]}
"Bread_10": {"label": "Bread", "holding": False, "sliced": False, "cooked": False, "supported_by": ["DiningTable"]}
"Plate_14": {"label": "Plate", "holding": False, "dirty": False, "supported_by": ["Floor", "Safe"]}
"Cabinet_16": {"label": "Cabinet", "open": False}
"Cabinet_17": {"label": "Cabinet", "open": False}
"Cabinet_19": {"label": "Cabinet", "open": False}
"StoveBurner_22": {"label": "StoveBurner"}
"StoveBurner_23": {"label": "StoveBurner"}
"StoveBurner_26": {"label": "StoveBurner"}
"StoveBurner_27": {"label": "StoveBurner"}
"CounterTop_28": {"label": "CounterTop"}
"CounterTop_29": {"label": "CounterTop"}
"Cabinet_30": {"label": "Cabinet", "open": False}
"Cabinet_31": {"label": "Cabinet", "open": False}
"Cabinet_32": {"label": "Cabinet", "open": False}
"Cabinet_33": {"label": "Cabinet", "open": False}
"Cabinet_34": {"label": "Cabinet", "open": False}
"Cabinet_35": {"label": "Cabinet", "open": False}
"Cabinet_36": {"label": "Cabinet", "open": False}
"Cabinet_37": {"label": "Cabinet", "open": False}
"Cabinet_38": {"label": "Cabinet", "open": False}
"Cabinet_39": {"label": "Cabinet", "open": False}
"Cabinet_40": {"label": "Cabinet", "open": False}
"Cabinet_41": {"label": "Cabinet", "open": False}
"Cabinet_42": {"label": "Cabinet", "open": False}
"Bread_44": {"label": "Bread", "holding": False, "sliced": False, "cooked": False, "supported_by": ["Sink"]}
"Plate_51": {"label": "Plate", "holding": False, "dirty": False, "supported_by": ["Plate", "Floor", "Safe"]}
"Pot_63": {"label": "Pot", "holding": False, "dirty": False, "filled": False, "fillLiquid": None, "supported_by": ["StoveBurner"]}
"Potato_64": {"label": "Potato", "holding": False, "sliced": False, "cooked": False, "supported_by": ["DiningTable"]}
"SinkBasin_65": {"label": "SinkBasin"}
"Cup_76": {"label": "Cup", "holding": False, "dirty": True, "filled": False, "fillLiquid": None, "supported_by": ["CounterTop"]}
"Faucet_84": {"label": "Faucet", "toggled": True}
SUCCESSES:
[False]
FUNCTION:
# Define InteractionObject instances for the potato, pot, cup, and specific stove burner with correct object instances
potato = InteractionObject("Potato", object_instance="Potato_64") # Potato is on the dining table
pot = InteractionObject("Pot", object_instance="Pot_63") # Pot is on the stove burner
cup = InteractionObject("Cup", object_instance="Cup_76") # Cup with water is next to the stove
stove_burner = InteractionObject("StoveBurner", object_instance="StoveBurner_22") # Specific stove burner instance
# Go to the potato and pick it up
potato.go_to()
potato.pickup()
# Go to the cup and verify it is filled with water
cup.go_to()
if cup.check_attribute("filled", True) and cup.check_attribute("fillLiquid", "water"):
# Pick up the cup
cup.pickup()
# Go to the countertop (not the stove burner) to place the pot
countertop = InteractionObject("CounterTop", object_instance="CounterTop_28") # Specific countertop instance
countertop.go_to()
# Place the pot on the countertop
pot.place(countertop)
# Pour water from the cup into the pot
cup.pour(pot)
# Place the potato in the pot
potato.place(pot)
# Go to the specific stove burner, place the pot on it, and turn it on to boil the potato
stove_burner.go_to()
pot.pickup()
pot.place(stove_burner)
stove_burner.toggle_on()
# Placeholder for boiling time
# After boiling, turn off the stove burner and update the potato's state to cooked
stove_burner.toggle_off()
potato.change_state("cooked", True)
DIALOGUE:
<Driver> what should i do? <Commander> hi. <Commander> today you need to cook 3 slices of potato. <Commander> potato is on the pan on the stove. <Driver> knife? <Commander> knife is in the fridge. <Commander> place 3 slices in the microwave at a time. <Commander> remove the lettuce from microwave. <Driver> ok cooked the potato slices. <Commander> place the cooked potato slices in the bowl. <Commander> bowl is under the table. <Commander> dinning table. <Driver> which is bowl? <Commander> try to go back little and grab the black one. <Commander> go to other side of the table. <Commander> good. <Commander> great job. <Commander> thank you. <Driver> thanks.
SUMMARY:
The script is supposed to cook 3 slices of potato, remove lettuce from the microwave, and place the cooked potato slices in a bowl under the dining table.
OBJECT STATE:
"Bowl_0": {"label": "Bowl", "holding": False, "dirty": False, "filled": False, "fillLiquid": None, "supported_by": ["Shelf"]}
"Knife_3": {"label": "Knife", "holding": False, "supported_by": ["Fridge"]}
"Potato_5": {"label": "Potato", "holding": False, "sliced": False, "cooked": False, "supported_by": ["DiningTable"]}
"Bread_8": {"label": "Bread", "holding": False, "sliced": False, "cooked": False, "supported_by": ["Chair"]}
"WineBottle_9": {"label": "WineBottle", "holding": False, "filled": True, "fillLiquid": None, "supported_by": ["Sink"]}
"Egg_10": {"label": "Egg", "holding": False, "supported_by": ["Sink"]}
"Lettuce_11": {"label": "Lettuce", "holding": False, "sliced": False, "supported_by": ["Cabinet"]}
"Bread_12": {"label": "Bread", "holding": False, "sliced": False, "cooked": False, "supported_by": ["Fridge"]}
"Knife_14": {"label": "Knife", "holding": False, "supported_by": ["Shelf"]}
"Potato_15": {"label": "Potato", "holding": False, "sliced": False, "cooked": False, "supported_by": ["DiningTable"]}
"Cabinet_16": {"label": "Cabinet", "open": False}
"CounterTop_21": {"label": "CounterTop"}
"Cabinet_22": {"label": "Cabinet", "open": False}
"Cabinet_23": {"label": "Cabinet", "open": False}
"Cabinet_24": {"label": "Cabinet", "open": False}
"Cabinet_25": {"label": "Cabinet", "open": False}
"Cabinet_26": {"label": "Cabinet", "open": False}
"Cabinet_27": {"label": "Cabinet", "open": False}
"Cabinet_28": {"label": "Cabinet", "open": False}
"Cabinet_29": {"label": "Cabinet", "open": False}
"Cabinet_32": {"label": "Cabinet", "open": False}
"Lettuce_34": {"label": "Lettuce", "holding": False, "sliced": False, "supported_by": ["Microwave"]}
"Bottle_35": {"label": "Bottle", "holding": False, "filled": True, "fillLiquid": "water", "supported_by": ["DiningTable"]}
"Egg_36": {"label": "Egg", "holding": False, "supported_by": ["Sink"]}
"Microwave_38": {"label": "Microwave", "toggled": False, "open": False}
"Fridge_44": {"label": "Fridge", "open": False}
"WineBottle_46": {"label": "WineBottle", "holding": False, "filled": True, "fillLiquid": None, "supported_by": ["Floor", "GarbageCan"]}
"Bread_48": {"label": "Bread", "holding": False, "sliced": False, "cooked": False, "supported_by": ["DiningTable"]}
"Pot_53": {"label": "Pot", "holding": False, "dirty": True, "filled": True, "fillLiquid": "water", "supported_by": ["Fridge"]}
"Potato_55": {"label": "Potato", "holding": False, "sliced": True, "cooked": False, "supported_by": ["StoveBurner", "Pan"]}
"Knife_57": {"label": "Knife", "holding": False, "supported_by": ["Sink"]}
"Plate_66": {"label": "Plate", "holding": False, "dirty": True, "supported_by": ["DiningTable"]}
"Knife_67": {"label": "Knife", "holding": True, "supported_by": ["Fridge"]}
"DiningTable_68": {"label": "DiningTable"}
"Faucet_72": {"label": "Faucet", "toggled": True}
"Bowl_76": {"label": "Bowl", "holding": False, "dirty": True, "filled": False, "fillLiquid": None, "supported_by": ["Shelf"]}
"PotatoSliced_77": {"label": "PotatoSliced", "holding": False, "cooked": False, "supported_by": ["StoveBurner", "Pan"]}
"PotatoSliced_78": {"label": "PotatoSliced", "holding": False, "cooked": False, "supported_by": ["StoveBurner", "Pan"]}
"PotatoSliced_79": {"label": "PotatoSliced", "holding": False, "cooked": False, "supported_by": ["StoveBurner", "Pan"]}
SUCCESSES:
[False]
FUNCTION:
# Retrieve the knife from the fridge
fridge = InteractionObject("Fridge", object_instance="Fridge_44")
fridge.go_to()
fridge.open()
knife = InteractionObject("Knife", object_instance="Knife_67")
knife.go_to()
knife.pickup()
fridge.close()
# Go to the potato on the pan on the stove and slice it
potato = InteractionObject("Potato", object_instance="Potato_55")
potato.go_to()
potato.slice()
potato_sliced_1 = InteractionObject("PotatoSliced", parent_object=potato.object_instance) # Initialize new sliced object from sliced parent
potato_sliced_2 = InteractionObject("PotatoSliced", parent_object=potato.object_instance) # Initialize new sliced object from sliced parent
potato_sliced_3 = InteractionObject("PotatoSliced", parent_object=potato.object_instance) # Initialize new sliced object from sliced parent
# Remove the lettuce from the microwave
microwave = InteractionObject("Microwave", object_instance="Microwave_38")
lettuce = InteractionObject("Lettuce", object_instance="Lettuce_34")
microwave.go_to()
microwave.open()
lettuce.go_to()
lettuce.pickup()
lettuce.put_down() # Place the lettuce on the countertop or another surface
# Place the three potato slices in the microwave, cook them, and update their state to cooked
potato_sliced_1.pickup()
potato_sliced_1.place(microwave)
potato_sliced_2.pickup()
potato_sliced_2.place(microwave)
potato_sliced_3.pickup()
potato_sliced_3.place(microwave)
microwave.close()
microwave.toggle_on()
microwave.toggle_off()
microwave.open()
potato_sliced_1.change_state("cooked", True) # Update the potato slice's state to cooked
potato_sliced_2.change_state("cooked", True) # Update the potato slice's state to cooked
potato_sliced_3.change_state("cooked", True) # Update the potato slice's state to cooked
# Retrieve the correct black bowl from under the dining table
dining_table = InteractionObject("DiningTable", object_instance="DiningTable_68")
bowl = InteractionObject("Bowl", object_instance="Bowl_0") # Corrected the bowl instance
dining_table.go_to()
bowl.go_to()
bowl.pickup()
# Place the cooked potato slices in the bowl
potato_sliced_1.pickup()
potato_sliced_1.place(bowl)
potato_sliced_2.pickup()
potato_sliced_2.place(bowl)
potato_sliced_3.pickup()
potato_sliced_3.place(bowl)
DIALOGUE:
<Driver> HI! What should I do for you today? <Commander> Hello. First let's get the bread out of the fridge next to you. <Commander> We will need to slice this and make 2 pieces of toast. <Driver> Got it. <Commander> The knife is in the lower big cabinet across from the fridge. <Commander> Grab that lettuce. We will need it later too. <Commander> I'll do another search for the knife. <Commander> It's in the upper right cabinet over the stove. <Driver> found it. <Commander> : ). <Commander> You will need to slice the bread lettuce and tomato next to the toaster. <Driver> Where is the lettuce located? <Commander> One second. <Commander> In the cabinet just below the toaster. <Commander> Or that one on the counter works, too LOL. <Commander> Now. 2 slices of toast, 1 slice of lettuce, and 1 slice of tomato need to be placed on the plate that is on the counter with the loaf of bread. <Driver> I can't seem to find the plate. <Commander> If you look on the counter with the bread to our left. <Commander> you'll see salt shakers sitting on top of the plate. <Driver> I see. It has the salt shakers on it. <Commander> yep ). <Commander> Remove the salt shakers, then assemble. <Commander> 1 Now 1 lettuce and 1 tomato. <Commander> Good work all tasks complete : ). <Driver> Done. 2 slices of toast, 1 lettuce 1 tomato.
SUMMARY:
The script is intended to retrieve bread from the fridge, slice it, toast it, slice lettuce and tomato, remove salt shakers from a plate, and assemble the toast, lettuce, and tomato on the plate.
OBJECT STATE:
"Plate_6": {"label": "Plate", "holding": False, "dirty": False, "supported_by": ["Cabinet"]}
"Potato_7": {"label": "Potato", "holding": False, "sliced": False, "cooked": False, "supported_by": ["Cabinet"]}
"PepperShaker_8": {"label": "PepperShaker", "holding": False, "supported_by": ["Drawer"]}
"SaltShaker_10": {"label": "SaltShaker", "holding": False, "supported_by": ["Floor", "GarbageCan"]}
"Tomato_13": {"label": "Tomato", "holding": False, "sliced": False, "cooked": False, "supported_by": ["CounterTop"]}
"Bread_15": {"label": "Bread", "holding": False, "sliced": False, "cooked": False, "supported_by": ["Cabinet"]}
"Lettuce_17": {"label": "Lettuce", "holding": False, "sliced": False, "supported_by": ["Cabinet"]}
"Tomato_18": {"label": "Tomato", "holding": False, "sliced": False, "cooked": False, "supported_by": ["Floor", "GarbageCan"]}
"SaltShaker_20": {"label": "SaltShaker", "holding": False, "supported_by": ["CounterTop", "Plate"]}
"PepperShaker_21": {"label": "PepperShaker", "holding": False, "supported_by": ["Cabinet"]}
"Lettuce_22": {"label": "Lettuce", "holding": False, "sliced": False, "supported_by": ["CounterTop"]}
"Bread_23": {"label": "Bread", "holding": False, "sliced": False, "cooked": False, "supported_by": ["Cabinet"]}
"Plate_25": {"label": "Plate", "holding": False, "dirty": False, "supported_by": ["Cabinet"]}
"PepperShaker_26": {"label": "PepperShaker", "holding": False, "supported_by": ["Drawer"]}
"SaltShaker_27": {"label": "SaltShaker", "holding": False, "supported_by": ["Sink"]}
"Tomato_29": {"label": "Tomato", "holding": False, "sliced": False, "cooked": False, "supported_by": ["Cabinet"]}
"Lettuce_30": {"label": "Lettuce", "holding": False, "sliced": False, "supported_by": ["Cabinet"]}
"Tomato_33": {"label": "Tomato", "holding": False, "sliced": False, "cooked": False, "supported_by": ["Stool"]}
"SaltShaker_35": {"label": "SaltShaker", "holding": False, "supported_by": ["CounterTop", "Plate"]}
"PepperShaker_36": {"label": "PepperShaker", "holding": False, "supported_by": ["StoveBurner", "Pot"]}
"CounterTop_37": {"label": "CounterTop"}
"CounterTop_42": {"label": "CounterTop"}
"Cabinet_43": {"label": "Cabinet", "open": False}
"Cabinet_44": {"label": "Cabinet", "open": False}
"Cabinet_45": {"label": "Cabinet", "open": False}
"Cabinet_46": {"label": "Cabinet", "open": False}
"Cabinet_47": {"label": "Cabinet", "open": False}
"Cabinet_48": {"label": "Cabinet", "open": False}
"Cabinet_49": {"label": "Cabinet", "open": False}
"Cabinet_50": {"label": "Cabinet", "open": False}
"Cabinet_51": {"label": "Cabinet", "open": False}
"Cabinet_52": {"label": "Cabinet", "open": False}
"Cabinet_53": {"label": "Cabinet", "open": False}
"Cabinet_54": {"label": "Cabinet", "open": False}
"Cabinet_55": {"label": "Cabinet", "open": False}
"Cabinet_56": {"label": "Cabinet", "open": False}
"Cabinet_57": {"label": "Cabinet", "open": False}
"Cabinet_58": {"label": "Cabinet", "open": False}
"Cabinet_59": {"label": "Cabinet", "open": False}
"CounterTop_62": {"label": "CounterTop"}
"Cabinet_63": {"label": "Cabinet", "open": False}
"Cabinet_67": {"label": "Cabinet", "open": False}
"Fridge_68": {"label": "Fridge", "open": False}
"Lettuce_69": {"label": "Lettuce", "holding": False, "sliced": False, "supported_by": ["Cabinet"]}
"Toaster_74": {"label": "Toaster", "toggled": True}
"Bread_76": {"label": "Bread", "holding": False, "sliced": False, "cooked": False, "supported_by": ["Fridge"]}
"Tomato_80": {"label": "Tomato", "holding": False, "sliced": False, "cooked": False, "supported_by": ["Fridge"]}
"Pot_83": {"label": "Pot", "holding": False, "dirty": True, "filled": False, "fillLiquid": None, "supported_by": ["StoveBurner"]}
"Knife_86": {"label": "Knife", "holding": False, "supported_by": ["Cabinet"]}
"SaltShaker_88": {"label": "SaltShaker", "holding": False, "supported_by": ["Plate", "Cabinet"]}
"PepperShaker_90": {"label": "PepperShaker", "holding": False, "supported_by": ["Sink"]}
"Knife_91": {"label": "Knife", "holding": False, "supported_by": ["Cabinet"]}
"Potato_92": {"label": "Potato", "holding": False, "sliced": False, "cooked": False, "supported_by": ["CounterTop"]}
"Plate_93": {"label": "Plate", "holding": False, "dirty": False, "supported_by": ["CounterTop"]}
SUCCESSES:
[False]
FUNCTION:
# Retrieve the bread from the fridge
fridge = InteractionObject("Fridge", object_instance="Fridge_68")
fridge.go_to()
fridge.open()
bread = InteractionObject("Bread", object_instance="Bread_76")
bread.pickup()
fridge.close()
# Slice the bread
knife_cabinet = InteractionObject("Cabinet", object_instance="Cabinet_53") # Assuming upper right cabinet over the stove
knife_cabinet.go_to() # Navigate to the cabinet before opening
knife_cabinet.open()
knife = InteractionObject("Knife", object_instance="Knife_91")
knife.pickup()
bread.slice()
bread_sliced = InteractionObject("BreadSliced", parent_object=bread.object_instance) # Initialize new sliced object from sliced parent
# Toast the bread slices
toaster = InteractionObject("Toaster", object_instance="Toaster_74")
bread_sliced.pickup()
toaster.go_to()
bread_sliced.place(toaster)
# Assuming the toaster is already toggled on, wait for toasting to complete
bread_sliced.change_state("cooked", True) # Update the bread slice's state to toasted
# Slice the lettuce
lettuce_cabinet = InteractionObject("Cabinet", object_instance="Cabinet_45") # Cabinet below the toaster
lettuce_cabinet.go_to() # Navigate to the cabinet before opening
lettuce_cabinet.open()
lettuce = InteractionObject("Lettuce", object_instance="Lettuce_69")
lettuce.pickup()
lettuce.slice()
lettuce_sliced = InteractionObject("LettuceSliced", parent_object=lettuce.object_instance) # Initialize new sliced object from sliced parent
# Slice the tomato
tomato = InteractionObject("Tomato", object_instance="Tomato_80")
tomato.pickup()
tomato.slice()
tomato_sliced = InteractionObject("TomatoSliced", parent_object=tomato.object_instance) # Initialize new sliced object from sliced parent
# Remove the salt shakers from the plate
plate = InteractionObject("Plate", object_instance="Plate_93")
salt_shaker = InteractionObject("SaltShaker", object_instance="SaltShaker_35")
salt_shaker.pickup()
# Place the salt shaker somewhere appropriate, e.g., on the countertop
countertop = InteractionObject("CounterTop", object_instance="CounterTop_37")
salt_shaker.place(countertop)
# Assemble the meal on the plate
bread_sliced.pickup()
plate.go_to()
bread_sliced.place(plate)
lettuce_sliced.pickup()
lettuce_sliced.place(plate)
tomato_sliced.pickup()
tomato_sliced.place(plate)
# (causal abstraction) The bread, lettuce, and tomato are sliced and placed on the plate to create a simple meal as per the Commander's instructions
DIALOGUE:
<Commander> hello. <Driver> hi. <Commander> please make coffee in clan mug. <Driver> what should i do today? <Driver> ok. <Commander> awesome put on island. <Commander> and clean plate on island and place back on island. <Commander> great. Now please make a toasted lettuce and tomato sandwich. <Commander> need help? <Driver> done. <Commander> great task done awesome job.
SUMMARY:
The script is supposed to make coffee in a clean mug, place it on the island, clean a plate and place it back on the island, and make a toasted lettuce and tomato sandwich.
OBJECT STATE:
"DishSponge_0": {"label": "DishSponge", "holding": False, "dirty": False, "supported_by": ["CounterTop"]}
"Tomato_2": {"label": "Tomato", "holding": False, "sliced": True, "cooked": False, "supported_by": ["Sink"]}
"Bread_3": {"label": "Bread", "holding": False, "sliced": True, "cooked": False, "supported_by": ["CounterTop"]}
"Knife_4": {"label": "Knife", "holding": True, "supported_by": ["CounterTop"]}
"Lettuce_7": {"label": "Lettuce", "holding": False, "sliced": True, "supported_by": ["CounterTop"]}
"Plate_8": {"label": "Plate", "holding": False, "dirty": False, "supported_by": ["CounterTop"]}
"Fork_9": {"label": "Fork", "holding": False, "dirty": False, "supported_by": ["Floor", "GarbageCan"]}
"DishSponge_11": {"label": "DishSponge", "holding": False, "dirty": False, "supported_by": ["Plate", "CounterTop"]}
"Fork_12": {"label": "Fork", "holding": False, "dirty": False, "supported_by": ["Fridge"]}
"Plate_13": {"label": "Plate", "holding": False, "dirty": False, "supported_by": ["Cabinet"]}
"CounterTop_36": {"label": "CounterTop"}
"CounterTop_43": {"label": "CounterTop"}
"Fork_59": {"label": "Fork", "holding": False, "dirty": False, "supported_by": ["CounterTop"]}
"Plate_64": {"label": "Plate", "holding": False, "dirty": True, "supported_by": ["CounterTop"]}
"Lettuce_66": {"label": "Lettuce", "holding": False, "sliced": False, "supported_by": ["CounterTop"]}
"CoffeeMachine_68": {"label": "CoffeeMachine", "toggled": False}
"Fridge_69": {"label": "Fridge", "open": False}
"Knife_71": {"label": "Knife", "holding": False, "supported_by": ["CounterTop"]}