Go to Post Before joining FIRST, I sure wanted to be SUPERMAN or SPIDER MAN!....but after joining FIRST, I realized that there are other ways I can help people and the world. - RoboMadi [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 17-02-2011, 16:43
mv2112's Avatar
mv2112 mv2112 is offline
Derpologist
AKA: Mike
FRC #3044 (0xBE4)
Team Role: Programmer
 
Join Date: Oct 2010
Rookie Year: 2010
Location: New York
Posts: 10
mv2112 is an unknown quantity at this point
Axis Camera without the cRIO

We are trying to view image data on the dashboard without runing it through the cRIO for lag reasons, is this possible? If so, how can it be accomplished? I can access the cam through the router and it has an IP similar to the robot's(10.30.44.19), How could we set this up?

Thanks!
  #2   Spotlight this post!  
Unread 17-02-2011, 18:05
sjspry sjspry is offline
Registered User
FRC #1984
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Kansas
Posts: 125
sjspry has a spectacular aura aboutsjspry has a spectacular aura aboutsjspry has a spectacular aura about
Re: Axis Camera without the cRIO

You can view it from a standard web browser, or you could find a way to display it via your favorite language. (I'd suggest removing the password, though)


If you do use a language to access the camera, I would suggest bypassing the MJPEG stream and going for the still frame capture. I haven't noticed any detriment in image speed and it was easier to set up.
  #3   Spotlight this post!  
Unread 17-02-2011, 19:23
byteit101's Avatar
byteit101 byteit101 is offline
WPILib maintainer (WPI)
AKA: Patrick Plenefisch
no team (The Cat Attack (Formerly))
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Worcester
Posts: 699
byteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of light
Re: Axis Camera without the cRIO

I am able to successfully parse the MJPEG stream for ZomB, you can use ZomB or look at the source in ZomBdll\NetAndDataProcessing\Video\MJpegStream.cs
__________________
Bubble Wrap: programmers rewards
Watchdog.Kill();
printf("Watchdog is Dead, Celebrate!");
How to make a self aware robot: while (∞) cout<<(sqrt(-∞)/-0);
Previously FRC 451 (The Cat Attack)
Now part of the class of 2016 at WPI & helping on WPILib
  #4   Spotlight this post!  
Unread 17-02-2011, 20:35
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,753
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Axis Camera without the cRIO

The NI site contains a tutorial showing how to display camera MJPG images on the dashboard. The link is http://decibel.ni.com/content/docs/DOC-15144.

Greg McKaskle
  #5   Spotlight this post!  
Unread 21-02-2011, 12:41
tux tux is offline
Registered User
AKA: Lee Harr
FRC #3842 (Shock-a-Bots)
Team Role: Mentor
 
Join Date: Apr 2005
Rookie Year: 2005
Location: Rochester, NY
Posts: 91
tux is an unknown quantity at this point
Re: Axis Camera without the cRIO

Quote:
The NI site contains a tutorial showing how to display camera MJPG images on the dashboard. The link is http://decibel.ni.com/content/docs/DOC-15144.
I followed this tutorial, and I created a new FRC Dashboard Project. Now how do I make this new dashboard be the one that comes up when I launch the driver station (or log in as driver)?

(Maybe this is a dumb question... I don't actually have access to the robot now to test if the video is showing in the window. Is there only ever 1 dashboard, and creating a new Dashboard Project it makes it the one?)
  #6   Spotlight this post!  
Unread 21-02-2011, 13:22
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 without the cRIO

Quote:
Originally Posted by tux View Post
Now how do I make this new dashboard be the one that comes up when I launch the driver station (or log in as driver)?
Either rename it and copy it over to replace the original Dashboard, or change the Driver Station configuration file to point to the new one.

We don't do software development on the Classmate, so we have to copy the compiled program from our programming computer. We got tricky and used Windows file sharing to make the folder on the Classmate containing the Dashboard program available on the network. A simple change to the build specification can put the .exe file in the right place automatically.
  #7   Spotlight this post!  
Unread 14-04-2011, 12:44
grambo's Avatar
grambo grambo is offline
Registered User
AKA: Jonathan
FRC #0238 (Cruisin' Crusaders)
Team Role: Mentor
 
Join Date: Oct 2008
Rookie Year: 2008
Location: Manchester, NH
Posts: 16
grambo is an unknown quantity at this point
Re: Axis Camera without the cRIO

I've the same headache, I've never actually used Labview... How do I take the modified Labview project from my development PC and get it over to my classmate? Is there a tutorial somewhere? I feel like I'm missing something basic, like an 'export' or 'deploy' button or something.
Thanks in advance.
  #8   Spotlight this post!  
Unread 14-04-2011, 13:10
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,856
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Axis Camera without the cRIO

You'll need to create an .exe for your dashboard under Build Specifications, then that can be copied to your Classmate.

Here are three different methods of doing this:

1) If you're developing the dashboard on the same machine:
  • Go under Build Specifications
  • Right-click on FRC PC Dashboard
  • Select Properties
  • Change "Target filename" to "Dashboard.exe"
  • Change "Destination directory" to "C:\Program Files\FRC Dashboard"

    Then when you build, your .exe will replace the existing Dashboard every time.
2) If you're developing elsewhere then you can just copy the exe to the FRC Dashboard directory.

3) Give it a unique name and change the Driver Station ini to point to your Dashboard.
  • In the file: C:\Documents and Settings\All Users\Shared Documents\FRC\FRC DS Data Storage.ini
  • Edit the line: DashboardCmdLine=""C:\\Program Files\\FRC Dashboard\\Dashboard.exe"" to point to your dashboard. (be sure to preserve the double slashes in the filename path).
You can combine with method 1) above and give your Dashboard a custom name while having it build right where it's needed.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 14-04-2011 at 13:14.
  #9   Spotlight this post!  
Unread 14-04-2011, 14:59
PatJameson PatJameson is offline
Registered User
FRC #0011 (MORT)
Team Role: Alumni
 
Join Date: Mar 2011
Rookie Year: 2011
Location: USA
Posts: 16
PatJameson is on a distinguished road
Re: Axis Camera without the cRIO

This may help. Or not. Either way, I'll post this:

http://dl.dropbox.com/u/922232/AxisCamera.java
http://dl.dropbox.com/u/922232/Camera.java
  #10   Spotlight this post!  
Unread 15-04-2011, 10:25
grambo's Avatar
grambo grambo is offline
Registered User
AKA: Jonathan
FRC #0238 (Cruisin' Crusaders)
Team Role: Mentor
 
Join Date: Oct 2008
Rookie Year: 2008
Location: Manchester, NH
Posts: 16
grambo is an unknown quantity at this point
Re: Axis Camera without the cRIO

Thanks, we got it working last night, one more item that we noticed was that nothing seemed to work until we changed user "root"'s password to "admin" instead of the default "pass". I saw that in an a single pdf of the 5 or so instructional pdf's on setting up the camera.
Thanks again!
  #11   Spotlight this post!  
Unread 15-04-2011, 16:46
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,753
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Axis Camera without the cRIO

By default, the camera requires authentication for requests such as grabbing an image. Your options are to add an account such as FRC:FRC, and duplicate the authentication data, make a different account such as root:??? and duplicate that authentication data, or if you look for it, you can also turn on the camera's anonymous access and don't bother with authentication.

The LV VIs will repeat through up to three authentication requests or FRC:FRC, root:admin, and root$@#$@#$@# and then it will give up and return an error. I'm not sure about the java code.

Greg McKaskle
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


All times are GMT -5. The time now is 23:36.

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