Go to Post There are so much more things to be worked on and are more beneficial to FIRST and FIRSTers than green dots by someone's name. - tiffany34990 [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 19-01-2009, 20:03
laultima laultima is offline
Registered User
FRC #1458 (Danvillans)
Team Role: Alumni
 
Join Date: Feb 2007
Rookie Year: 2005
Location: Danville, CA
Posts: 87
laultima is on a distinguished road
Send a message via AIM to laultima
Video: Color Camera Tracking

Heres a quick video we took after we got the camera tracking working. As I've said in previous posts, we used our own fairly simple code with the color values from the Two Color Tracking Demo. The video is here:
http://www.youtube.com/watch?v=SiVSM2MuWvs

and the snipet of code we use to move the servos is here:
http://www.chiefdelphi.com/forums/sh...931#post803931

Questions and comments are appreciated.
__________________
2007 Davis/Sacramento Regional Winner (100, 997, 1458)

2008 Davis/Sacramento Regional Gracious Professionalism Award Winner

  #2   Spotlight this post!  
Unread 19-01-2009, 20:33
WhiteShadow1474's Avatar
WhiteShadow1474 WhiteShadow1474 is offline
FIRST. Much better than SECOND.
AKA: Jason
FRC #1474 (Master Link Militia)
Team Role: Student
 
Join Date: Sep 2008
Rookie Year: 2008
Location: Tewksbury
Posts: 62
WhiteShadow1474 is an unknown quantity at this point
Re: Video: Color Camera Tracking

that looks great. that should greatly help your robot during autonomous mode or during teleop if its a shooter
__________________
Poor minds discuss gossip. Brilliant minds discuss ideas.



  #3   Spotlight this post!  
Unread 20-01-2009, 21:53
mahmosh's Avatar
mahmosh mahmosh is offline
Registered User
FRC #1946
 
Join Date: Jan 2008
Location: israel
Posts: 125
mahmosh is an unknown quantity at this point
Re: Video: Color Camera Tracking

wooooooow ... realy good
  #4   Spotlight this post!  
Unread 20-01-2009, 22:33
dani190 dani190 is offline
Registered User
AKA: Dani
FRC #2185 (RoboRams)
Team Role: Leadership
 
Join Date: Feb 2007
Rookie Year: 2007
Location: Canada
Posts: 164
dani190 is a splendid one to beholddani190 is a splendid one to beholddani190 is a splendid one to beholddani190 is a splendid one to beholddani190 is a splendid one to beholddani190 is a splendid one to beholddani190 is a splendid one to behold
Send a message via MSN to dani190
Re: Video: Color Camera Tracking

nice job guys...

Question, i am testing now ours now... When you guys were testing, did your camera need to have that vision target? or could you just use the green and pink fabric held in ur hand?

Also once it finds the color, i am assuming the camera should theoretically lock on to the color and not move correct?

but the second it looses it, it will look around?

Also how jittery are your servos? Ours seem extra jittery... And like either direction, left or right it will almost liek step there... and not go in a smooth constant motion

I ordered 4 more servos to be safe and try them, just to see if thats the issue...

Thanks, Dani
__________________
  #5   Spotlight this post!  
Unread 21-01-2009, 08:07
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,752
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Video: Color Camera Tracking

If the servo is jerky because it only moves a few times a second, you should try to speed up the loop. If your image size is large or if you have lots of processing, your framerate will drop and it will start jerking.

Another possibility, but less common, is that your target is too close to the camera. If the full image is filled with the target, it is by definition in the center, and you move the target some and the scene is still full, no movement. Only when the edge of the target enters the image will the servo move.

Greg McKaskle
  #6   Spotlight this post!  
Unread 21-01-2009, 10:23
excel2474's Avatar
excel2474 excel2474 is offline
Registered User
AKA: Aaron Stewart
FRC #2474 (Excel)
Team Role: Engineer
 
Join Date: Mar 2008
Rookie Year: 2008
Location: Niles, Michigan
Posts: 177
excel2474 is a jewel in the roughexcel2474 is a jewel in the roughexcel2474 is a jewel in the roughexcel2474 is a jewel in the rough
Re: Video: Color Camera Tracking

good job! can you post the portion of the code where you defined what the values of green and red are? Thanks.
__________________
"Find some thing you like to do and EXCEL at it with dilligence."

University of Notre Dame- Mechanical Engineering.
  #7   Spotlight this post!  
Unread 22-01-2009, 10:03
dani190 dani190 is offline
Registered User
AKA: Dani
FRC #2185 (RoboRams)
Team Role: Leadership
 
Join Date: Feb 2007
Rookie Year: 2007
Location: Canada
Posts: 164
dani190 is a splendid one to beholddani190 is a splendid one to beholddani190 is a splendid one to beholddani190 is a splendid one to beholddani190 is a splendid one to beholddani190 is a splendid one to beholddani190 is a splendid one to behold
Send a message via MSN to dani190
Re: Video: Color Camera Tracking

ok we got it, the code is switched apparentlly...
When it says to do pink over green, we do green over pink and it works...
__________________
  #8   Spotlight this post!  
Unread 22-01-2009, 15:20
fordfiler6 fordfiler6 is offline
F2
AKA: Ford Filer
FRC #1559 (Devil Tech)
Team Role: Programmer
 
Join Date: Sep 2008
Rookie Year: 2009
Location: Victor, NY
Posts: 8
fordfiler6 is an unknown quantity at this point
Re: Video: Color Camera Tracking

Dani, If you are using the same "find color" vi that we are, the reason its backwards is because you are specifying your teams colors.

Then you also have to either push the button to find your foes (the opposite color scheme) or not to find teammates.

Hope that explains it a little more for you.
  #9   Spotlight this post!  
Unread 22-01-2009, 15:43
bigbeezy's Avatar
bigbeezy bigbeezy is offline
Registered User
AKA: Bryan
FRC #2338 (Gear it Forward)
Team Role: Coach
 
Join Date: Dec 2006
Rookie Year: 2005
Location: Oswego, IL
Posts: 310
bigbeezy is a splendid one to beholdbigbeezy is a splendid one to beholdbigbeezy is a splendid one to beholdbigbeezy is a splendid one to beholdbigbeezy is a splendid one to beholdbigbeezy is a splendid one to beholdbigbeezy is a splendid one to beholdbigbeezy is a splendid one to behold
Send a message via AIM to bigbeezy
Re: Video: Color Camera Tracking

i know in 2006 and 07 teams would need to calibrate the cameras on the actual field. I am not a programmer nor familiar with the new system, but do these new cameras need to do that as well?
  #10   Spotlight this post!  
Unread 22-01-2009, 16:53
Daniel_H's Avatar
Daniel_H Daniel_H is offline
Registered User
FRC #1156 (Under Control)
Team Role: Mentor
 
Join Date: Jan 2003
Rookie Year: 2003
Location: Brazil
Posts: 171
Daniel_H is just really niceDaniel_H is just really niceDaniel_H is just really niceDaniel_H is just really nice
Re: Video: Color Camera Tracking

cool! did you do something about the intrinsic lag problem? Our f.p.s. never passes 9 and there's a delay in the response of something like 0,25~0,5s.
__________________
[<o>] gogogo [<o>]
http://undercontrol1156.com/
  #11   Spotlight this post!  
Unread 22-01-2009, 22:43
dani190 dani190 is offline
Registered User
AKA: Dani
FRC #2185 (RoboRams)
Team Role: Leadership
 
Join Date: Feb 2007
Rookie Year: 2007
Location: Canada
Posts: 164
dani190 is a splendid one to beholddani190 is a splendid one to beholddani190 is a splendid one to beholddani190 is a splendid one to beholddani190 is a splendid one to beholddani190 is a splendid one to beholddani190 is a splendid one to behold
Send a message via MSN to dani190
Re: Video: Color Camera Tracking

that would be because you are trying to get video feedback at the same time/ the code is still taking it but just not showing it.
Once i ripped out the code that retrieves the video, it worked perfect. No lag at all and was really really smooth!
__________________
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Two Color Tracking Demo Bharat Nain Programming 43 25-01-2009 18:58
Two color tracking problem nadavsen2 Programming 3 19-01-2009 14:44
Team 399 Color Tracking EricGoodchild Robot Showcase 2 15-01-2009 22:38
Camera locked in "tracking", but not tracking geeknerd99 Programming 1 18-02-2007 22:47
Tracking Color? haywirerobotics Programming 0 14-01-2006 13:55


All times are GMT -5. The time now is 22:14.

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