Subject:
|
Re: Code Repository
|
Newsgroups:
|
lugnet.robotics
|
Date:
|
Thu, 16 Sep 1999 17:29:53 GMT
|
Original-From:
|
Jonathan Knudsen <jonathan@oreilly.com%saynotospam%>
|
Viewed:
|
723 times
|
| |
![Post a public reply to this message](/news/icon-reply.gif) | |
At 09:35 AM 9/16/99 -0700, alex wetmore wrote:
> [...]
> I think it is even interesting to see how different people attack a basic
> problem, such as the line following algorithm. While reading the chapter in
> the O'Reilly book on NQC I noticed that their line follower has a much
> different algorithm then my own. They would go back and forth a large
> amount, but always go the same amount. Additionally, they always started by
> going left. My script would sweep left and right a small amount, and then
> grow that amount until it found the line. It also remembers which direction
> it found the line in last time, and searchs in that same direction again.
Actually, it sounds like our algorithms are more similar than
you think. My assumption was that the robot would cross the line in
a zig-zag motion, driving off the line on alternate sides. Based
on this assumption, I remember the last direction turned and
always try to turn back to the line. If it times out without
reaching the line, I turn back the other way. As you've observed,
the track shape determines the success of the algorithm. On
an oval track, for example, the robot tends to drive off the
line on the same side each time, and my algorithm is not
particularly efficient in this case. (I described the algorithm
better in Chapter 3; in Chapter 4, I just re-implement it in NQC.)
Jonathan
|
|
Message is in Reply To:
![](/news/x.gif) | | Re: Code Repository
|
| (...) I'm completely in favour of something like this. Now I wonder what's the best way of implementing it, because HTML doesn't seem to be the best for copy-paste... Laurentino Martins [ mailto:lau@mail.telepac.pt ] [ (URL) ] ---...--- For once, (...) (25 years ago, 16-Sep-99, to lugnet.robotics)
|
17 Messages in This Thread: ![Re: Code Repository -lego-robotics@crynwr.com (Laurentino Martins) (16-Sep-99 to lugnet.robotics)](/news/x.gif) ![](/news/246.gif) ![Re: Code Repository -Brian Alano (16-Sep-99 to lugnet.robotics)](/news/x.gif) ![](/news/46.gif) ![Re: Code Repository -Todd Lehman (16-Sep-99 to lugnet.robotics, lugnet.robotics.rcx.nqc)](/news/x.gif)
![](/news/x.gif) ![](/news/268.gif) ![Re: Code Repository -Alex Wetmore (16-Sep-99 to lugnet.robotics)](/news/x.gif) ![](/news/246.gif) ![Re: Code Repository -Todd Lehman (16-Sep-99 to lugnet.robotics, lugnet.robotics.rcx.nqc, lugnet.admin.general)](/news/x.gif) ![](/news/246.gif) ![Re: Code Repository -Brian Alano (16-Sep-99 to lugnet.robotics, lugnet.robotics.rcx.nqc, lugnet.admin.general)](/news/x.gif) ![](/news/246.gif) ![Re: Code Repository -Todd Lehman (16-Sep-99 to lugnet.robotics, lugnet.robotics.rcx.nqc, lugnet.admin.general)](/news/x.gif)
![](/news/x.gif) ![](/news/28.gif) ![](/news/x.gif) ![](/news/28.gif) ![](/news/x.gif) ![](/news/28.gif) ![](/news/x.gif) ![](/news/68.gif) ![Re: Code Repository -Joel Shafer (17-Sep-99 to lugnet.robotics)](/news/x.gif)
![](/news/x.gif) ![](/news/28.gif) ![](/news/x.gif) ![](/news/28.gif) ![](/news/x.gif) ![](/news/68.gif) ![Re: Code Repository -Brian Alano (16-Sep-99 to lugnet.robotics, lugnet.robotics.rcx.nqc, lugnet.admin.general)](/news/x.gif) ![](/news/46.gif) ![Re: Code Repository -Alex Wetmore (16-Sep-99 to lugnet.robotics)](/news/x.gif)
![](/news/x.gif) ![](/news/28.gif) ![](/news/x.gif) ![](/news/68.gif) ![Re: Code Repository -lego-robotics@crynwr.com (Laurentino Martins) (16-Sep-99 to lugnet.robotics)](/news/x.gif) ![](/news/246.gif) ![Re: Code Repository -Todd Lehman (16-Sep-99 to lugnet.robotics)](/news/x.gif)
![](/news/x.gif) ![](/news/28.gif) ![](/news/x.gif) ![](/news/x.gif) ![](/news/68.gif) ![Re: Code Repository -lego-robotics@crynwr.com (Laurentino Martins) (16-Sep-99 to lugnet.robotics)](/news/x.gif) ![](/news/246.gif) ![Re: Code Repository -Brian Alano (16-Sep-99 to lugnet.robotics)](/news/x.gif)
![](/news/x.gif) ![](/news/28.gif) ![](/news/x.gif) ![](/news/x.gif) ![](/news/68.gif) ![Re: Code Repository -Todd Lehman (16-Sep-99 to lugnet.robotics)](/news/x.gif)
![](/news/x.gif) ![](/news/268.gif) ![You are here](/news/here.gif)
![](/news/x.gif) ![](/news/68.gif) ![Re: Code Repository -Andy Bower (16-Sep-99 to lugnet.robotics)](/news/x.gif)
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|