Go to Post Congratulations! You have been successful! You got what you wished for! Now get to work. - gblake [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 22-01-2012, 01:27
4057programmer 4057programmer is offline
Registered User
FRC #4057
 
Join Date: Jan 2012
Location: Klamath Falls
Posts: 37
4057programmer is an unknown quantity at this point
axis camera crash course

I am the only programmer two years running now with no mentor to help me out. Last year I managed to scrap together enough code to get a robot to drive, but this year our team wants a camera on it. I have spent hours sifting through information from chief delphi and the documents provided in windriver, but still I cannot get coding to simply get a feed of video from the camera working. I am asking for a very basic, but complete list of all the code that I need to get a camera to send images to the dashboard. If anyone can help me and my team would be greatly appreciative.
__________________
Team 4057: Autodesk regional Rookie All-stars!

If it's not on fire, its programming. If it compiles, it's electrical
Reply With Quote
  #2   Spotlight this post!  
Unread 22-01-2012, 01:46
bob.wolff68's Avatar
bob.wolff68 bob.wolff68 is offline
Da' Mentor Man
FRC #1967
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2007
Location: United States
Posts: 157
bob.wolff68 is just really nicebob.wolff68 is just really nicebob.wolff68 is just really nicebob.wolff68 is just really nicebob.wolff68 is just really nice
Re: axis camera crash course

Just an opinion from a mentor here... if you're looking to simply get the camera to send images back to the dashboard during teleop, this is likely ok. If, on the other hand, you're looking to do vision tracking of the targets, that's a LOT more involved for a 2nd year programmer with no mentor.

What is the goal outside of the statement that the team wants the camera onboard? :-)

bob
Reply With Quote
  #3   Spotlight this post!  
Unread 22-01-2012, 02:24
4057programmer 4057programmer is offline
Registered User
FRC #4057
 
Join Date: Jan 2012
Location: Klamath Falls
Posts: 37
4057programmer is an unknown quantity at this point
Re: axis camera crash course

yes. the team wants a camera onboard. not the vision tracking yet. It would be the ultimate goal, but they understand that that wont happen this year.
__________________
Team 4057: Autodesk regional Rookie All-stars!

If it's not on fire, its programming. If it compiles, it's electrical
Reply With Quote
  #4   Spotlight this post!  
Unread 22-01-2012, 02:32
bob.wolff68's Avatar
bob.wolff68 bob.wolff68 is offline
Da' Mentor Man
FRC #1967
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2007
Location: United States
Posts: 157
bob.wolff68 is just really nicebob.wolff68 is just really nicebob.wolff68 is just really nicebob.wolff68 is just really nicebob.wolff68 is just really nice
Re: axis camera crash course

Meant to ask earlier...

Which language?

C++
Java
LabView

bob
Reply With Quote
  #5   Spotlight this post!  
Unread 22-01-2012, 11:05
RufflesRidge RufflesRidge is offline
Registered User
no team
 
Join Date: Jan 2012
Location: USA
Posts: 989
RufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant future
Re: axis camera crash course

Language doesn't matter. No robot code is required to send camera images to the Dashboard. Follow the instructions for setting up the camera in the Getting Started with the 2012 Control System Guide, plug the camera into your D-Link radio with a patch (not crossover) cable and you should be all set.
Reply With Quote
  #6   Spotlight this post!  
Unread 22-01-2012, 12:32
cjlane1138 cjlane1138 is offline
Team 1138
FRC #1138 (Eagle Engineering)
Team Role: Leadership
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Los Angeles
Posts: 88
cjlane1138 is an unknown quantity at this point
Re: axis camera crash course

C++:
Code:
AxisCamera &camera = AxisCamera::GetInstance();
-Eagle Engineering 1138
__________________
Eagle Engineering 1138
Reply With Quote
  #7   Spotlight this post!  
Unread 22-01-2012, 12:34
RufflesRidge RufflesRidge is offline
Registered User
no team
 
Join Date: Jan 2012
Location: USA
Posts: 989
RufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant future
Re: axis camera crash course

Quote:
Originally Posted by cjlane1138 View Post
C++:
Code:
AxisCamera &camera = AxisCamera::GetInstance();
-Eagle Engineering 1138
That's to get the image on the cRIO and is not needed to get the image on the Dashboard.
Reply With Quote
  #8   Spotlight this post!  
Unread 22-01-2012, 13:33
4057programmer 4057programmer is offline
Registered User
FRC #4057
 
Join Date: Jan 2012
Location: Klamath Falls
Posts: 37
4057programmer is an unknown quantity at this point
Re: axis camera crash course

So in order to get footage to the dashboard all I had to do was plug it in and leave it? Then what is the point of that line of code AxisCamera::AxisCamera.GetImage(); ? I thought that you needed all of that code to get the crio to send images to the dashboard.

I am doing all this code in c++
__________________
Team 4057: Autodesk regional Rookie All-stars!

If it's not on fire, its programming. If it compiles, it's electrical

Last edited by 4057programmer : 22-01-2012 at 13:35. Reason: Didn't answer a question asked to me
Reply With Quote
  #9   Spotlight this post!  
Unread 22-01-2012, 14:22
RufflesRidge RufflesRidge is offline
Registered User
no team
 
Join Date: Jan 2012
Location: USA
Posts: 989
RufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant future
Re: axis camera crash course

Quote:
Originally Posted by 4057programmer View Post
So in order to get footage to the dashboard all I had to do was plug it in and leave it? Then what is the point of that line of code AxisCamera::AxisCamera.GetImage(); ? I thought that you needed all of that code to get the crio to send images to the dashboard.

I am doing all this code in c++
That code gets the image on your cRIO, for if you want to use the cRIO to process the image. An example of why you would want to do that would be to look for the targets.
Reply With Quote
  #10   Spotlight this post!  
Unread 22-01-2012, 14:32
4057programmer 4057programmer is offline
Registered User
FRC #4057
 
Join Date: Jan 2012
Location: Klamath Falls
Posts: 37
4057programmer is an unknown quantity at this point
Re: axis camera crash course

I did not know that. hours of staring at code was really for nothing then huh? if all I had to do was simply plug it in. Thanks for your help and at our meeting today I should hopefully have some good news.
__________________
Team 4057: Autodesk regional Rookie All-stars!

If it's not on fire, its programming. If it compiles, it's electrical
Reply With Quote
  #11   Spotlight this post!  
Unread 22-01-2012, 16:38
4057programmer 4057programmer is offline
Registered User
FRC #4057
 
Join Date: Jan 2012
Location: Klamath Falls
Posts: 37
4057programmer is an unknown quantity at this point
Re: axis camera crash course

I went to the meeting and tried to run the camera through the 8 slot crio with no coding for it at all. we dont have the router hooked up to the robot so we were just using a standard line right to the notebook. I couldnt get an image at all. What am I doing wrong?
__________________
Team 4057: Autodesk regional Rookie All-stars!

If it's not on fire, its programming. If it compiles, it's electrical
Reply With Quote
  #12   Spotlight this post!  
Unread 22-01-2012, 17:27
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: axis camera crash course

Quote:
Originally Posted by 4057programmer View Post
I went to the meeting and tried to run the camera through the 8 slot crio with no coding for it at all. we dont have the router hooked up to the robot so we were just using a standard line right to the notebook. I couldnt get an image at all. What am I doing wrong?
What are you doing wrong? You don't have the router connected, that's what you're doing wrong.

In order for the Dashboard to display images from the camera, it needs to be able to receive images from the camera. That means the computer running the Dashboard program (your Driver Station notebook) needs a network connection to the camera. If you don't have the camera plugged into the router, you don't have a network connection to it.

It is possible to connect the camera to the 8-slot cRIO's second Ethernet port, but you have to run special code on the robot to read the camera and forward the images to the Dashboard, and you have to modify the Dashboard program to read the images from the cRIO instead of directly from the camera.
Reply With Quote
  #13   Spotlight this post!  
Unread 23-01-2012, 02:17
bob.wolff68's Avatar
bob.wolff68 bob.wolff68 is offline
Da' Mentor Man
FRC #1967
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2007
Location: United States
Posts: 157
bob.wolff68 is just really nicebob.wolff68 is just really nicebob.wolff68 is just really nicebob.wolff68 is just really nicebob.wolff68 is just really nice
Re: axis camera crash course

I'll add that in order to NOT plug the camera into port-2 of the 8-slot cRio, the camera must be reconfigured. The Axis Config program is intended to do this, but it seems it may be a bit buggy. Sigh. (That's what I'm reading on the boards here and seems to be what I'm seeing as well). So, the camera will need to have it's IP address changed to the form 10.xx.yy.11 where xxyy is your team number. I think there needs to be a username of "FRC" with a password of "FRC" as well but don't hold me to that one. ;-)

Once this is done, the camera will be able to sit plugged into the wireless router on the robot and you should be able to "ping 10.xx.yy.11" from the PC. If all this checks out...then you should be good on the reconfig of the camera.

bob
Reply With Quote
  #14   Spotlight this post!  
Unread 23-01-2012, 18:31
4057programmer 4057programmer is offline
Registered User
FRC #4057
 
Join Date: Jan 2012
Location: Klamath Falls
Posts: 37
4057programmer is an unknown quantity at this point
Re: axis camera crash course

thanks for your help. I will definitely get to doing that today.
__________________
Team 4057: Autodesk regional Rookie All-stars!

If it's not on fire, its programming. If it compiles, it's electrical
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


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

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