Go to Post You must wear safety glasses at all times, so please bring them. - Don Wright [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 02-27-2012, 07:23 PM
agentace agentace is offline
Registered User
FRC #2522
 
Join Date: Feb 2010
Location: Lynnwood High School
Posts: 8
agentace is an unknown quantity at this point
1M1011 Camera help

I have been trying to get the camera to show up in the driver station feed for about a week now, but it is still not showing up. I am using C++ and have opened up the camera declaration, I have set up the Axis camera using the tool, and tried both the second cRIO slot and the router configuration. I can view the camera in a web browser if I navigate to 10.25.22.11, but still cannot see it on my driver station. I have set up the camera multiple times to verify it is using the FRC username and password, but no luck.

I appreciate the help, this issue has been the roadblock to finishing our vision tracking.
Reply With Quote
  #2   Spotlight this post!  
Unread 02-27-2012, 07:47 PM
mikets's Avatar
mikets mikets is offline
Software Engineer
FRC #0492 (Titan Robotics)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Bellevue, WA
Posts: 667
mikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of light
Re: 1M1011 Camera help

I have no problem seeing the camera image in the Dashboard on my laptop. However, our programming lead student couldn't for the longest time. Yesterday, he finally got it to work by accident. He installed LabView. Since we use C++, we generally do not install LabView. But I suspect when he first installed all the software, he probably missed a step or two. Although we do not use LabView, we still need to install some National Instrument tools and utilities that are located in the credit card USB flash drive that also contains LabView. I suspect, he missed some part of that install. You may want to look into that direction.

BTW, are you using the old Dashboard or the SmartDashboard? For SmartDashboard, you need to go into the camera's web page to enable "anonymous viewing".
__________________

Last edited by mikets : 02-27-2012 at 07:49 PM.
Reply With Quote
  #3   Spotlight this post!  
Unread 02-27-2012, 08:13 PM
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: 152
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: 1M1011 Camera help

If you are using SmartDashboard, mikets hit the nail on the head for what killed ours for a while after a hard reset. :-)

The other one is that on the first use of the SmartDashboard, you'll need to goto view->Edit mode ... and then after adding the camera via add->Camera, you should right-click on the pink camera rectangle and select "properties".

In that dialog box, put your team number. Otherwise, SmartDashboard doesn't know which IP address is your camera. Once you tell it your team number (or was it IP address directly) -- well anyway - you'll see it in the properties page. If it's an IP address, fill in 10.te.am.11 (10.25.22.11 for you) and you're all set if it's team number ('te' and 'am' are your team number...but you knew that already I think) ;-)

bob
__________________
~~~~~~~~~~~~~~~~~~~
Bob Wolff - Software from the old-school
Mentor / C / C++ guy
Team 1967 - The Janksters - San Jose, CA
Reply With Quote
  #4   Spotlight this post!  
Unread 02-27-2012, 08:24 PM
agentace agentace is offline
Registered User
FRC #2522
 
Join Date: Feb 2010
Location: Lynnwood High School
Posts: 8
agentace is an unknown quantity at this point
Re: 1M1011 Camera help

I just installed the driver station on the programming laptop we use (which has LabVIEW), and I got a camera feed. I installed the LabVIEW runtime enviornment before, and I guess that doesn't substitute for actually installing it. Thanks for the help.

What is the difference between the regular dashboard and the smart dashboard? I have the one that is posted on usfirst.org, I'm assuming this is the smart dashboard.
Reply With Quote
  #5   Spotlight this post!  
Unread 02-28-2012, 08:41 AM
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,748
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: 1M1011 Camera help

You shouldn't need all of LV, but you will need the vision libraries and runtime. I thought there was a utilities install that was intended for this. Was that what you were running?

Greg McKaskle
Reply With Quote
  #6   Spotlight this post!  
Unread 02-28-2012, 09:11 AM
dbeckwith's Avatar
dbeckwith dbeckwith is offline
Lead Programmer
AKA: Daniel Beckwith
FRC #3205 (The Patriots)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2009
Location: USA
Posts: 84
dbeckwith is an unknown quantity at this point
Re: 1M1011 Camera help

You might need to modify the default dashboard in order to see the camera there. I think there was a post on CD about how to modify it specifically to see the camera.
Also, can you get the camera image in the code, even if you can't on the DS? If that's true, it may just be the DS that can't connect for some reason, given everything else you said was working.
__________________
q = (2*b) | ~(2*b);

if (life.getLemons() != null) this.lemonade = new Drink(life.getLemons());
else throw new NoLemonsException("What now?");


Reply With Quote
  #7   Spotlight this post!  
Unread 02-28-2012, 04:26 PM
mikets's Avatar
mikets mikets is offline
Software Engineer
FRC #0492 (Titan Robotics)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Bellevue, WA
Posts: 667
mikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of light
Re: 1M1011 Camera help

Quote:
Originally Posted by dbeckwith View Post
You might need to modify the default dashboard in order to see the camera there. I think there was a post on CD about how to modify it specifically to see the camera.
Also, can you get the camera image in the code, even if you can't on the DS? If that's true, it may just be the DS that can't connect for some reason, given everything else you said was working.
No, you don't need to modify the Dashboard to see the camera image. As long as you followed the software installation instructions correctly and has all the necessary pieces installed (National Instruments Tools and Utilities including the Vision library), the only thing you need to do is to configure the camera correctly regarding its IP address (10.xx.yy.11) and set the accts correctly (user: FRC, password: FRC, enable anonymous viewing if you use SmartDashboard). The last thing to do is to tell the Dashboard the IP address of your cRIO (10.xx.yy.2).
__________________
Reply With Quote
  #8   Spotlight this post!  
Unread 02-28-2012, 08:16 PM
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: 152
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: 1M1011 Camera help

In regards to the SmartDashboard versus the regular one, take a search for SmartDashboard here on the forums and also goto firstforge - at wpi - and you'll find the smartdashboard project and its associated installers if you're interested in using it. It has a MUCH better method of displaying values, charts, graphs, fuel-gauges, and text along with the camera. Really a slick item. Can't live without it now!

bob
__________________
~~~~~~~~~~~~~~~~~~~
Bob Wolff - Software from the old-school
Mentor / C / C++ guy
Team 1967 - The Janksters - San Jose, CA
Reply With Quote
  #9   Spotlight this post!  
Unread 03-23-2012, 03:47 PM
jnettleton jnettleton is offline
Registered User
FRC #2501
 
Join Date: Feb 2012
Location: Oakdale, MN
Posts: 6
jnettleton is an unknown quantity at this point
Re: 1M1011 Camera help

Quote:
Originally Posted by mikets View Post
No, you don't need to modify the Dashboard to see the camera image. As long as you followed the software installation instructions correctly and has all the necessary pieces installed (National Instruments Tools and Utilities including the Vision library), the only thing you need to do is to configure the camera correctly regarding its IP address (10.xx.yy.11) and set the accts correctly (user: FRC, password: FRC, enable anonymous viewing if you use SmartDashboard). The last thing to do is to tell the Dashboard the IP address of your cRIO (10.xx.yy.2).
I have the IP address configured but it's still not showing up. Do I need to add C++ code to the robot side to get and send images back to the Dashboard?
Reply With Quote
  #10   Spotlight this post!  
Unread 03-23-2012, 07:10 PM
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: 152
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: 1M1011 Camera help

Which dashboard are you using? The "stock" one or did you install the java-based SmartDashboard?

A) Open a web browser while the station is on, the robot is on, and the camera is on/plugged in etc -- to 10.xx.yy.11
For team=2522 http://10.25.22.11
For team=123 http://10.1.23.11
You should see a user interface for the camera. If it asks for login information, use FRC as the username and FRC as the password (all caps).

If you are able to see the above web page, you're doing quite well. If not, then there's a configuration or connectivity issue. Report back on this.

B) If you're using the smartdashboard, please note that it requires the use of "anonymous viewing" to be enabled on the camera. I am at work and so I cannot lead you directly through this. However, look in video setup and a few of the other setup pages and CHECK the box that says allow anonymous viewing. Then SAVE the changes.

bob
__________________
~~~~~~~~~~~~~~~~~~~
Bob Wolff - Software from the old-school
Mentor / C / C++ guy
Team 1967 - The Janksters - San Jose, CA
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 10:02 AM.

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