Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

vacuum cleaner in prolog programming

Status
Not open for further replies.

agentpintar

Technical User
Aug 12, 2009
1
MY
im in process of building a small robotic agent that will clean up a house. Assuming that the robot is equipped with a sensor that will tell it is over any dirt, and a vacuum cleaner that can be used to suck up dirt.In addition to be able to suck uo dirt, the agent can move forward one step or turn right 90 degree. The agent can move around a room (is a 3 * 3 grid) and always starts in square (0,0) facing north.

the agent can receive a percept dirt (signing that there is dirt beneath it), or null (indicating clean). It can perform any one of three possible actions: FORWARD, SUCK, or TURN. the goal is to traverse the room continually searching for and removing dirt.

i would like to know the way the vacuum can move continuelly move in the room...thanks
 
You can do that
Code:
repeat
  <block_of_instructions>
  false.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top