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
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
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.
So what are the IP settings? Do I have to access port #2 on the cRio?
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.
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
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
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).
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.