To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.roboticsOpen lugnet.robotics in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / 24411
24410  |  24412
Subject: 
Re: Just a few highlights and points...
Newsgroups: 
lugnet.org.us.laflrc, lugnet.robotics
Date: 
Wed, 28 Sep 2005 17:09:59 GMT
Viewed: 
369 times
  
In lugnet.org.us.laflrc, Steve Hassenplug wrote:

I must have done something wrong.

   Yes, I'm sure that's it - you just *imagined* you maze-solver worked ;-).

I'm only keeping 2 bits per node

   Hmm. OK, that's got me confused. I *know* I'm storing more information than
needed, but each node in the path only takes 2 bits? If those two bits encode
the direction to the next node (three possible states for L-R-Straight, or four
possible states for N-E-S-W). But if the path the robot is going down is a
dead-end, then the robot has to back up, and it needs to know... oh, OK, it
*does* know which branch it went down at the last node, OK...
   Huh. Remember kids, always demonstrate your ignorance in a public forum where
lots of other people can see it. It's much more fun ;-).
   I'm not sure why I came up with this much more complicated scheme - I think
it has something to do with thinking about it in terms of N-E-S-W. Some mental
block of mine. OK, back to the coding.

--
Brian Davis



Message has 1 Reply:
  Re: Just a few highlights and points...
 
(...) Nodes I haven't seen have a value of zero. Every time I [re]enter a node, I add 1 to the value that's currently there. If there's no right turn (I follow the right "wall"), I add 2. When the total is 4, you're done searching that node. So, (...) (19 years ago, 28-Sep-05, to lugnet.org.us.laflrc, lugnet.robotics)

Message is in Reply To:
  Re: Just a few highlights and points...
 
(...) I must have done something wrong. I'm only keeping 2 bits per node, instead of 8. Steve (19 years ago, 28-Sep-05, to lugnet.org.us.laflrc, lugnet.robotics)

13 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