Go to Post we have to get our robots to watch tv and drink beer. - nreynolds [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 15-03-2009, 11:23
sircedric4's Avatar
sircedric4 sircedric4 is offline
Registered User
AKA: Darren
no team (The SS Prometheus)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2006
Location: Lousiana
Posts: 245
sircedric4 has a reputation beyond reputesircedric4 has a reputation beyond reputesircedric4 has a reputation beyond reputesircedric4 has a reputation beyond reputesircedric4 has a reputation beyond reputesircedric4 has a reputation beyond reputesircedric4 has a reputation beyond reputesircedric4 has a reputation beyond reputesircedric4 has a reputation beyond reputesircedric4 has a reputation beyond reputesircedric4 has a reputation beyond repute
Angry Camera Preparation and Assistance Please

I am using Windriver C++ to program my camera and have it working great in autonomous and tracking. My problem is that I have heard that I need to adjust the camera to the real live conditions on the field for my upcoming Regional. In order to prepare to be able to do that I have been trying to get smart ahead of time.

I have read on the forums here that the easiest thing to do is adjust the brightness to account for the bright lights. Two questions have come up and I need help.

I have tried to just logon to the camera using its IP address but have not succeeded there. I have tried logging on while it it hooked to the cRio as well as straight to my computer with no luck. I am using the crossover cable while making this connection. Do I need to change the IP on my computer from the working configuration to another configuration in order to talk to the camera? What is the procedure you successful people are using to talk to the camera?

The other question is whether there is a Labview program similar to the dashboard that I can evaluate the colors with? I keep seeing people reference some Find Two Colors.vi but I can't find that program anywhere. I want to use Windriver so don't want to re-image my CRio to use the Track Two Color Demo.

Thanks
  #2   Spotlight this post!  
Unread 15-03-2009, 12:08
David Doerr's Avatar
David Doerr David Doerr is offline
Registered User
FRC #4478 (Materia Oscura)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2002
Location: Milford, Michigan, USA
Posts: 75
David Doerr has much to be proud ofDavid Doerr has much to be proud ofDavid Doerr has much to be proud ofDavid Doerr has much to be proud ofDavid Doerr has much to be proud ofDavid Doerr has much to be proud ofDavid Doerr has much to be proud ofDavid Doerr has much to be proud of
Re: Camera Preparation and Assistance Please

Quote:
Originally Posted by sircedric4 View Post
...My problem is that I have heard that I need to adjust the camera to the real live conditions on the field for my upcoming Regional. ...

Do I need to change the IP on my computer from the working configuration to another configuration in order to talk to the camera? ...

The other question is whether there is a Labview program similar to the dashboard that I can evaluate the colors with? ...
Yes, you'll need to change your computer's IP address to talk to the camera as you describe. The camera's IP address when set correctly for use on the robot is 192.168.0.90. Assuming your camera is set that way, and you have your camera connected directly to your computer with your crossover cable, try setting your computer IP to 192.168.0.1.

There is a LabVIEW program that gets installed on your computer along with all the other FRC software called "NI Vision Assistant 8.6". It runs on your PC. That's the program I've used to determine the optimum HSL range settings to use with C++. There are instructions how to use it in my article on the Think Tank http://thinktank.wpi.edu/article/118. Those instructions are for use with the 2006-2007 green lamp, but the principles for finding HSL ranges for the 2009 target are the same. I'd make measurements under a wide variety of lighting conditions, and be prepared to take measurements at the regional to make last-minute adjustments.

Dave D
  #3   Spotlight this post!  
Unread 15-03-2009, 16:12
sircedric4's Avatar
sircedric4 sircedric4 is offline
Registered User
AKA: Darren
no team (The SS Prometheus)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2006
Location: Lousiana
Posts: 245
sircedric4 has a reputation beyond reputesircedric4 has a reputation beyond reputesircedric4 has a reputation beyond reputesircedric4 has a reputation beyond reputesircedric4 has a reputation beyond reputesircedric4 has a reputation beyond reputesircedric4 has a reputation beyond reputesircedric4 has a reputation beyond reputesircedric4 has a reputation beyond reputesircedric4 has a reputation beyond reputesircedric4 has a reputation beyond repute
Re: Camera Preparation and Assistance Please

Quote:
Originally Posted by DaveD View Post
Yes, you'll need to change your computer's IP address to talk to the camera as you describe. The camera's IP address when set correctly for use on the robot is 192.168.0.90. Assuming your camera is set that way, and you have your camera connected directly to your computer with your crossover cable, try setting your computer IP to 192.168.0.1.

There is a LabVIEW program that gets installed on your computer along with all the other FRC software called "NI Vision Assistant 8.6". It runs on your PC. That's the program I've used to determine the optimum HSL range settings to use with C++. There are instructions how to use it in my article on the Think Tank http://thinktank.wpi.edu/article/118. Those instructions are for use with the 2006-2007 green lamp, but the principles for finding HSL ranges for the 2009 target are the same. I'd make measurements under a wide variety of lighting conditions, and be prepared to take measurements at the regional to make last-minute adjustments.

Dave D
Thanks, setting my Ip address did the trick. I don't like having to keep juggling IP addresses with my laptop but I guess I don't have a choice. I just need to keep a notebook with all my numbers written down so I won't need to get to the internet on the field when calibrating. :-)

I will take a look at the white paper and the software you mentioned, thanks again.
  #4   Spotlight this post!  
Unread 15-03-2009, 17:08
David Doerr's Avatar
David Doerr David Doerr is offline
Registered User
FRC #4478 (Materia Oscura)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2002
Location: Milford, Michigan, USA
Posts: 75
David Doerr has much to be proud ofDavid Doerr has much to be proud ofDavid Doerr has much to be proud ofDavid Doerr has much to be proud ofDavid Doerr has much to be proud ofDavid Doerr has much to be proud ofDavid Doerr has much to be proud ofDavid Doerr has much to be proud of
Re: Camera Preparation and Assistance Please

Quote:
Originally Posted by sircedric4 View Post
I don't like having to keep juggling IP addresses with my laptop but I guess I don't have a choice.
I'm glad you got your communications to work!

We don't like juggling IP addresses either, so we use batch files like the ones attached to switch back-and-forth. There may be a more elegant way to do it, but this works. Rename the files to end in ".bat" instead of ".txt". Keep the files on your desktop and double-click to run. 192.168.0.1.bat for the camera, 10.0.67.6.bat for the cRIO (use your own team number) and DHCP.bat to switch back to normal operation.

Dave D
Attached Files
File Type: txt 10.0.67.6.txt (114 Bytes, 49 views)
File Type: txt 192.168.0.1.txt (116 Bytes, 48 views)
File Type: txt DHCP.txt (75 Bytes, 59 views)
  #5   Spotlight this post!  
Unread 15-03-2009, 18:45
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,756
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: Camera Preparation and Assistance Please

As discussed, the IP must be changed.

As for the LV example, the Find Two Colors.vi is similar to the C++ example provided by BAE/WPI except that since it is LV, it has a panel to see what is going on. There is also a utility called Camera Field Test.vi built from common code with the example, but which will run on the PC. I also added a live HSL display and a button/FKey to save images to disk. If you have LV installed on a laptop, this can be used to do the test independent of the robot.

Good Luck.
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Team Preparation Spartan151 General Forum 7 21-10-2008 19:28
Camera Code Help Please The yellowdart Programming 1 10-02-2007 15:45
pic: Hurricane Frances Preparation... CD47-Bot Extra Discussion 2 05-09-2004 13:38
pre-inspection preparation questions Adams High Man OCCRA 7 22-10-2002 22:22


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

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