Showing posts with label simple. Show all posts
Showing posts with label simple. Show all posts

Sunday, 18 January 2009

Simple Facts

In Prolog we can make some statements by using facts. Facts either consist of a particular item or a relation between items. For example we can represent the fact that it is sunny by writing the program :
sunny.

We can now ask a query of Prolog by asking
?- sunny.

?- is the Prolog prompt. To this query, Prolog will answer yes. sunny is true because (from above) Prolog matches it in its database of facts.

Facts have some simple rules of syntax.
Facts should always begin with a lowercase letter and end with a full stop.
The facts themselves can consist of any letter or number combination, as well as the underscore _ character.
However, names containing the characters -,+,*,/, or other mathematical operators should be avoided.

Agent types

Four basic types in order of increasing generality:

Simple reflex agents
Model-based reflex agents
Goal-based agents
Utility-based agents

Part-picking robot

Performance measure: Percentage of parts in correct bins
Environment: Conveyor belt with parts, bins
Actuators: Jointed arm and hand
Sensors: Camera, joint angle sensors