From ff52130ae894942d8d1006eb5894015300512eed Mon Sep 17 00:00:00 2001 From: Niclas Dobbertin Date: Fri, 21 Jun 2024 14:57:28 +0200 Subject: update --- modeling/prod_vis.py | 54 +++++++++++++++++++++++++++++++--------------------- 1 file changed, 32 insertions(+), 22 deletions(-) (limited to 'modeling/prod_vis.py') diff --git a/modeling/prod_vis.py b/modeling/prod_vis.py index 893c588..2bcbcc8 100644 --- a/modeling/prod_vis.py +++ b/modeling/prod_vis.py @@ -14,33 +14,43 @@ def procedures(Model): =g> isa math_goal op find_arg1_header + ?visual_location> + attended False +visual_location> isa _visuallocation value =var """ ) - # vis_find_arg1_header_done = Model.productionstring( - # name = "vis_find_arg1_header_done", - # string=""" - # =g> - # isa math_goal - # op find_arg1_header - # arg1 =var - # arg1_idx =idx - # =visual> - # isa _visual - # screen_y =vis_y - # ==> - # =g> - # isa math_goal - # op search_arg1_idx - # +visual> - # isa _visual - # cmd move_attention - # screen_x current - # screen_y nearest - # """ - # ) + vis_find_arg1_header_done = Model.productionstring( + name = "vis_find_arg1_header_done", + string=""" + =g> + isa math_goal + op find_arg1_header + arg1 =var + arg1_idx =idx + =visual_location> + isa _visuallocation + screen_x =screen_x + screen_y =screen_y + ?visual> + state free + ==> + =g> + isa math_goal + op search_arg1_idx + +visual_location> + isa _visuallocation + screen_x =screen_x + >screen_y =screen_y + """ + ) return prods + + # +visual> + # isa _visual + # cmd move_attention + # screen_pos =visual_location + # ~visual_location> -- cgit v1.2.3