Go to Post Something is subtly different about the competition environment that makes everything worse. - kaszeta [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 06-01-2009, 00:20
keehun's Avatar
keehun keehun is offline
Team Captain
AKA: Keehun Nam
FRC #2502 (EP Robotics)
Team Role: Leadership
 
Join Date: May 2008
Rookie Year: 2008
Location: Eden Priaire
Posts: 474
keehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond repute
Send a message via AIM to keehun
Axis cam problem

Hello,

It seems as if dashboard can acquire images fine from the Axis but NI Vision can not?! Do any of you have this problem? If so, how did you fix?

Team 1011 is reporting to have this problem a well. I'm from Team 2502

Thanks,
keehun
__________________
For by grace you have been saved through faith, and that not of yourselves; it is the gift of God, not of works, lest anyone should boast. -- Ephesians 2:8-9
2010: Quarter Finalist (MN 10,000 Lakes)
2010: Website Award (MN 10,000 Lakes)
2009: Quarter Finalist (MN 10,000 Lakes)
2009: GM Industrial Award (MN 10,000 Lakes)
  #2   Spotlight this post!  
Unread 06-01-2009, 00:45
virtuald's Avatar
virtuald virtuald is offline
RobotPy Guy
AKA: Dustin Spicuzza
FRC #1418 (), FRC #1973, FRC #4796, FRC #6367 ()
Team Role: Mentor
 
Join Date: Dec 2008
Rookie Year: 2003
Location: Boston, MA
Posts: 1,102
virtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant future
Re: Axis cam problem

It works fine for me. You have to remember that the Axis is on a different subnet than your PC -- and when you have it connected to the cRIO, you won't be able to connect to it directly.
__________________
Maintainer of RobotPy - Python for FRC
Creator of pyfrc (Robot Simulator + utilities for Python) and pynetworktables/pynetworktables2js (NetworkTables for Python & Javascript)

2017 Season: Teams #1973, #4796, #6369
Team #1418 (remote mentor): Newton Quarterfinalists, 2016 Chesapeake District Champion, 2x Innovation in Control award, 2x district event winner
Team #1418: 2015 DC Regional Innovation In Control Award, #2 seed; 2014 VA Industrial Design Award; 2014 Finalists in DC & VA
Team #2423: 2012 & 2013 Boston Regional Innovation in Control Award


Resources: FIRSTWiki (relaunched!) | My Software Stuff
  #3   Spotlight this post!  
Unread 06-01-2009, 01:09
keehun's Avatar
keehun keehun is offline
Team Captain
AKA: Keehun Nam
FRC #2502 (EP Robotics)
Team Role: Leadership
 
Join Date: May 2008
Rookie Year: 2008
Location: Eden Priaire
Posts: 474
keehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond repute
Send a message via AIM to keehun
Re: Axis cam problem

So what are the IP settings? Do I have to access port #2 on the cRio?
__________________
For by grace you have been saved through faith, and that not of yourselves; it is the gift of God, not of works, lest anyone should boast. -- Ephesians 2:8-9
2010: Quarter Finalist (MN 10,000 Lakes)
2010: Website Award (MN 10,000 Lakes)
2009: Quarter Finalist (MN 10,000 Lakes)
2009: GM Industrial Award (MN 10,000 Lakes)
  #4   Spotlight this post!  
Unread 06-01-2009, 01:43
whitetiger0990's Avatar
whitetiger0990 whitetiger0990 is offline
Registered User
no team
Team Role: Programmer
 
Join Date: Mar 2006
Rookie Year: 2006
Location: Earth
Posts: 157
whitetiger0990 is a glorious beacon of lightwhitetiger0990 is a glorious beacon of lightwhitetiger0990 is a glorious beacon of lightwhitetiger0990 is a glorious beacon of lightwhitetiger0990 is a glorious beacon of light
Re: Axis cam problem

The camera should be set to 192.168.0.90 and configured magically with the Setup Axis Camera program.

It must attach to the second port on the cRIO with a cross over cable (the orange one in the kit is the cable).

Are you speaking about the Vision Assistant? I'm not entirely sure what you mean when you say that NI Vision cannot get the image.

Attached below is the camera code from the Basic Robot Main.vi. it handles opening it and everything. The GetImage VI outputs the image which you can process with NI Vision FRC VIs.
__________________
print$q=chr(ord($q)+$1)while("7443-0201-8465130105-12-03135-82482113-06-7672-070208-0613-70"=~/(-?\d\d)/g);
  #5   Spotlight this post!  
Unread 06-01-2009, 06:14
Tanner's Avatar
Tanner Tanner is offline
Registered User
FRC #1261 (Roblions)
Team Role: Programmer
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Suwanee, GA
Posts: 311
Tanner is a splendid one to beholdTanner is a splendid one to beholdTanner is a splendid one to beholdTanner is a splendid one to beholdTanner is a splendid one to beholdTanner is a splendid one to behold
Re: Axis cam problem

I've gotten the camera to work with the computer, though I'm not exactly sure how to explain it. Here we go.

You must set the IP of your computer to something else like 192.168.0.91 (notice the 91 is not 90 - cause thats the camera). Then you should be able to do all the fun web browser settings and things once you connect the camera to your computer via a normal ethernet cable (no need for crossover). Then in Vision Assistant (this part from memory), you can goto Acquire, select from Axis Camera, and then from there you can get good STILL images. No live feed from Vision Assistant (though you can take a series of images).

Cheers
-Tanner
  #6   Spotlight this post!  
Unread 06-01-2009, 07:31
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: Axis cam problem

Okay wait... 2 things...

Err if you're setup is something like PC -> DSU -> Router -> Gaming Adapter -> cRIO ePort1 => cRIO ePort2 (camera) [where = simulates a crossover connection]... Doesn't the computer have to have it's IP settings set to 10.xx.yy.6 (where xx is the first two digits of your team number and yy is the last two digits of your team number) in order to connect to the cRIO?

So far... Our computer has been able to directly connect via Xover cable to the camera where we can test the live feed stuff in the browser, run the Setup Axis Camera and stream but not acquire and save pictures via NI Vision Assistant. Problem is... None of this happens if the camera is connected to the cRIO through ePort 2.

The second thing I want to ask is... Are we supposed to use NI Vision Assistant to handle the camera finding and tracking of colors and/or shapes? If so, how do we implement this and later change this into working C/C++ code (we're using WindRiver). If not, what programs are we supposed to use to control our camera functions?
  #7   Spotlight this post!  
Unread 06-01-2009, 18:55
Tanner's Avatar
Tanner Tanner is offline
Registered User
FRC #1261 (Roblions)
Team Role: Programmer
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Suwanee, GA
Posts: 311
Tanner is a splendid one to beholdTanner is a splendid one to beholdTanner is a splendid one to beholdTanner is a splendid one to beholdTanner is a splendid one to beholdTanner is a splendid one to behold
Re: Axis cam problem

Quote:
Originally Posted by kyungjin View Post
Okay wait... 2 things...

Err if you're setup is something like PC -> DSU -> Router -> Gaming Adapter -> cRIO ePort1 => cRIO ePort2 (camera) [where = simulates a crossover connection]... Doesn't the computer have to have it's IP settings set to 10.xx.yy.6 (where xx is the first two digits of your team number and yy is the last two digits of your team number) in order to connect to the cRIO?

So far... Our computer has been able to directly connect via Xover cable to the camera where we can test the live feed stuff in the browser, run the Setup Axis Camera and stream but not acquire and save pictures via NI Vision Assistant. Problem is... None of this happens if the camera is connected to the cRIO through ePort 2.

The second thing I want to ask is... Are we supposed to use NI Vision Assistant to handle the camera finding and tracking of colors and/or shapes? If so, how do we implement this and later change this into working C/C++ code (we're using WindRiver). If not, what programs are we supposed to use to control our camera functions?
The stuff I said in my previous post is assuming the camera is plugged into your computer. I have no idea how to get images from the robot without LabView. That said, your robot can't use it if its not plugged into the cRIO.

Your computer will not be able to gather images from the camera if the camera in plugged into the cRIO. If it is plugged into the cRIO, you can only get the images via LabView or however C/C++ does it. To get images on the computer, the camera must be plugged into the computer (as the network stuff on the robot blocks the small server included in the camera).

Vision Assistant takes a bit of getting used to (not as much as LabView, but just a bit). What I would do if you are unfamiliar with it is to start playing with any old image, then playing with Line Profile and Color Threshold. I know there is a LabView export function, but I cannot recall if there is a C/C++ export function (look in the Tools menu item).

Cheers
-Tanner
  #8   Spotlight this post!  
Unread 07-01-2009, 11:27
nickmagus's Avatar
nickmagus nickmagus is offline
Registered User
AKA: Nick Clayton
FRC #0008 (Paly Robotics)
Team Role: Programmer
 
Join Date: Dec 2007
Rookie Year: 2007
Location: Palo Alto, Califorinia
Posts: 56
nickmagus is an unknown quantity at this point
Send a message via AIM to nickmagus
Re: Axis cam problem

The WPI library has a class called PCVideoServer that allows you to send the video feed to your computer. Also the processing can be done right on the cRio with the TrackAPI class (which will be working next revision).
  #9   Spotlight this post!  
Unread 07-01-2009, 11:32
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: Axis cam problem

Is there some detailed documentation regarding all the functions of the WPI library? The ones I found at http://users.wpi.edu/~bamiller/WPIRoboticsLibrary/ doesn't seem to have anything on camera control, etc.
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
Anyone know how to get a live video feed from your axis cam? Jazonk FRC Control System 7 03-01-2009 20:08
3-Axis Joysticks qwertyuiop[]\ General Forum 12 29-12-2008 21:28
axis camera - problem s0crates FRC Control System 11 16-12-2008 09:34
Inverting x-axis jkjohnson Control System 8 22-02-2007 02:24
Different "Cam Suddenly Stops" Problem JohnC Programming 10 30-01-2007 21:37


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

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