Go to Post I wish I had the blissful self-confidence of some of our students, even if it is a little delusional. It's all part of the process. - John Neun [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
  #31   Spotlight this post!  
Unread 01-13-2010, 10:28 PM
DanDon's Avatar
DanDon DanDon is offline
ohhh MY god
AKA: Dan Hoizner
FRC #0375 (The Robotic Plague)
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2004
Location: Staten Island, NY
Posts: 1,432
DanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond repute
Send a message via ICQ to DanDon Send a message via AIM to DanDon Send a message via MSN to DanDon
Re: 2010 Camera and vision problems.

Quote:
Originally Posted by Kingofl337 View Post
Seeing Java and C++ use pretty much the same code base, I'd think it would work in one if it works in the other, I can test the C++ code tomorrow night.
If the C++ code does work, is there any way you can put together a list of what we might be doing wrong? I'm getting nowhere fast as of now.
__________________
  #32   Spotlight this post!  
Unread 01-14-2010, 08:49 AM
Kingofl337's Avatar
Kingofl337 Kingofl337 is offline
You didn't see anything....
AKA: Adam
FRC #0501 (Power Knights)
Team Role: Mentor
 
Join Date: Feb 2005
Rookie Year: 1998
Location: Manchester, NH
Posts: 861
Kingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond repute
Send a message via Yahoo to Kingofl337
Re: 2010 Camera and vision problems.

With Java, it pretty much went.
Download: http://joule.ni.com/nidu/cds/view/p/lang/en/id/1534 and install it
Update cRio Image to v19 (Tick Format Controller)
Plug Camera into Laptop and Run Config Utility
Plug the camera into the robot using Port 2 and a Crossover Cable
Pull down the Netbeans plug-ins
Run the source code I posted on the last page

I'd assume it would be the same for Wind River, except you would need to download the update from http://first.wpi.edu/Images/CMS/Firs...te20100107.exe for Workbench.
__________________
FIRST Team 501 PowerKnights - Mentor
FIRST Team 40 Checkmate - Mentor Alum
FIRST Team 146 Blue Lightning - Alumni
  #33   Spotlight this post!  
Unread 01-14-2010, 09:31 AM
DanDon's Avatar
DanDon DanDon is offline
ohhh MY god
AKA: Dan Hoizner
FRC #0375 (The Robotic Plague)
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2004
Location: Staten Island, NY
Posts: 1,432
DanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond repute
Send a message via ICQ to DanDon Send a message via AIM to DanDon Send a message via MSN to DanDon
Re: 2010 Camera and vision problems.

Quote:
Originally Posted by Kingofl337 View Post
With Java, it pretty much went.
Download: http://joule.ni.com/nidu/cds/view/p/lang/en/id/1534 and install it
Update cRio Image to v19 (Tick Format Controller)
Plug Camera into Laptop and Run Config Utility
Plug the camera into the robot using Port 2 and a Crossover Cable
Pull down the Netbeans plug-ins
Run the source code I posted on the last page

I'd assume it would be the same for Wind River, except you would need to download the update from http://first.wpi.edu/Images/CMS/Firs...te20100107.exe for Workbench.
Hmm, only difference between your list and mine is that I manually edited the username and password rather than use the Config Utility. Does the Config Utility change anything else on the camera? I'll give running that a shot once I get into the lab and post results.
__________________
  #34   Spotlight this post!  
Unread 01-14-2010, 09:43 AM
Kingofl337's Avatar
Kingofl337 Kingofl337 is offline
You didn't see anything....
AKA: Adam
FRC #0501 (Power Knights)
Team Role: Mentor
 
Join Date: Feb 2005
Rookie Year: 1998
Location: Manchester, NH
Posts: 861
Kingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond repute
Send a message via Yahoo to Kingofl337
Re: 2010 Camera and vision problems.

Something else you may want to try, if you used Wind River last year is to uninstall it and delete all traces of it. Then reinstall, I think the location of WPILib.a moved down a directory and Wind River could be pointing to the wrong file.

You may also try searching for WPILib.a under C:\Windriver and deleting it, after that reinstall the Workbench update. If it can't find WPILib.a then that's your issue and you need to point to the current location. If you were using WPILIb source code to compile you WPILib.a file that can cause the issue as well. I haven't seen the new version of WPILib source yet.
__________________
FIRST Team 501 PowerKnights - Mentor
FIRST Team 40 Checkmate - Mentor Alum
FIRST Team 146 Blue Lightning - Alumni
  #35   Spotlight this post!  
Unread 01-14-2010, 12:11 PM
Bigcheese Bigcheese is offline
C++0x FTW!
AKA: Michael Spencer
FRC #1771
Team Role: Mentor
 
Join Date: Feb 2008
Rookie Year: 2008
Location: GA
Posts: 36
Bigcheese is a jewel in the roughBigcheese is a jewel in the roughBigcheese is a jewel in the roughBigcheese is a jewel in the rough
Re: 2010 Camera and vision problems.

Quote:
Originally Posted by DanDon View Post
Have you gotten the camera to at least instantiate? I can ping the camera (192.168.0.90) with 0% packet loss from the cRio, and the user/pass combo is set up correctly but my code still hangs on AxisCamera::GetInstance().
Yep, I have gotten past that point in the code. Duno if tracking works though because the lens was out of focus and is now dead, so I'm heading over to Fry's to get another one.

The dashboard on the Driver Station doesn't work though.
  #36   Spotlight this post!  
Unread 01-14-2010, 03:13 PM
DanDon's Avatar
DanDon DanDon is offline
ohhh MY god
AKA: Dan Hoizner
FRC #0375 (The Robotic Plague)
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2004
Location: Staten Island, NY
Posts: 1,432
DanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond repute
Send a message via ICQ to DanDon Send a message via AIM to DanDon Send a message via MSN to DanDon
Re: 2010 Camera and vision problems.

Still absolutely no dashboard data with the 2010ImageDemo. I'm getting the code to run, however there's an output line on the VxWorks console that worries me.

Quote:
task 0x1df9a60 <FRC_cameraTask> deleted: errno=0 <0> status=0 <0>

No idea what it means, but it doesn't look promising to me. Any help?
__________________
  #37   Spotlight this post!  
Unread 01-14-2010, 03:26 PM
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: 2010 Camera and vision problems.

Quote:
Originally Posted by DanDon View Post
Still absolutely no dashboard data with the 2010ImageDemo. I'm getting the code to run, however there's an output line on the VxWorks console that worries me.




No idea what it means, but it doesn't look promising to me. Any help?
That means something deleted the camera Task. Usually by going out of scope. Make sure you don't accidentally dispose the camera
__________________
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
  #38   Spotlight this post!  
Unread 01-14-2010, 08:22 PM
JesterKarrde JesterKarrde is offline
Registered User
AKA: Grant P. Garner
FRC #3413 (Cowboys)
Team Role: Teacher
 
Join Date: Dec 2009
Rookie Year: 2009
Location: Coppell, TX
Posts: 3
JesterKarrde is an unknown quantity at this point
Re: 2010 Camera and vision problems.

I'm working on LabVIEW trying to solve the same problem. I've gotten the image to show up on the LabVIEW instrument, but not on the dashboard. I am getting the image from the cRio.
  #39   Spotlight this post!  
Unread 01-14-2010, 08:43 PM
tekman1001 tekman1001 is offline
Registered User
FRC #2342
 
Join Date: Jan 2009
Location: New Hampshire
Posts: 11
tekman1001 is an unknown quantity at this point
Re: 2010 Camera and vision problems.

Hey does anyone know were the demo code is located I can't find it anywhere.
Thanks,
  #40   Spotlight this post!  
Unread 01-14-2010, 10:16 PM
woodk woodk is offline
Registered User
FRC #2809
 
Join Date: Jan 2009
Location: Kingston, Ontario, Canada
Posts: 31
woodk has a spectacular aura aboutwoodk has a spectacular aura aboutwoodk has a spectacular aura about
Re: 2010 Camera and vision problems.

Some people seem to be having a similar problem to what I had ...
in my case the DSupdate did not update the dashboard (only the driver station). I only noticed because I installed the update on a second laptop and it looked different. I went back and checked the file date and it was not the same on the classmate. I had to run the DSupdate program, but tell it to uninstall, then run it again and install. Now it works.

- Kevin
  #41   Spotlight this post!  
Unread 01-14-2010, 10:19 PM
woodk woodk is offline
Registered User
FRC #2809
 
Join Date: Jan 2009
Location: Kingston, Ontario, Canada
Posts: 31
woodk has a spectacular aura aboutwoodk has a spectacular aura aboutwoodk has a spectacular aura about
Re: 2010 Camera and vision problems.

Quote:
Originally Posted by tekman1001 View Post
Hey does anyone know were the demo code is located I can't find it anywhere.
Thanks,
You should be able to create demo code by selecting File -> New -> Example

Make sure you follow the "Getting started with C++" document the first time.

- Kevin
  #42   Spotlight this post!  
Unread 01-14-2010, 10:53 PM
1jbinder 1jbinder is offline
Registered User
FRC #0852
 
Join Date: Jan 2008
Location: Athenian School
Posts: 35
1jbinder is an unknown quantity at this point
Re: 2010 Camera and vision problems.

Reinstalling worked for us!!!!
Thanks guys,
Julian
  #43   Spotlight this post!  
Unread 01-14-2010, 11:19 PM
ranc ranc is offline
Registered User
FRC #2489
 
Join Date: Feb 2009
Location: Fremont
Posts: 15
ranc is an unknown quantity at this point
Re: 2010 Camera and vision problems.

Quote:
Originally Posted by 1jbinder View Post
Reinstalling worked for us!!!!
Thanks guys,
Julian
Did you reinstall Windriver? or the driver station update?
  #44   Spotlight this post!  
Unread 01-15-2010, 06:04 PM
Bigcheese Bigcheese is offline
C++0x FTW!
AKA: Michael Spencer
FRC #1771
Team Role: Mentor
 
Join Date: Feb 2008
Rookie Year: 2008
Location: GA
Posts: 36
Bigcheese is a jewel in the roughBigcheese is a jewel in the roughBigcheese is a jewel in the roughBigcheese is a jewel in the rough
Re: 2010 Camera and vision problems.

I finally got camera output + target data on the dashboard. The problem was indeed the drivers station update.

Here's how to fix it:
  1. Download the drivers station update: http://joule.ni.com/nidu/cds/view/p/lang/en/id/1535
  2. Run the drivers station update and install.
  3. Run the drivers station update and select remove for both components.
  4. Run the drivers station update and install.

This fixes it. NI needs to fix the installer.
  #45   Spotlight this post!  
Unread 01-15-2010, 06:25 PM
DanDon's Avatar
DanDon DanDon is offline
ohhh MY god
AKA: Dan Hoizner
FRC #0375 (The Robotic Plague)
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2004
Location: Staten Island, NY
Posts: 1,432
DanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond repute
Send a message via ICQ to DanDon Send a message via AIM to DanDon Send a message via MSN to DanDon
Re: 2010 Camera and vision problems.

Quote:
Originally Posted by Bigcheese View Post
I finally got camera output + target data on the dashboard. The problem was indeed the drivers station update.

Here's how to fix it:
  1. Download the drivers station update: http://joule.ni.com/nidu/cds/view/p/lang/en/id/1535
  2. Run the drivers station update and install.
  3. Run the drivers station update and select remove for both components.
  4. Run the drivers station update and install.

This fixes it. NI needs to fix the installer.
I was just about to post this. Exactly what I had to do to fix the problem.

I also have the camera tracking the target on a pan/tilt assembly .
__________________
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
Vision problems and FIRST members ebmonon36 Chit-Chat 10 01-21-2006 10:43 PM
vision camera Adama Programming 3 01-19-2006 05:12 PM
71's Vision Tracking Problems Bill Beatty Rumor Mill 7 04-19-2005 05:41 PM
Camera Vision Range Muhnki Programming 7 02-05-2005 11:26 PM
Camera Vision Range Muhnki Programming 7 02-05-2005 11:26 PM


All times are GMT -5. The time now is 11:44 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