Go to Post Don't let Dean's homework assignment enter into the equation; his homework is about spreading his organization and has nothing to do with you doing what you want to do. - jonathan lall [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 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.
  #2   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
  #3   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!
__________________
  #4   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.
  #5   Spotlight this post!  
Unread 12-02-2009, 18:53
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
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.
The way I did it when it absolutely failed to pick anything up was to start with the range 0-255 for all 3 (hue, saturation, and luminance) and narrow it down from there. Slow, but it works.

Did you put the jumpers next to the servo pwms? Are the pwms in the program the correct ones/where the servos are plugged in?

-jonathan
  #6   Spotlight this post!  
Unread 12-02-2009, 19:00
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?

If you aren't having any luck with the colors, you might try the NI Vision assistant. It is an easy way to bring in an image and check out the pixels in HSL. Ideally, you get in the habit of grabbing a couple photos in different orientations, different amounts of light, etc. Then you get a better feel for the range of HSL values needed to cover the different lighting.

Greg McKaskle
  #7   Spotlight this post!  
Unread 12-02-2009, 20:19
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

Did you put the jumpers next to the servo pwms? Are the pwms in the program the correct ones/where the servos are plugged in?

-jonathan
Yes, I know that the pwm's are correct because we have code to be able to control them with a joystick on the same pwm channels. I'm checking it out now and seeing if we can get it to work, but a lot of our focus is on the encoders at this point in time.
  #8   Spotlight this post!  
Unread 15-02-2009, 21:01
mikeqfl's Avatar
mikeqfl mikeqfl is offline
Registered User
FRC #0832 (Chimera)
Team Role: Engineer
 
Join Date: Mar 2008
Rookie Year: 2005
Location: Roswell
Posts: 5
mikeqfl is an unknown quantity at this point
Re: How far have you gotten on coding the camera tracking?

We have our camera tracking ok. It commands a motor to turn a turret to keep the image in the center of its field of view. The problem we are having is the camera/turret is constantly oscillating back and forth trying to find the center. Any ideas of how to put in a PID loop into Labveiw? I am not up on the programming, just trying to help our programmer out.
  #9   Spotlight this post!  
Unread 16-02-2009, 01:44
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 mikeqfl View Post
We have our camera tracking ok. It commands a motor to turn a turret to keep the image in the center of its field of view. The problem we are having is the camera/turret is constantly oscillating back and forth trying to find the center. Any ideas of how to put in a PID loop into Labveiw? I am not up on the programming, just trying to help our programmer out.
It sounds like it would be easiest for you to just have a dead zone in the center of the image - if the target is within a certain bounding box in the center of the image don't try to adjust it any further. Rather than try to center it at the center pixel, aim for a box around the center. It oscillates because the image changes slightly frame-to-frame.
  #10   Spotlight this post!  
Unread 18-03-2009, 17:17
Lord_Jeremy's Avatar
Lord_Jeremy Lord_Jeremy is offline
Lord_Jeremy the Procrastinator
AKA: Jeremy Agostino
FRC #1546 (Chaos Inc.)
Team Role: Electrical
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Baldwin, New York
Posts: 45
Lord_Jeremy is an unknown quantity at this point
Send a message via ICQ to Lord_Jeremy Send a message via AIM to Lord_Jeremy Send a message via MSN to Lord_Jeremy Send a message via Yahoo to Lord_Jeremy
Re: How far have you gotten on coding the camera tracking?

We ran into some pretty massive problems. No matter what we seemed to do, the camera would intermittently find a color (or two) for a few seconds, then x and y would immediately go to maximum. We assumed it was centering on the fluorescent lights in the room, but we're not entirely sure. And it was doing this both with our code and the TwoColorTrackingDemo code. I don't think the camera was at fault, as images grabbed from it looked just fine. We tried manually defining the color fields a couple times but that didn't help. Mind you we're using C/Windriver.
__________________
Compiling...
Compiling...
  #11   Spotlight this post!  
Unread 18-03-2009, 22:56
jacobhurwitz jacobhurwitz is offline
Registered User
FRC #0449 (Blair Robot Project)
Team Role: Programmer
 
Join Date: Jan 2008
Rookie Year: 2007
Location: Maryland
Posts: 45
jacobhurwitz has a spectacular aura aboutjacobhurwitz has a spectacular aura aboutjacobhurwitz has a spectacular aura about
Re: How far have you gotten on coding the camera tracking?

We've spent a long time on our camera tracking code, and it finally works very well! (The night before our regional, too. Phew!) Our robot has a shooter, and we're using the camera to aim it at targets and then calculate how far it should fire. I'm pretty sure we'll post all our code on CD at the end of competition season, in case anybody's interested. We also have a pretty cool dashboard
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 15:12.

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