Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
doc:beginner:designators [2014/10/20 13:55] – Added "Designator overview" section. mpomarlan | doc:beginner:designators [2015/05/11 17:00] (current) – removed gkazhoya | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Creating designators for the turtlesim ====== | ||
- | **Description: | ||
- | |||
- | **Previous Tutorial:** [[doc: | ||
- | **Next Tutorial:** [[doc: | ||
- | |||
- | ===== Designators: | ||
- | |||
- | From a user's point of view, a designator is a Common Lisp object that contains a sequence of key-value pairs of symbols. The concept' | ||
- | |||
- | Currently there are three types of designators defined in CRAM: | ||
- | |||
- | * location designators: | ||
- | * object designators: | ||
- | * action designators: | ||
- | |||
- | These types should cover most use cases in robotics, however, if needed, new designator types can be defined as subclasses of the designator class. | ||
- | |||
- | As a simple example of a designator creation, suppose we want to create a designator for a location from which some object (for which we already have a designator) can be seen. We would then write | ||
- | |||
- | < | ||
- | |||
- | (do not add this code to your tutorial files, it is meant simply for illustration here.) | ||
- | |||
- | This line of code creates a location designator (spy-location) which ' | ||
- | |||
- | < | ||
- | |||
- | and, assuming we have set up rules to take into account knowledge of the associated object, the environment, | ||
- | |||
- | For the rest of this tutorial, we will work with action designators and show a few basics of their creation and use. For a more detailed look at designators, | ||
- | |||
- | |||
- | == Next == | ||
- | |||
- | |||
- | Usually, a robot will have to execute more tasks at once. It's time to look at what facilities CRAM offers to accomplish that ... | ||
- | |||
- | [[doc: |