Basic Robot Controller Architecture work using a general-purpose logic programming language, Prolog.
This page is to demo a basic Robot Controller Architecture work using a general-purpose logic programming language, Prolog.
An Agent is to act the wold. It has an ability to visualize the world, and make up of a body and a controller.
Figure 1. Controller Architecture
The general controller architecture is described in Figure 1 which includes Top layer Controller, Middle Layer Controller and Environment.
The robot trap is run as a demo in Figure 2. The robot is started at its position, and is given a goal to G.
The logic is followed:
Figure 2: Robot trap
if whisker sensor = on
then steer := left
else if straight ahead(robot pos, robot dir, current target pos)
then steer := straight
else if left of (robot position, robot dir, current target pos)
then steer := left
else steer := right
end if
See documentation of robot Controller Architecture here
Agent Architectures and Hierarchical Control in: Poole, D. L., & Mackworth, A. K. (2010). Artificial Intelligence: foundations of computational agents. Cambridge University Press. Available online at http://artint.info/