Go to Post :( The Internet just ate my post. - Greg Marra [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 13-01-2006, 02:22
Idaman323 Idaman323 is offline
In Theory, Our Robot Would Own.
FRC #1706
Team Role: Driver
 
Join Date: Feb 2005
Rookie Year: 2005
Location: Wentzville, MO
Posts: 116
Idaman323 is an unknown quantity at this point
Camera Help (New to Camera Programming)

Im kinda new to the Camera programming aspect (last year, our rookie year, we had only 2 weeks to build and ship our robot due to delays. So I could not messa round with it last year)

Okay.. So I have the "bells and whistles" code that I got from Kevin, (Thanks Kevin ) and I have the camera mounted on the front of the robot. We have a side to side movement and up and down movement to our gun. But how do you get these two things to work together. Once the camera finds the green light. How would you get the gun to point in that area also. Where would the code for this go?

I have kind of searched around with no luck.. Does the code from Kevin already have that in the code. Or is it just the code to find the light with the camera.

Hmm.. I just need a few things straightend out

Thanks
Idaman323
  #2   Spotlight this post!  
Unread 13-01-2006, 02:55
Goldeye Goldeye is offline
Registered User
AKA: Josh Hecht
FRC #0694 (Stuypulse)
Team Role: College Student
 
Join Date: Jan 2005
Rookie Year: 2005
Location: New York
Posts: 145
Goldeye has a spectacular aura aboutGoldeye has a spectacular aura aboutGoldeye has a spectacular aura about
Send a message via AIM to Goldeye
Re: Camera Help (New to Camera Programming)

Break it into two tasks.
1. Use the camera to figure out where to point your gun by doing calculations on the data it gives you.
2. Point the gun to a given location.
That is, worry about how to move the gun seperate from how to read from the camera, and then get the two understanding each other after the fact.
__________________
Team 694

2005 Championship - Galileo Semifinalist
2005 New York - Regional Chairmans Award
2005 New York - Semifinalist (Thanks 1257,1340)
  #3   Spotlight this post!  
Unread 13-01-2006, 07:16
VideoMan053's Avatar
VideoMan053 VideoMan053 is offline
Computer Freak
AKA: Dan J.
FRC #0063 (Red Barons)
Team Role: Alumni
 
Join Date: Jan 2005
Rookie Year: 2004
Location: Erie, Pennsylvania
Posts: 18
VideoMan053 is an unknown quantity at this point
Send a message via AIM to VideoMan053
Re: Camera Help (New to Camera Programming)

Also, if there is space/time...why don't you try mounting the camera to the actual gun itself and then change the pan and tilt motors of the camera to coorespond to the side to side movement of the robot and the up and down movement of the gun?


That shouldn't be too hard to fix...however, i haven't actually looked at the code myself yet, but it should be a matter of switching two variable names around...when i find them, i'll let you know.
__________________
GET OVER IT! ~ not the most useful words in competitions, but some of the most useful in life!
My Jobs: Programming
  #4   Spotlight this post!  
Unread 13-01-2006, 12:37
Idaman323 Idaman323 is offline
In Theory, Our Robot Would Own.
FRC #1706
Team Role: Driver
 
Join Date: Feb 2005
Rookie Year: 2005
Location: Wentzville, MO
Posts: 116
Idaman323 is an unknown quantity at this point
Re: Camera Help (New to Camera Programming)

WE have also thought about doing that. Youll have to first find the target with the gun, then change the angle of the gun.

I think it might be a little quicker to use the camera mount they gave us.

And where would you put this equation that the camera gives you?
  #5   Spotlight this post!  
Unread 13-01-2006, 16:37
VideoMan053's Avatar
VideoMan053 VideoMan053 is offline
Computer Freak
AKA: Dan J.
FRC #0063 (Red Barons)
Team Role: Alumni
 
Join Date: Jan 2005
Rookie Year: 2004
Location: Erie, Pennsylvania
Posts: 18
VideoMan053 is an unknown quantity at this point
Send a message via AIM to VideoMan053
Re: Camera Help (New to Camera Programming)

Like I said, I haven't actually looked at our camera code yet...I've been trying to get our website online, but I'll def look at it tonight and see what I can do for you.
__________________
GET OVER IT! ~ not the most useful words in competitions, but some of the most useful in life!
My Jobs: Programming
  #6   Spotlight this post!  
Unread 14-01-2006, 02:22
Idaman323 Idaman323 is offline
In Theory, Our Robot Would Own.
FRC #1706
Team Role: Driver
 
Join Date: Feb 2005
Rookie Year: 2005
Location: Wentzville, MO
Posts: 116
Idaman323 is an unknown quantity at this point
Re: Camera Help (New to Camera Programming)

Any Updates?
  #7   Spotlight this post!  
Unread 14-01-2006, 03:56
Joe Hershberger Joe Hershberger is offline
National Instruments
AKA: jhersh
FRC #2468 (Appreciate)
Team Role: Mentor
 
Join Date: Nov 2005
Rookie Year: 1997
Location: Austin, TX
Posts: 148
Joe Hershberger is a name known to allJoe Hershberger is a name known to allJoe Hershberger is a name known to allJoe Hershberger is a name known to allJoe Hershberger is a name known to allJoe Hershberger is a name known to all
Re: Camera Help (New to Camera Programming)

Quote:
Originally Posted by Idaman323
WE have also thought about doing that. Youll have to first find the target with the gun, then change the angle of the gun.

I think it might be a little quicker to use the camera mount they gave us.

And where would you put this equation that the camera gives you?
If you look at the streamlined camera code that Kevin wrote, you should find the constants you need to modify in tracking.h. You can change how the tracking actually does work by editing tracking.c, but the configuration options for it as it is are all in the header file.

Good luck!
-Joe
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
Programming - Getting Started Mark McLeod Programming 80 16-04-2008 23:37
How To Use the Google Camera generalbrando Kit & Additional Hardware 2 07-02-2006 16:00
Scripting Setup and the Camera + Serial Port Drivers CJO Programming 22 11-01-2006 17:42
Should there be a section for the 'camera' under 'Programming' Bharat Nain CD Forum Support 6 25-01-2005 22:23
CMUCam2 Camera Code - Are important parts commented out? Mr. Lim Programming 4 14-01-2005 12:11


All times are GMT -5. The time now is 04:35.

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