Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
tutorials:intermediate:performing_plans [2016/07/21 15:37] gkazhoyatutorials:intermediate:performing_plans [2019/02/04 17:46] – Updated syntax errors due to renamed packages in v0.70 (action-desig -> action-grounding + cram_plan_library -> cram_executive) amar
Line 8: Line 8:
  
 <code lisp> <code lisp>
-CL-USER> (ros-load:load-system "cram_plan_library" :cram-plan-library+CL-USER> (ros-load:load-system "cram_executive" :cram-executive
-;; or ,r-l-s RET cram_plan_library RET RET+;; or ,r-l-s RET cram_executive RET RET
 </code> </code>
  
Line 22: Line 22:
  
 <code lisp> <code lisp>
-CL-USER> (prolog:def-fact-group eating-plans (desig:action-desig+CL-USER> (prolog:def-fact-group eating-plans (desig:action-grounding
-           (prolog:<- (desig:action-desig ?action-designator (eat ?object))+           (prolog:<- (desig:action-grounding ?action-designator (eat ?object))
              (desig:desig-prop ?action-designator (:to :eat))              (desig:desig-prop ?action-designator (:to :eat))
              (desig:desig-prop ?action-designator (:yummy ?object))))              (desig:desig-prop ?action-designator (:yummy ?object))))
Line 34: Line 34:
 <code lisp> <code lisp>
 CL-USER> (cpl:top-level CL-USER> (cpl:top-level
-           (plan-lib:perform (desig:an action (to eat) (yummy pizza))))+           (exe:perform (desig:an action (to eat) (yummy pizza))))
 hmmm... nomnomnom... PIZZA hmmm... nomnomnom... PIZZA
 </code> </code>
Line 44: Line 44:
 <code lisp> <code lisp>
 CL-USER> (cpl:top-level CL-USER> (cpl:top-level
-           (plan-lib:perform (desig:an action (to eat) (yummy pizza) (goal (object-eaten pizza)))))+           (exe:perform (desig:an action (to eat) (yummy pizza) (goal (object-eaten pizza)))))
 WARNING: WARNING:
    Trying to prove goal (OBJECT-EATEN    Trying to prove goal (OBJECT-EATEN
Line 79: Line 79:
 <code lisp> <code lisp>
 PLAN-LIB> (cpl:top-level PLAN-LIB> (cpl:top-level
-            (plan-lib:perform (desig:an action (to eat) (yummy pizza) (goal (object-eaten pizza)))))+            (exe:perform (desig:an action (to eat) (yummy pizza) (goal (object-eaten pizza)))))
 hmmm... nomnomnom... PIZZA hmmm... nomnomnom... PIZZA
 NIL NIL
Line 87: Line 87:
  
 Please keep in mind that if there are multiple solutions to a particular action designator, i.e. it resolves to different plans, the first one that is defined will be executed. Ordering is not yet implemented and should probably be taken care of explicitly in the plans anyway. Please keep in mind that if there are multiple solutions to a particular action designator, i.e. it resolves to different plans, the first one that is defined will be executed. Ordering is not yet implemented and should probably be taken care of explicitly in the plans anyway.
- +Summary: **make sure an action designator you use for plans can only be resolved to one unique CRAM plan.**
-Also, if the same action designator can be executed by both a process module or a high-level plan, the precedence will always be given to the process module as it should get the most specific designators. +
- +
-Summary: **make sure an action designator you use for plans can only be resolved to one unique CRAM plan and that the process modules always get as input one level more detailed action designator than the plan. Even better is to not have similar action designators for PMs and those for plans.**+