Go to Post I don't know, there's quite a few teams that apply to travel to some random HS gym in Indiana every summer. - GaryVoshol [more]
Home
Go Back   Chief Delphi > Technical > Technical Discussion
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 26-01-2010, 10:13
Jordan2389Diaz's Avatar
Jordan2389Diaz Jordan2389Diaz is offline
Grant me your power...Verto
FRC #2389 (Pirate Robotics)
Team Role: Tactician
 
Join Date: Jan 2010
Rookie Year: 2009
Location: Drumright Central Tech
Posts: 50
Jordan2389Diaz can only hope to improve
Programming the Camera

My friend needs help in programming the camera; if anyone knows how to program the camera then your help will be greatly appreciate
__________________
Lord is my Shepherd I shall not want-Psalms 23


  #2   Spotlight this post!  
Unread 26-01-2010, 10:33
sloteera's Avatar
sloteera sloteera is offline
Registered User
AKA: Rafa
FRC #1860 (Cephatron)
Team Role: Coach
 
Join Date: Mar 2007
Rookie Year: 2004
Location: Brazil
Posts: 190
sloteera has much to be proud ofsloteera has much to be proud ofsloteera has much to be proud ofsloteera has much to be proud ofsloteera has much to be proud ofsloteera has much to be proud ofsloteera has much to be proud ofsloteera has much to be proud ofsloteera has much to be proud ofsloteera has much to be proud of
Re: Programming the Camera

Could you tell exactly what do you need about the camera?
  #3   Spotlight this post!  
Unread 26-01-2010, 10:51
Jordan2389Diaz's Avatar
Jordan2389Diaz Jordan2389Diaz is offline
Grant me your power...Verto
FRC #2389 (Pirate Robotics)
Team Role: Tactician
 
Join Date: Jan 2010
Rookie Year: 2009
Location: Drumright Central Tech
Posts: 50
Jordan2389Diaz can only hope to improve
Re: Programming the Camera

Our camera is not tracking the target so want do we do?
__________________
Lord is my Shepherd I shall not want-Psalms 23


  #4   Spotlight this post!  
Unread 26-01-2010, 10:55
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Programming the Camera

Please have your programmer friend ask for help directly. Going through an intermediary is likely to make for ineffective communication.

The TechnoKats are using LabVIEW. So far we've not had to do any camera programming, because the provided code works perfectly for tracking a well-lit target.
  #5   Spotlight this post!  
Unread 26-01-2010, 10:55
sloteera's Avatar
sloteera sloteera is offline
Registered User
AKA: Rafa
FRC #1860 (Cephatron)
Team Role: Coach
 
Join Date: Mar 2007
Rookie Year: 2004
Location: Brazil
Posts: 190
sloteera has much to be proud ofsloteera has much to be proud ofsloteera has much to be proud ofsloteera has much to be proud ofsloteera has much to be proud ofsloteera has much to be proud ofsloteera has much to be proud ofsloteera has much to be proud ofsloteera has much to be proud ofsloteera has much to be proud of
Re: Programming the Camera

Quote:
Originally Posted by Jordan2389Diaz View Post
Our camera is not tracking the target so want do we do?
Can you see some image on the dashboard when the program is running???
  #6   Spotlight this post!  
Unread 13-02-2010, 13:46
seathroath seathroath is offline
Registered User
FRC #2051
 
Join Date: Jan 2010
Location: A.W. Beattie Tech
Posts: 4
seathroath is an unknown quantity at this point
Re: Programming the Camera

! am a programmer for team 2051(beattie bulldogs) and we are not getting either an image on our dashboard or the camera to track the target. We are using the test code, but a new camera because our old one was broken. Might that have an effect on the program?
__________________
Steps to a Successful Program
1. Load labview software
2. Try to build program
3. Fail to save program on cRIO
4. Look on internet for help
5. Throw chair
6. Drop computer out window
7. Hate life
8. Want to strangle your mentor
9. Find help on internet
10. Program works!
Don't skip steps 5-8, they are important for success
  #7   Spotlight this post!  
Unread 13-02-2010, 15:08
arthurlockman's Avatar
arthurlockman arthurlockman is offline
Team Captain
FRC #0172 (Northern Force)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2009
Location: Gorham, ME
Posts: 29
arthurlockman is an unknown quantity at this point
Send a message via AIM to arthurlockman
Re: Programming the Camera

Our team had the same problem. Only using Java for our runtime environment. We switched over to C++, and everything worked fine. If anyone is still having this problem, try re-imaging your cRIO, switching to C++ or messing with WindRiver's config. We did have trouble with WindRiver compiling, but finally got the problem to resolve itself. It is annoying, and believe me, if it breaks again, I will destroy the camera once and for all.
  #8   Spotlight this post!  
Unread 13-02-2010, 19:57
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: Programming the Camera

I know/hope you are joking about destroying the camera since giving it to another team would hopefully be more rewarding and more beneficial for everyone.

Also, I'm not sure why you are blaming the camera. The camera is running a web server, and no team or even WPI code runs on it. All of the code is running on the cRIO or in the dashboard.

Greg McKaskle
  #9   Spotlight this post!  
Unread 15-02-2010, 17:28
mutantblond mutantblond is offline
Registered User
FRC #2523
 
Join Date: Sep 2008
Location: st. johnsbury, vt
Posts: 43
mutantblond is an unknown quantity at this point
Re: Programming the Camera

well, we can't seem camera images on the Dashboard, but can see images without the Dashboard.
  #10   Spotlight this post!  
Unread 15-02-2010, 17:47
nealpatel nealpatel is offline
Registered User
FRC #1777
 
Join Date: Jan 2010
Location: Lenexa, KS
Posts: 8
nealpatel is an unknown quantity at this point
Re: Programming the Camera

we can see the images from the camera but i don't know how do i track the traget?

could anybody please help me. we use java and i am one of the programmers of Team 1777.

your help would be really appreciated.

thanks.
  #11   Spotlight this post!  
Unread 15-02-2010, 19:06
EthanMiller EthanMiller is offline
Lead Programmer
AKA: Socks
FTC #4356 (The Zip Ties)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2009
Location: Clayton, NY
Posts: 121
EthanMiller has a spectacular aura aboutEthanMiller has a spectacular aura aboutEthanMiller has a spectacular aura about
Re: Programming the Camera

If you look through the CircleTracker demo (It's one of the FRC examples), it gives you what you need.

You'll need the UpdateVisionDashboard.java (I think, still figuring it all out) and the Target.java files copied into your project, then you'll need to work out the code in the TeleOp section of the CircleTracker Demo to see what needs to go in the Autonomous section of your code, assuming you're building autonomous.

Be sure to kill the If statement surrounding the thing and checking for the trigger, or it won't work.

I also recommend reading through all of the files to figure out what they do - translating each line/set of lines into English helps.
__________________
When all else fails, read the manual.

FRC 1713 K Island Gears 2009, 2010 (Not 2011 due to budget, hopefully 2012!) - Fingerlakes Regional

FTC 4356 The Zip Ties 2010-2011 Season - NNYRC (2010 9th seed).
  #12   Spotlight this post!  
Unread 19-02-2010, 09:24
arthurlockman's Avatar
arthurlockman arthurlockman is offline
Team Captain
FRC #0172 (Northern Force)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2009
Location: Gorham, ME
Posts: 29
arthurlockman is an unknown quantity at this point
Send a message via AIM to arthurlockman
Re: Programming the Camera

If you're programming on Java with the camera, there may not be examples in the documentation. At least in the version of the programming documentation that we have, there are no vision examples for Java in the docs. There may be an update, but our team does not have it. This forced us to switch to C++ from Java, which is a whole problem of its own. I imagine that the examples from C++ could be easily turned into Java, so you might want to give that a try. I haven't tried it myself, so I can't say whether it is easy or not.
  #13   Spotlight this post!  
Unread 22-02-2010, 11:49
Jordan2389Diaz's Avatar
Jordan2389Diaz Jordan2389Diaz is offline
Grant me your power...Verto
FRC #2389 (Pirate Robotics)
Team Role: Tactician
 
Join Date: Jan 2010
Rookie Year: 2009
Location: Drumright Central Tech
Posts: 50
Jordan2389Diaz can only hope to improve
Re: Programming the Camera

Is there anyone who is having problem programming their camera?
__________________
Lord is my Shepherd I shall not want-Psalms 23


  #14   Spotlight this post!  
Unread 22-02-2010, 17:23
JAZAD1's Avatar
JAZAD1 JAZAD1 is offline
Assisant Coach
AKA: Zach
FTC #4105 (Teal Toranadoes)
Team Role: Coach
 
Join Date: Nov 2007
Rookie Year: 2007
Location: Glen Alen, Va
Posts: 47
JAZAD1 has a spectacular aura aboutJAZAD1 has a spectacular aura about
Re: Programming the Camera

I'm one of the programmers on Team 1086 and I don't necessarily have a problem with the camera, but have a problem with the loop.

I put my drive code in the CircleTrackerDemo code, hoping it would combine them both and the camera and the drive code would work. But I ran it and it's only staying in the try and catch loops.

Any ideas on where to put the drive code? Or how to resolve this problem a different way?
__________________

2010 IRI FRC Second Place Finisher
2010 International Championship Coopertition (Galileo)
2010 International Championship #1 Seed (Galileo)
2010 NC FRC Motorola Quality Award
2010 NC FRC Regional Winner
2010 VA FRC Regional Winner
2010 VA FRC Engineering Inspiration
2009 VA (S) FTC Inspire Award
2009 VA(S) FTC Division Finalist
2009 VA FTC PTC Desgin Award
2009 International Championship Spirit Award
2009 VA FRC Regional Champion
2009 VA Regional Chairman's Award
2009 VA Website Excellence
2008 VA FTC Regional Champion
2008 VA FRC Regional Champion
2008 VA Regional Chairman's Award
2008 VA FTC Regional Champion
2008 VA Xerox Creativity
  #15   Spotlight this post!  
Unread 22-02-2010, 18:43
whodatbat's Avatar
whodatbat whodatbat is offline
Astrotrumpetplayer
AKA: Astrotrumpetplayer
FRC #0021 (ComBBat21)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2009
Location: Titusville, Flordia
Posts: 17
whodatbat is an unknown quantity at this point
Send a message via ICQ to whodatbat
Re: Programming the Camera

try this. its a simple camera code maybe it will help?

HSLImage image; // Create and set up a camera instance AxisCamera

&camera = AxisCamera::getInstance(); camera.writeResolution(k160x120);

camera.writeBrightness(0); Wait(3.0); // loop getting images from the

camera and finding targets while (IsOperatorControl())

{ // Get a camera

image camera.GetImage(image.image);

// do something with image here . . . }
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 the axis camera...... programmr C/C++ 10 11-01-2009 12:23
Programming Camera in Easy C Chief Samwize Programming 3 19-05-2007 20:37
Camera Programming railerobotics Programming 2 04-10-2006 21:59
Camera Help (New to Camera Programming) Idaman323 Programming 6 14-01-2006 03:56
Should there be a section for the 'camera' under 'Programming' Bharat Nain CD Forum Support 6 25-01-2005 22:23


All times are GMT -5. The time now is 01:19.

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