To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.handyboardOpen lugnet.robotics.handyboard in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / Handy Board / 2751
2750  |  2752
Subject: 
Re: Pseudocode
Newsgroups: 
lugnet.robotics.handyboard
Date: 
Fri, 19 Sep 1997 19:15:21 GMT
Original-From: 
Karl Altenburg <ALTENBUR@spamlessPLAINS.NODAK.EDU>
Viewed: 
1402 times
  
On Fri, 19 Sep 1997, jackedIN wrote:
If i design a simple robot that simply (to some ppl, heh) moves around on
the floor scanning for things so it may take appropriate action to avoid
hitting them, just how would someone program that.

One thing to remember: the input is the world (through the sensors) and
the output are the robots actions on the world.

A program outline

repeat
turn on drive motors
repeat
read wall/obstacle sensor
until sensor reads an obstacle
stop motors
reverse motors a few seconds
stop motors
if wall was to the left
turn right a few seconds
else
turn left a few seconds
stop motors
until universe blows up


Karl R Altenburg   altenbur@plains.NoDak.edu
North Dakota State University
Fargo, ND  58105     http://www.acm.ndsu.NoDak.edu/~altenbur
All things are artificial, for nature is the art of God.  SIR THOMAS BROWNE



Message has 1 Reply:
  Re: Pseudocode
 
I think what you may be wondering is how does the code do all this at once instead of sequentially as normal code runs. If you are not wondering this then I'll tell you anyway. The awesome feature of the handyboard is the pcode. The pcode is a (...) (27 years ago, 20-Sep-97, to lugnet.robotics.handyboard)

Message is in Reply To:
  Pseudocode
 
Hello, Im very new to the list and to the entire concept of all of it basically. but- i'll cut to the chase (its breif) Just learning c programming i ran across a chapter in the book which explains pseudocode and its impact. I dont know how many (...) (27 years ago, 19-Sep-97, to lugnet.robotics.handyboard)

3 Messages in This Thread:

Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR