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
tutorials:beginner:process_modules_2 [2017/09/07 12:06] – Replacing some "action"s with "motion"s cpotutorials:beginner:process_modules_2 [2020/09/03 10:34] (current) – [Writing a process module for the turtlesim] gkazhoya
Line 3: Line 3:
 **Description:** in this tutorial you will learn about CRAM process modules and write a simple one to move the turtlesim. **Description:** in this tutorial you will learn about CRAM process modules and write a simple one to move the turtlesim.
  
-**Previous Tutorial:** [[tutorials:beginner:designators|Creating action designators for the turtlesim]]\\ +**Previous Tutorial:** [[tutorials:beginner:motion_designators|Creating motion designators for the turtlesim]]\\ 
-**Next Tutorial:** [[tutorials:beginner:location_designators|Using location designators with the turtlesim]]+**Next Tutorial:** [[tutorials:beginner:assigning_actions_2|Automatically choosing a process module for a motion]]
  
 ===== Process modules: an overview ===== ===== Process modules: an overview =====
Line 26: Line 26:
 Once again, some new dependencies must be declared in the tutorial files you've been working on.  Once again, some new dependencies must be declared in the tutorial files you've been working on. 
  
-In your ''package.xml'' file you need to add build and runtime dependencies on ''cram_process_modules'':+In your ''package.xml'' file you need to add a dependency on ''cram_process_modules'':
  
 <code> <code>
-  <build_depend>cram_process_modules</build_depend> +  <depend>cram_process_modules</depend>
- +
-  <run_depend>cram_process_modules</run_depend>+
 </code> </code>
  
Line 37: Line 35:
  
 <code lisp> <code lisp>
-(defsystem cram-beginner-tutorial +(defsystem cram-my-beginner-tutorial 
-  :depends-on (cram-language roslisp turtlesim-msg geometry_msgs-msg cl-transforms+  :depends-on (cram-language roslisp turtlesim-msg turtlesim-srv geometry_msgs-msg cl-transforms
                              cram-designators cram-prolog                              cram-designators cram-prolog
                              cram-process-modules cram-language-designator-support)                              cram-process-modules cram-language-designator-support)
Line 116: Line 114:
 <code lisp> <code lisp>
 TUT> (drive 5 2) TUT> (drive 5 2)
-[(TURTLE-PROCESS-MODULES) INFO] 1499958119.336: TurtleSim navigation invoked with motion designator `#<MOTION-DESIGNATOR ((TYPE +[(TURTLE-PROCESS-MODULES) INFO] 1562698751.679: TurtleSim navigation invoked with motion designator `#<MOTION 
-                                                                           DRIVING) +    (TYPE DRIVING) 
-                                                                          (SPEED +    (SPEED 5) 
-                                                                           5) +    (ANGLE 2)>'.
-                                                                          (ANGLE +
-                                                                           2)) {1006979703}>'.+
 1 1
 </code> </code>
Line 261: Line 257:
  
 == Next == == Next ==
 +So far we called process modules directly. Sometimes it's better to let the system decide on its own … 
  
-Let's have a look at location designators and other ways to move the turtle, as well as have some more practice with designator resolution and process modules ... +[[tutorials:beginner:assigning_actions_2|Automatically choosing a process module for a motion]]
- +
-[[tutorials:beginner:location_designators|Using location designators with the turtlesim]]+