Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Axis Camera Stream without cRIO (http://www.chiefdelphi.com/forums/showthread.php?t=102369)

nighterfighter 09-02-2012 14:22

Axis Camera Stream without cRIO
 
Hi guys-

We have 2 Axis Cameras this year, one connected through the bridge to the cRIO for image processing, and we plan on using the other one for a live stream for driving assistance.

How do we set this up, so even if the cRIO isn't powered we could still view the stream in the driver station?

Mark McLeod 09-02-2012 15:33

Re: Axis Camera Stream without cRIO
 
Put one camera on 10.17.71.11
The other on 10.17.71.12

Plug both into the DLink.
Devise a way to give both 5v power feeds on the robot.

Create a Dashboard project and change the camera IP address to 10.17.71.12
If you want both cameras displayed on the Dashboard, then you can duplicate the code for the original camera and change that IP address to the 2nd camera.

DavidGitz 09-02-2012 15:53

Re: Axis Camera Stream without cRIO
 
One camera with the .11 address is all you need to give you all these features. The live stream on your dashboard is independent of the crio.

~Cory~ 09-02-2012 16:20

Re: Axis Camera Stream without cRIO
 
BTW, you can have a batch script that runs when the classmate logs in that pulls up internet explorer. Then just set the homepage to the webcam that you want to use for drive.

If the cameras are in the same position you are much better off just using one and piping the results back to the driver station after processing, as said in the post above.

Be weary of port rules. There are a couple of threads explaining odd network setups and rules that follow. Also the camera takes up a lot of bandwitdth...

nighterfighter 09-02-2012 17:05

Re: Axis Camera Stream without cRIO
 
Quote:

Originally Posted by Mark McLeod (Post 1123191)
Put one camera on 10.17.71.11
The other on 10.17.71.12

Plug both into the DLink.
Devise a way to give both 5v power feeds on the robot.

Create a Dashboard project and change the camera IP address to 10.17.71.12
If you want both cameras displayed on the Dashboard, then you can duplicate the code for the original camera and change that IP address to the 2nd camera.

Thanks, I set the IP to be 10.17.71.12, with a default gateway of 255.255.255.0 One other field it asked for was the default router- it was originally 192.168.0.1, so I set it to be 10.17.71.1, would that be correct?

Also, we don't know LabView very much, (we can open the program and pull up an example), how do you change the value on the camera dashboard?

Thanks!

Greg McKaskle 09-02-2012 18:40

Re: Axis Camera Stream without cRIO
 
To modify the dashboard, launch LabVIEW and on the intro screen, choose to make a dashboard from the template. After it opens, you can add any indicators you like including duplicating the vision display and the loop that reads the second camera. You also need to update the IP for the second loop.

Greg McKaskle

Mark McLeod 09-02-2012 18:53

Re: Axis Camera Stream without cRIO
 
Hard to describe if you don't even know the basics of how to wire in LabVIEW.
  1. Create a Dashboard project
  2. Open the Dashboard Main.vi block diagram
  3. The camera section is in the middle with a vi called Camera-Read MJPG
  4. There is a pink wire going into that vi holding the camera address
    1. Double-click on the wire and delete it
    2. Position your cursor over the vi's input node for "address"
    3. right-click and choose Create -> Constant
    4. You should get a box that says 10.te.am.11
    5. Change that to 10.17.71.12
  5. Now comes the tricky part creating a new Dashboard
    1. Go back to the Project Explorer window
    2. At the bottom you'll see Build Specifications
    3. Expand that and you'll see FRC PC Dashboard
    4. Right-click and choose Properties
      1. Either remember where the Destination Directory is so you can try out your Dashboard afterwards, or change the path to the default location of the FRC Dashboard.
      2. Changing it is a little backwards,
        1. Browse to the Dashboard default location on your local disk C:\Program Files\FRC Dashboard (may be Program Files (x86) )
        2. You will have to enter an "x" as the file name once you get to the proper folder
        3. Back at the Properties screen edit the path directly to remove the x from the directory path
        4. Click OK
    5. Back at Build Specifications you should be able to right-click and Build
    6. Restart your Dashboard to see if you got it

DavidGitz 09-02-2012 19:28

Re: Axis Camera Stream without cRIO
 
Quote:

Originally Posted by nighterfighter (Post 1123248)
Thanks, I set the IP to be 10.17.71.12, with a default gateway of 255.255.255.0 One other field it asked for was the default router- it was originally 192.168.0.1, so I set it to be 10.17.71.1, would that be correct?

Are your cameras pointed in different directions? I assume that is the only reason to have more than 1.

cmwilson13 09-02-2012 23:10

Re: Axis Camera Stream without cRIO
 
yes one is for tracking one for driving, pointed in different directions. don't want to load up the c-rio with the driving camera.

Patrick Chiang 10-02-2012 15:53

Re: Axis Camera Stream without cRIO
 
A simple way to do this is to just navigate to the IP of the camera (10.17.71.12) in your browser.

Last year, we did this at the last minute for the camera aiming the minibot, and for aiming the minibot launcher, we just stuck a piece of black electrical tape on the computer monitor for aiming.

ianonavy 11-02-2012 00:00

Re: Axis Camera Stream without cRIO
 
Quote:

Originally Posted by nighterfighter (Post 1123248)
Thanks, I set the IP to be 10.17.71.12, with a default gateway of 255.255.255.0 One other field it asked for was the default router- it was originally 192.168.0.1, so I set it to be 10.17.71.1, would that be correct?

Also, we don't know LabView very much, (we can open the program and pull up an example), how do you change the value on the camera dashboard?

Thanks!

I'm pretty sure the gateway should be 255.0.0.0. That's what we set all of our development machines to. Also, which camera did you set to 10.17.71.12? I recommend you use the tracker camera for that IP address because 10.17.71.11 automatically goes to the default dashboard without any configuration. Don't forget that you need two AxisCamera objects in your code, and that if you're not using the default IP address for your camera, you need to pass that IP address to the AxisCamera.getInstance or AxisCamera::GetInstance method/function.


All times are GMT -5. The time now is 00:52.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi