Go to Post From what I've seen in FIRST, teams that copy generally always learn something from it, and if they don't, the copy they produce is of much lower quality than the original. - TheOtherGuy [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 01-03-2004, 14:29
HuskieRobotics HuskieRobotics is offline
Registered User
#1352
 
Join Date: Feb 2004
Location: Stratford NorthWestern
Posts: 34
HuskieRobotics has a little shameless behaviour in the past
Exclamation How do u get your robot to follow the white line??????????????????

How do you program your robot to follow the white line that leads to the ball release. My team wants it as a backup in case the tracker doesn't work, but i don't have a clue how to program it... Can someone help me????please??????

Last edited by HuskieRobotics : 01-03-2004 at 14:40.
  #2   Spotlight this post!  
Unread 01-03-2004, 15:16
jacob_dilles's Avatar
jacob_dilles jacob_dilles is offline
Registered User
AKA: theshadow
FRC #0620 (WarBots)
Team Role: Mentor
 
Join Date: Jan 2003
Rookie Year: 2003
Location: Vienna, VA
Posts: 245
jacob_dilles will become famous soon enough
Send a message via AIM to jacob_dilles
Re: How do u get your robot to follow the white line??????????????????

http://www.chiefdelphi.com/forums/se...searchid=72414

search before you post
__________________
--------------------------
"You're not a real programmer until all your sentences end with semicolons;"
  #3   Spotlight this post!  
Unread 01-03-2004, 15:21
HuskieRobotics HuskieRobotics is offline
Registered User
#1352
 
Join Date: Feb 2004
Location: Stratford NorthWestern
Posts: 34
HuskieRobotics has a little shameless behaviour in the past
Exclamation Re: How do u get your robot to follow the white line??????????????????

i did do that none had any examples of code for the line follower, I really did not want to look through all of them but i have and still nothing can you please help me???????
  #4   Spotlight this post!  
Unread 01-03-2004, 15:30
KenWittlief KenWittlief is offline
.
no team
Team Role: Engineer
 
Join Date: Mar 2003
Location: Rochester, NY
Posts: 4,213
KenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond repute
Re: How do u get your robot to follow the white line??????????????????

following the line would be difficult, because of the two 45° turns that it takes

your bot will end up being pretty slow if thats the way you find the release ball.
  #5   Spotlight this post!  
Unread 01-03-2004, 15:32
HuskieRobotics HuskieRobotics is offline
Registered User
#1352
 
Join Date: Feb 2004
Location: Stratford NorthWestern
Posts: 34
HuskieRobotics has a little shameless behaviour in the past
Exclamation Re: How do u get your robot to follow the white line??????????????????

I realize that but we want it only as a back up in case something screws up in the ir tracker. So can you please help me???????
  #6   Spotlight this post!  
Unread 01-03-2004, 16:07
KenWittlief KenWittlief is offline
.
no team
Team Role: Engineer
 
Join Date: Mar 2003
Location: Rochester, NY
Posts: 4,213
KenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond repute
Re: How do u get your robot to follow the white line??????????????????

I dont have any code that you can cut and paste

but the algorythm is pretty simple if you have two sensors on your bot

you would put them on either side of the line, tell your bot to normally go straight ahead at a relatively slow speed.

then if the left sensor sees the line, turn towards the left

if the right sensor sees the line, turn towards the right

if neither sensor sees the line, go straight ahead.

you will have to test the code on your bot with the sensors and adjust how fast the bot moves forwards, and how hard it turns when it sees the line. You might also need to tell it to stop moving forward when its turning.

thats the simple version of it.
  #7   Spotlight this post!  
Unread 01-03-2004, 16:23
Phil_Lutz's Avatar
Phil_Lutz Phil_Lutz is offline
Phil Lutz
#0851 (Froggers)
Team Role: Mentor
 
Join Date: Jan 2004
Location: El Segundo, CA
Posts: 67
Phil_Lutz is on a distinguished road
Send a message via Yahoo to Phil_Lutz
Re: How do u get your robot to follow the white line??????????????????

Quote:
Originally Posted by KenWittlief
then if the left sensor sees the line, turn towards the left
if the right sensor sees the line, turn towards the right
if neither sensor sees the line, go straight ahead.
If you mount 3 sensors it's easier.
if left only sees, moved left "harder"
if left and center sees, move left "slightly"
if center only drive straight

same on the right.

too fast...(overran the line) what was the last sensor to see the line?
If left pivot left (right forward/left backward)
and versa visa.

We are counting the times we run off the line to determine where we are.

3 hard turns to re-aquire and we are there.

Phil
  #8   Spotlight this post!  
Unread 01-03-2004, 16:26
Elgin Clock's Avatar
Elgin Clock Elgin Clock is offline
updates this status less than FB!
AKA: the one who "will break into your thoughts..."
FRC #0237 (Black Magic)
Team Role: Mentor
 
Join Date: May 2001
Rookie Year: 2001
Location: H20-Town, Connecticut
Posts: 7,773
Elgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond repute
Send a message via AIM to Elgin Clock
Re: How do u get your robot to follow the white line??????????????????

Iww... precious time waster in that type of auto-mode.. lol

Just do like we do and dead reckon, and get to the ball in ~4.16 seconds!!
__________________
The influence of many leads to the individuality of one. - E.C.C. (That's me!!)


Last edited by Elgin Clock : 01-03-2004 at 16:29.
  #9   Spotlight this post!  
Unread 01-03-2004, 16:33
KenWittlief KenWittlief is offline
.
no team
Team Role: Engineer
 
Join Date: Mar 2003
Location: Rochester, NY
Posts: 4,213
KenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond repute
Re: How do u get your robot to follow the white line??????????????????

for auton mode, we are using a yaw rate sensor to generate a compass heading, pointing the bot between the beacon and the moble goal, and using the gyro to go straight ahead

until our IR sensor sees the beacon (it has a very narrow window of view - like a pinhole camera)

then we turn hard towards the release ball, using the gyro again to measure a precise turn (ie 80° or 81 or 83...)

then moving straight ahead with our arm at release ball height, until contact swithces on the front hit the bottom railing

this should allow us to run at full speed most of the way there - we will see how it works on the real field.
  #10   Spotlight this post!  
Unread 01-03-2004, 16:34
Phil_Lutz's Avatar
Phil_Lutz Phil_Lutz is offline
Phil Lutz
#0851 (Froggers)
Team Role: Mentor
 
Join Date: Jan 2004
Location: El Segundo, CA
Posts: 67
Phil_Lutz is on a distinguished road
Send a message via Yahoo to Phil_Lutz
Re: How do u get your robot to follow the white line??????????????????

Quote:
Originally Posted by Elgin Clock
get to the ball in ~4.16 seconds
And what does your bot do for the next 10 secs...
Dead rec back to harvest balls?

Phil
ps. We get there in 7secs with line follow and a 4fps drive train. Not much wasted time. and fully deployed to react once there

24ft / 7sec = 3.42 ft per sec not bad for a 4fps system.
  #11   Spotlight this post!  
Unread 01-03-2004, 16:40
KenWittlief KenWittlief is offline
.
no team
Team Role: Engineer
 
Join Date: Mar 2003
Location: Rochester, NY
Posts: 4,213
KenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond repute
Re: How do u get your robot to follow the white line??????????????????

last year we used line following and had seven sensors on the bot on a bar - same idea as above, depending on which sensor sees the line you turn harder and harder

it worked ok, but we abandoned that approach and used the gyro as a compass, and started out backwards, doing a V turn

we hit the wall in 3 seconds consistantly last year.

This year our drivetrain is slower, but our navigation with the gyro should allow us to run at full speed most of the way there.

thats the trick - not outrunning your sensors
  #12   Spotlight this post!  
Unread 01-03-2004, 16:45
Phil_Lutz's Avatar
Phil_Lutz Phil_Lutz is offline
Phil Lutz
#0851 (Froggers)
Team Role: Mentor
 
Join Date: Jan 2004
Location: El Segundo, CA
Posts: 67
Phil_Lutz is on a distinguished road
Send a message via Yahoo to Phil_Lutz
Re: How do u get your robot to follow the white line??????????????????

Quote:
Originally Posted by KenWittlief
thats the trick - not outrunning your sensors
But that is exactly what we ARE counting on
We want to overrun the line exactly 3 times (each corner) then we stop.
We (at last test) overrun the line by 6 inches before the program reacts to the change. All good.

Phil

Last edited by Phil_Lutz : 01-03-2004 at 16:46. Reason: adjustment
  #13   Spotlight this post!  
Unread 01-03-2004, 16:49
Elgin Clock's Avatar
Elgin Clock Elgin Clock is offline
updates this status less than FB!
AKA: the one who "will break into your thoughts..."
FRC #0237 (Black Magic)
Team Role: Mentor
 
Join Date: May 2001
Rookie Year: 2001
Location: H20-Town, Connecticut
Posts: 7,773
Elgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond repute
Send a message via AIM to Elgin Clock
Re: How do u get your robot to follow the white line??????????????????

Quote:
Originally Posted by Phil_Lutz
And what does your bot do for the next 10 secs...
Dead rec back to harvest balls?
Maybe, but we haven't quite figured that out yet.. lol We are just glad that we got autonomous to work before we shipped this year.. The first year we did that.. Yay to us!! Now that's progress!!

One more meeting should be enough to figure out what to do in those next 10 seconds, maybe a 180 spin just for for kicks... Then again maybe not, I don't want to drive into a ball and tip over because of it getting lodged under us!
Probably more than likely nothing though, just a waiting game for the next strategical move, and time to charge up that compressor.
__________________
The influence of many leads to the individuality of one. - E.C.C. (That's me!!)

  #14   Spotlight this post!  
Unread 01-03-2004, 16:51
jeremy562 jeremy562 is offline
Engineer
#0562 (SPARK 562)
 
Join Date: Feb 2002
Location: Fitchburg, MA
Posts: 74
jeremy562 is an unknown quantity at this point
Send a message via AIM to jeremy562
Re: How do u get your robot to follow the white line??????????????????

The problem with overrunning the line is that you have to get back to the line, preferably going as straight as possible. At least until you get to the next corner... If you overrun the line too much, it might take a while to get back on track. That said, counting each time you "lose" the line is a clever way of figuring out that you're at the end of the road.

Last year's was a little different because the line was an arc. You could compensate for the arc in software (depending on which side of the field you were on).
__________________
SPARK 562: Students Pursuing Applied Robotics Knowledge

2006 BAE Granite State Regional: Finalists with 319 and 176
2006 BAE Granite State Regional: Winners of Motorola Quality Award
2004 BAE Granite State Regional: 7th Seed
2004 Mayhem on the Merrimack Champions! Thanks, 61 and 1289!
  #15   Spotlight this post!  
Unread 01-03-2004, 17:53
Astronouth7303's Avatar
Astronouth7303 Astronouth7303 is offline
Why did I come back?
AKA: Jamie Bliss
FRC #4967 (That ONE Team)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Grand Rapids, MI
Posts: 2,071
Astronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud of
Re: How do u get your robot to follow the white line??????????????????

Since the RC this year is about a jillion times faster, start going full speed and ratchet down the code if it doesn't work. All'a yous are still in the mindset of Slow, Tiny, and can't do squat.

For turning, us either 0:254 or 191:254. That way, you still go forward while turning.
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 18:25.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi