Go to Post "We used to shut the robot up in a box and send it away from home. Now we just suffocate it." - GaryVoshol [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 07-01-2009, 13:00
programmr's Avatar
Happy Birthday! programmr programmr is offline
Registered User
AKA: Face
FRC #0522
Team Role: Programmer
 
Join Date: Jan 2008
Rookie Year: 2006
Location: Staten Island, NY
Posts: 83
programmr is a jewel in the roughprogrammr is a jewel in the roughprogrammr is a jewel in the rough
Send a message via AIM to programmr
Question Programming the axis camera......

hello, Let's just say i would like the axis camera to drive two motors connected to the digital side car pwm 1 and 2. I want the camera to follow the color. How do i do this using WindRiver? Which template should i open and how do i program this to happen? Please help me! Any help would be greatly appreciated!
__________________
"I would love to change the world but no one will give me the source code"
Reply With Quote
  #2   Spotlight this post!  
Unread 07-01-2009, 15:39
kyungjin kyungjin is offline
Software Specialist
AKA: Daniel
VRC #0646
Team Role: Programmer
 
Join Date: Aug 2008
Rookie Year: 2009
Location: Honolulu, Hawaii
Posts: 65
kyungjin is an unknown quantity at this point
Send a message via AIM to kyungjin Send a message via MSN to kyungjin
Re: Programming the axis camera......

I'm not quite sure if there is a set template that already has precompiled code like that... But I could be wrong...

If you do come across code like that (we might try something similar or would like to mess with a copy of the code...) a PM or email would be much appreciated.

I'll keep you posted with any information I get regarding this...

P.S. Just a side note... But did you even get the camera correctly configured when its connected to the cRIO?
Reply With Quote
  #3   Spotlight this post!  
Unread 07-01-2009, 18:14
programmr's Avatar
Happy Birthday! programmr programmr is offline
Registered User
AKA: Face
FRC #0522
Team Role: Programmer
 
Join Date: Jan 2008
Rookie Year: 2006
Location: Staten Island, NY
Posts: 83
programmr is a jewel in the roughprogrammr is a jewel in the roughprogrammr is a jewel in the rough
Send a message via AIM to programmr
Exclamation Re: Programming the axis camera......

Yes, i did get the camera configured correctly, but im having some issues understanding how the program works.. or if i can write a more simple program for it.
__________________
"I would love to change the world but no one will give me the source code"
Reply With Quote
  #4   Spotlight this post!  
Unread 07-01-2009, 21:40
gr8dragon's Avatar
gr8dragon gr8dragon is offline
Registered User
AKA: Parth Patel
no team
Team Role: Alumni
 
Join Date: Dec 2008
Rookie Year: 2006
Location: Toronto,Canada
Posts: 39
gr8dragon is a glorious beacon of lightgr8dragon is a glorious beacon of lightgr8dragon is a glorious beacon of lightgr8dragon is a glorious beacon of lightgr8dragon is a glorious beacon of light
Re: Programming the axis camera......

The update for windriver that was launched after kickoff comes with a template in it. Open the "new" drop down menu and click example and you should find it there.
Reply With Quote
  #5   Spotlight this post!  
Unread 07-01-2009, 23:54
kyungjin kyungjin is offline
Software Specialist
AKA: Daniel
VRC #0646
Team Role: Programmer
 
Join Date: Aug 2008
Rookie Year: 2009
Location: Honolulu, Hawaii
Posts: 65
kyungjin is an unknown quantity at this point
Send a message via AIM to kyungjin Send a message via MSN to kyungjin
Re: Programming the axis camera......

How did you configure the camera and how do you know it's getting recognized by the cRIO? I guess that's the problem we need to work out first cause the VisionDemo and the VisionServo programs didn't work.
Reply With Quote
  #6   Spotlight this post!  
Unread 08-01-2009, 10:59
Leon Canidae's Avatar
Leon Canidae Leon Canidae is offline
Official Insanity
FRC #1742 (Shockwave)
Team Role: CAD
 
Join Date: Jan 2008
Rookie Year: 2006
Location: MNTC
Posts: 8
Leon Canidae is an unknown quantity at this point
Send a message via MSN to Leon Canidae
Re: Programming the axis camera......

We, team 1742, are having trouble getting a feed from the camera via the cRIO. we have been able to get the camera to give us a feed while it is connected to the computer, but when we connect it to the cRIO...nothing. please help.
__________________
“Introduce a little anarchy, upset the established order, and everything becomes chaos, I’m an agent of chaos , and you know the thing about chaos? It’s fair.”
- The Joker
- "The Dark Knight"
Reply With Quote
  #7   Spotlight this post!  
Unread 09-01-2009, 08:16
woodk woodk is offline
Registered User
FRC #2809
 
Join Date: Jan 2009
Location: Kingston, Ontario, Canada
Posts: 31
woodk has a spectacular aura aboutwoodk has a spectacular aura aboutwoodk has a spectacular aura about
Question Re: Programming the axis camera......

Is anyone else having problems with the new camera code released Jan 1? It will not find any colour particles at all for me. I ended up reverting VisionAPI.cpp, VisionAPI.h and TrackAPI.cpp, TrackAPI.h to the old versions and it is now working again.

In answer to the question about camera servo tracking, there is an example called "FRC Vision-Servo Demonstration Program" that supposedly does this, although again, it did not work with the new VisionAPI and TrackAPI classes. I have not tried it with them reverted. There is also an example that drives towards the green, and one other example (can't remember what it does).
Reply With Quote
  #8   Spotlight this post!  
Unread 10-01-2009, 06:06
kyungjin kyungjin is offline
Software Specialist
AKA: Daniel
VRC #0646
Team Role: Programmer
 
Join Date: Aug 2008
Rookie Year: 2009
Location: Honolulu, Hawaii
Posts: 65
kyungjin is an unknown quantity at this point
Send a message via AIM to kyungjin Send a message via MSN to kyungjin
Re: Programming the axis camera......

After much tinkering, we finally got the camera doing what we wanted it to do.

The best camera output you're going to get will be to have your camera track the colors and output the data to a console (i.e. center of gravity, etc.)

Other than that, I'm not quite sure how you're going to stream live video from the cRIO...

Last edited by kyungjin : 11-01-2009 at 03:59.
Reply With Quote
  #9   Spotlight this post!  
Unread 10-01-2009, 23:41
woodk woodk is offline
Registered User
FRC #2809
 
Join Date: Jan 2009
Location: Kingston, Ontario, Canada
Posts: 31
woodk has a spectacular aura aboutwoodk has a spectacular aura aboutwoodk has a spectacular aura about
Re: Programming the axis camera......

Quote:
Originally Posted by kyungjin View Post
After much tinkering, we finally got the camera doing what we wanted it to do.

The best camera output you're going to get will be to have your camera track the colors and output the data to a console (i.e. center of gravity, etc.)

Other than that, I'm not quite sure how you're going to stream live video from pehin...
Did you get it working using the updated (Jan 1.) TrackAPI and VisionAPI? without modification?

Our code is working great with the older versions of those classes (using 2 servos to scan, find pink and green targets and track them if they are the right way round.). However, I couldn't get the updated classes to work.
Reply With Quote
  #10   Spotlight this post!  
Unread 11-01-2009, 04:02
kyungjin kyungjin is offline
Software Specialist
AKA: Daniel
VRC #0646
Team Role: Programmer
 
Join Date: Aug 2008
Rookie Year: 2009
Location: Honolulu, Hawaii
Posts: 65
kyungjin is an unknown quantity at this point
Send a message via AIM to kyungjin Send a message via MSN to kyungjin
Re: Programming the axis camera......

I'm pretty sure we're using the updated versions... But I'm not quite sure... If anything, I heard that they're updating the camera classes on the FIRST website sometime this week or next week... You could hold off on working on the camera till then...

But yeah... I'm not sure why the old program shouldn't be incompatible with the new updated classes...
Reply With Quote
  #11   Spotlight this post!  
Unread 11-01-2009, 12:23
DanDon's Avatar
DanDon DanDon is offline
ohhh MY god
AKA: Dan Hoizner
FRC #0375 (The Robotic Plague)
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2004
Location: Staten Island, NY
Posts: 1,432
DanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond repute
Send a message via ICQ to DanDon Send a message via AIM to DanDon Send a message via MSN to DanDon
Re: Programming the axis camera......

Quote:
Originally Posted by woodk View Post
Did you get it working using the updated (Jan 1.) TrackAPI and VisionAPI? without modification?

Our code is working great with the older versions of those classes (using 2 servos to scan, find pink and green targets and track them if they are the right way round.). However, I couldn't get the updated classes to work.
How did you revert the TrackAPI and VisionAPI files? I have the old files, and I think i might have managed to fix the new files, but I don't know how to get WindRiver to build using my files as opposed to the one in the update.
__________________
Reply With Quote
Reply


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
Axis camera without the cRIO CrazyCarl461 NI LabVIEW 12 17-01-2009 10:53
Problems with the Axis Camera popo308 FRC Control System 16 15-01-2009 19:38
Axis Camera responding in the Vision Assistant but not in WindRiver DanDon C/C++ 3 11-01-2009 12:50
Focusing the AXIS camera in LV Bryan Herbst Programming 3 03-01-2009 23:21
Getting feedback from Axis Camera?? *programming in C++* Straberrie Programming 3 01-01-2009 22:39


All times are GMT -5. The time now is 13:42.

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