Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision |
tutorials:beginner:motion_designators [2019/07/09 19:06] – [Adding a motion for controlling the pen] gkazhoya | tutorials:beginner:motion_designators [2019/07/10 14:49] – [Creating motion designators for the TurtleSim] gkazhoya |
---|
**Description:** In this tutorial you will learn what designators are, and in particular, work with motion designators: you will learn how to define one and how to use it. | **Description:** In this tutorial you will learn what designators are, and in particular, work with motion designators: you will learn how to define one and how to use it. |
| |
**Previous Tutorial:** [[tutorials:beginner:simple_plans|Implementing simple plans to move a turtle]]\\ | **Previous Tutorial:** [[tutorials:beginner:cram_prolog|Using Prolog for reasoning]]\\ |
**Next Tutorial:** [[tutorials:beginner:process_modules_2|Creating process modules]] | **Next Tutorial:** [[tutorials:beginner:process_modules_2|Creating process modules]] |
| |
1.5 | 1.5 |
</code> | </code> |
| |
| We call the variable ''*my-desig*'' with asterisks as this is the common convention in Common Lisp for naming global variables. |
| |
We use the ''a'' macro to create designators. Internally it uses the ''make-designator'' function to create a designator of the specified type. The macro allows us to write cleaner code for designator creation. | We use the ''a'' macro to create designators. Internally it uses the ''make-designator'' function to create a designator of the specified type. The macro allows us to write cleaner code for designator creation. |