Go to Post I frequently summarize the core mission of FIRST as inspiring the smartest high school kids to study science and engineering, so they don't become lawyers. (It's about 70% in jest) - MikeE [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

 
View Poll Results: How far have you gotten on coding the camera tracking?
Completed 25 22.73%
Debugging 29 26.36%
Work in progress 31 28.18%
Just started 10 9.09%
Havent started 10 9.09%
Not going to use the camera for that 5 4.55%
Voters: 110. You may not vote on this poll

Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 21-01-2009, 19:45
Sean Raia's Avatar
Sean Raia Sean Raia is offline
Curious spectator & alumn
no team
 
Join Date: Oct 2008
Rookie Year: 2008
Location: PA
Posts: 430
Sean Raia has a reputation beyond reputeSean Raia has a reputation beyond reputeSean Raia has a reputation beyond reputeSean Raia has a reputation beyond reputeSean Raia has a reputation beyond reputeSean Raia has a reputation beyond reputeSean Raia has a reputation beyond reputeSean Raia has a reputation beyond reputeSean Raia has a reputation beyond reputeSean Raia has a reputation beyond reputeSean Raia has a reputation beyond repute
Exclamation How far have you gotten on coding the camera tracking?

Our team is mostly finished. We just need to debug and make it more efficient.
  #2   Spotlight this post!  
Unread 21-01-2009, 19:48
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: How far have you gotten on coding the camera tracking?

We are still trying to improve the response delay, the robot takes sometimes half a second to react. The camera's FPS is almost never above 10, but I don't know if this is an issue in the robot or just the laptop communication.

We also need to make it work in different light conditions.
__________________
[<o>] gogogo [<o>]
http://undercontrol1156.com/
  #3   Spotlight this post!  
Unread 22-01-2009, 15:16
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: How far have you gotten on coding the camera tracking?

To update, I'm on the same team as Sean.

We can now successfully find a flag, check if its friend of foe, and track the motion of that flag if it is a foe.

We are going to work on code to decide which flag to use if more then one is present in the field of view. Hopefully get a good start tonight
  #4   Spotlight this post!  
Unread 23-01-2009, 18:16
Redneck's Avatar
Redneck Redneck is offline
Hacker Hick
AKA: Jamie (2.0) Moran
FRC #0599 (Robodox)
Team Role: Engineer
 
Join Date: Aug 2004
Rookie Year: 2004
Location: California
Posts: 90
Redneck is just really niceRedneck is just really niceRedneck is just really niceRedneck is just really nice
Send a message via AIM to Redneck
Re: How far have you gotten on coding the camera tracking?

We've gotten our camera to successfully find the pink/green flag, determine which alliance it's on and track appropriately. Our problem now is with getting the robot to follow it - when we try to have the robot turn and drive towards the target, only one side of the drive system responds properly (the other just sort of twitches back and forth).
__________________


Which badges can you claim?
  #5   Spotlight this post!  
Unread 23-01-2009, 19:08
weinbergmath's Avatar
weinbergmath weinbergmath is offline
Mentor to China FTC/FLL, FRC1230
AKA: Evan Weinberg
FRC #1230
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2004
Location: Hangzhou, China
Posts: 22
weinbergmath is a splendid one to beholdweinbergmath is a splendid one to beholdweinbergmath is a splendid one to beholdweinbergmath is a splendid one to beholdweinbergmath is a splendid one to beholdweinbergmath is a splendid one to beholdweinbergmath is a splendid one to beholdweinbergmath is a splendid one to behold
Re: How far have you gotten on coding the camera tracking?

Hi everyone,

I'm posting two videos of an older robot with the new control system tracking the vision target.

Video 1 - http://www.youtube.com/watch?v=9l64T6wc1Lg

Video 2 - Labview Screen View - http://www.youtube.com/watch?v=HdyzfuzJs-w


We used the Two Color servo tracking vi from NI, and dropped it into the Robot Main vi to control the drive motors of the robot. Please contact me if you have questions on the implementation. The program is set to steer towards the target and maintain a certain distance, which will be adjusted to be at the correct distance to allow our manipulator to drop the moon rocks into the trailer.

I'm not thrilled with the program's ability to track the colors, particularly the green color, but we will continue to test and adjust as time goes on. You can see the intermittent tracking of green in the second video. We will be transplanting the control board to the new robot to tweak it for the new wheels very soon. I expect to be able to take the outputs of this current program and feed them into a traction control algorithm.

On another note, I want to say how enjoyable it has been teaching my students to program the robot using Labview. Most of the programming team has almost no programming experience, but something about Labview has made it less intimidating. The students really seem to enjoy looking through the various functions to find what they want to use, while finding other ones along the way that might be useful later on. Even more interesting, this year's programming team is almost exclusively female! If Labview was the missing factor in getting more girls interested in programming, I will gladly add it to the list of reasons I'm glad we made the decision to use it this year.

One more comment - has anyone found that the camera resets itself when the motors change rapidly? The only cause that makes sense is some sort of noise getting into the system. We changed our tracking to include the PID.vi from the control toolbox, and the system was resetting any time there was integral gain. The camera would reset, and the cRIO would keep doing whatever it was doing just before the camera went out....disabling and re-enabling at the driver station would stop it from moving completely. Please let me know if you have had similar experiences.

Evan
  #6   Spotlight this post!  
Unread 24-01-2009, 02:22
Arefin Bari's Avatar
Arefin Bari Arefin Bari is offline
Registered User
AKA: Ari
FRC #0108 (SigmaC@T)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2001
Location: Ft. lauderdale, FL
Posts: 3,243
Arefin Bari has a reputation beyond reputeArefin Bari has a reputation beyond reputeArefin Bari has a reputation beyond reputeArefin Bari has a reputation beyond reputeArefin Bari has a reputation beyond reputeArefin Bari has a reputation beyond reputeArefin Bari has a reputation beyond reputeArefin Bari has a reputation beyond reputeArefin Bari has a reputation beyond reputeArefin Bari has a reputation beyond reputeArefin Bari has a reputation beyond repute
Send a message via ICQ to Arefin Bari Send a message via AIM to Arefin Bari Send a message via MSN to Arefin Bari Send a message via Yahoo to Arefin Bari
Re: How far have you gotten on coding the camera tracking?

Our programmers are having great success with the camera. We asked them to write a code called, "Kill the Driver Mode." Our programmers have been spending time to track any color shirts they have been wearing lately so they can be chased around for the last 20 minutes of the meeting. =)

Last edited by Arefin Bari : 24-01-2009 at 02:31.
  #7   Spotlight this post!  
Unread 24-01-2009, 07:21
Doug Leppard's Avatar
Doug Leppard Doug Leppard is offline
Registered User
FRC #1902 (Exploding Bacon)
Team Role: Engineer
 
Join Date: Apr 2003
Rookie Year: 2003
Location: Orlando
Posts: 435
Doug Leppard has a reputation beyond reputeDoug Leppard has a reputation beyond reputeDoug Leppard has a reputation beyond reputeDoug Leppard has a reputation beyond reputeDoug Leppard has a reputation beyond reputeDoug Leppard has a reputation beyond reputeDoug Leppard has a reputation beyond reputeDoug Leppard has a reputation beyond reputeDoug Leppard has a reputation beyond reputeDoug Leppard has a reputation beyond reputeDoug Leppard has a reputation beyond repute
Send a message via AIM to Doug Leppard
Re: How far have you gotten on coding the camera tracking?

Thanks for sharing this.
__________________
Doug Leppard
  #8   Spotlight this post!  
Unread 24-01-2009, 14:39
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,748
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: How far have you gotten on coding the camera tracking?

Quote:
I'm not thrilled with the program's ability to track the colors, particularly the green color, but ...
First off, great job getting it integrated. It looks awesome. You probably know this already, but if you disconnect or make the update of the image display optional, your code and camera will run quite a bit faster. That was what the example was doing.

The green color of that fabric is indeed less predictable than the pink, which is why the pink is the primary color by default. For debugging, you may find it useful to switch the first color to green to see the entire green mask. Then tilt the target towards and away of the camera to see if the issue is with the green getting to bright, too dark, or something else. Usually it is either a bright streak or a dark streak.

Once you know how to make it fail, and while it is still running, open up the Find VI, click on the HSL debug switch, and now you can hover the mouse over the green portion of the image to see what the pixel values are in HSL. This will give you an idea of how the different orientations differ, and how much you'll need to lower the saturation or brightness on green to get it covered. You may also decide that you don't want to change it if it is due to tilt which you don't expect in a game.

The debug HSL button is not something I'd leave on for real usage, by the way. It works identically, but slower because of the display, and because of the explicit HSL conversion of every pixel. For normal operation turn the switch off, the threshold will still be done in HSL, but only enough math to perform the threshold.

Greg McKaskle
  #9   Spotlight this post!  
Unread 24-01-2009, 16:56
paulcd2000's Avatar
paulcd2000 paulcd2000 is offline
Accidentally speaks in C
AKA: Paul Dagnelie
FRC #1719 (The Umbrella Corp.)
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Baltimore
Posts: 368
paulcd2000 is a jewel in the roughpaulcd2000 is a jewel in the roughpaulcd2000 is a jewel in the rough
Send a message via AIM to paulcd2000
Re: How far have you gotten on coding the camera tracking?

We've gotten the Camera tracking a pink and green target, identifying which team it is, where it is and how far away it is, and it's all in a modular code block. We modified the Single Color Tracking Example and then added servos and position data.
__________________
"People don't say 'It's just a game' when their team is winning!" -- Scott Adams

5.5 students (on average)* $7/h *210 hours/student= $8085 of labor, all volunteered (not counting mentors', who are each that much)

We have blades on our robot?! ***sweeeeeet***

There are 11 types of people in the world. Those who can read binary, those who can't, and those who say this joke is supposed to be, "There are 10 types of people in the world. Those who can read binary and those who have a life."
  #10   Spotlight this post!  
Unread 07-02-2009, 11:39
Comatose Comatose is offline
Registered User
AKA: Lead Student Programmer
FRC #0135 (Penn Robotics)
Team Role: Programmer
 
Join Date: Sep 2008
Rookie Year: 2008
Location: United States of America
Posts: 27
Comatose is an unknown quantity at this point
Re: How far have you gotten on coding the camera tracking?

What does HSL stand for?
  #11   Spotlight this post!  
Unread 07-02-2009, 12:31
Sentient's Avatar
Sentient Sentient is offline
Registered User
FRC #0639 (Code Red)
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Ithaca
Posts: 21
Sentient is on a distinguished road
Re: How far have you gotten on coding the camera tracking?

Hue/Saturation/Luminosity. It is just another way to represent colors than RGB.
  #12   Spotlight this post!  
Unread 11-02-2009, 19:28
Dr. Manhattan Dr. Manhattan is offline
Atomic Reconstruction
AKA: Joe Bakke
FRC #2521
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Eugene, OR
Posts: 21
Dr. Manhattan is on a distinguished road
Send a message via AIM to Dr. Manhattan
Re: How far have you gotten on coding the camera tracking?

I, as the most active of one of three programmers on my team, have made no progress at all. Especially since this is my first time ever using labview, so I'm entirely self taught.

Any help would be greatly, hugely appreciated.
  #13   Spotlight this post!  
Unread 11-02-2009, 23:21
s0crates s0crates is offline
Registered User
no team
Team Role: Programmer
 
Join Date: Dec 2008
Rookie Year: 2009
Location: Australia
Posts: 52
s0crates is on a distinguished road
Re: How far have you gotten on coding the camera tracking?

Quote:
Originally Posted by Dr. Manhattan View Post
I, as the most active of one of three programmers on my team, have made no progress at all. Especially since this is my first time ever using labview, so I'm entirely self taught.
No progress into making the robot follow a target, or matching the target?
If you're having trouble making it track with the standard gimbal and two color tracking demo, try finding somewhere there is more light - opening the windows where we are made a huge difference. It also took a lot of tweaking of hsl values.


btw see you at the regional

-jonathan
  #14   Spotlight this post!  
Unread 12-02-2009, 00:01
TheOtherGuy's Avatar
TheOtherGuy TheOtherGuy is offline
Unregistered User
AKA: Kevin Forbes
FRC #4183 (Bit Buckets)
Team Role: Engineer
 
Join Date: Jul 2006
Rookie Year: 2006
Location: Tucson, AZ
Posts: 408
TheOtherGuy has a reputation beyond reputeTheOtherGuy has a reputation beyond reputeTheOtherGuy has a reputation beyond reputeTheOtherGuy has a reputation beyond reputeTheOtherGuy has a reputation beyond reputeTheOtherGuy has a reputation beyond reputeTheOtherGuy has a reputation beyond reputeTheOtherGuy has a reputation beyond reputeTheOtherGuy has a reputation beyond reputeTheOtherGuy has a reputation beyond reputeTheOtherGuy has a reputation beyond repute
Re: How far have you gotten on coding the camera tracking?

We're still having fun trying to get the response time to be faster, but I believe we've reached the highest efficiency we can get before ship. I tracks like no tomorrow, but when the target is moving we're having trouble leading it... We messed around adding in a PID lead/lag loop, but we're only having moderate to no success with that. Has anyone else gotten it to successfully lead a moving target? Any thoughts on that?

By the way, I'm very impressed with the support the community has on the camera this year! Here's a shout out to all the incredibly helpful NI folks that have provided time and resources to ensuring this season's success with the new system!
__________________
  #15   Spotlight this post!  
Unread 12-02-2009, 17:48
Dr. Manhattan Dr. Manhattan is offline
Atomic Reconstruction
AKA: Joe Bakke
FRC #2521
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Eugene, OR
Posts: 21
Dr. Manhattan is on a distinguished road
Send a message via AIM to Dr. Manhattan
Re: How far have you gotten on coding the camera tracking?

Quote:
Originally Posted by s0crates View Post
No progress into making the robot follow a target, or matching the target?
If you're having trouble making it track with the standard gimbal and two color tracking demo, try finding somewhere there is more light - opening the windows where we are made a huge difference. It also took a lot of tweaking of hsl values.


btw see you at the regional

-jonathan
We tried testing it with the full range of color available, yet for some reason the green doesn't show up at all. So far I have no clue why. And for some reason the servo's aren't moving while on gimble tracking mode, I assume they're supposed to and have no clue why.

And yes, see you there.
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
how far have you gotten on your robot? gondorf General Forum 167 26-01-2010 07:35
How far have you gotten in "100 Bottles of Milk on the Wall"... Billfred Chit-Chat 25 29-03-2009 18:01
How far has your team gotten? Alex Burman Chairman's Award 5 21-01-2006 15:43
Have you gotten your robot to go towards the vision tetra? Bharat Nain Programming 20 25-02-2005 20:18
So how much have you all accomplished so far? team222badbrad General Forum 16 16-01-2002 18:09


All times are GMT -5. The time now is 10:15.

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