User Tools

Site Tools


software:cram:development_experiences:new_goals

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
software:cram:development_experiences:new_goals [2013/04/26 11:42] – [A plan for a new goal] bartelsgsoftware:cram:development_experiences:new_goals [2016/05/19 09:19] (current) – external edit 127.0.0.1
Line 26: Line 26:
 </code> </code>
  
-==== HARD LESSON ==== +Catch #1: If you one of your manipulation process modules, e.g. the pr2_manipulation_process_module, uses the same designator properties it also has to export the same properties. I (Georg) do not understand why but Jan says this necessary for them to talk about the same symbol. 
-Now comes the catch: You also need to export the goal-symbol from the package cram_plan_knowledge! The reason for this was not clear at the time of writing... Thus, yuo also need to add #:flip-pancake to package.lisp of cram_plan_library. Otherwise you will get a warning like this when trying to achieve flip-pancake:+ 
 +Catch #2: You also need to export the goal-symbol, i.e. flip-pancake, from the package cram_plan_knowledge! The reason for this was not clear at the time of writing... Thus, yuo also need to add #:flip-pancake to package.lisp of cram_plan_library. Otherwise you will get a warning like this when trying to achieve flip-pancake:
  
 <code> <code>
Line 37: Line 38:
 ==== How to use/achieve the new plan ==== ==== How to use/achieve the new plan ====
  
 +You can now try to achieve your new goal like this:
 +
 +<code lisp>
 +(top-level
 +  (cpm:with-process-modules-running
 +      (pr2-manipulation-process-module)
 +    (achieve `(flip-pancake))))
 +</code>
 +
 +You need to make sure that cram_environment_representation is loaded (either in your package that uses cram_plan_library or in your REPL). Otherwise (holds ...) will not be known.
software/cram/development_experiences/new_goals.1366976578.txt.gz · Last modified: 2016/05/19 09:18 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki