Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   2010 Camera and vision problems. (http://www.chiefdelphi.com/forums/showthread.php?t=79935)

DanDon 13-01-2010 22:28

Re: 2010 Camera and vision problems.
 
Quote:

Originally Posted by Kingofl337 (Post 898662)
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.

Kingofl337 14-01-2010 08:49

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.

DanDon 14-01-2010 09:31

Re: 2010 Camera and vision problems.
 
Quote:

Originally Posted by Kingofl337 (Post 898851)
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.

Kingofl337 14-01-2010 09:43

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.

Bigcheese 14-01-2010 12:11

Re: 2010 Camera and vision problems.
 
Quote:

Originally Posted by DanDon (Post 898619)
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. :(

DanDon 14-01-2010 15:13

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?

byteit101 14-01-2010 15:26

Re: 2010 Camera and vision problems.
 
Quote:

Originally Posted by DanDon (Post 899089)
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

JesterKarrde 14-01-2010 20:22

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.

tekman1001 14-01-2010 20:43

Re: 2010 Camera and vision problems.
 
Hey does anyone know were the demo code is located I can't find it anywhere.
Thanks,

woodk 14-01-2010 22:16

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

woodk 14-01-2010 22:19

Re: 2010 Camera and vision problems.
 
Quote:

Originally Posted by tekman1001 (Post 899308)
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

1jbinder 14-01-2010 22:53

Re: 2010 Camera and vision problems.
 
Reinstalling worked for us!!!!
Thanks guys,
Julian

ranc 14-01-2010 23:19

Re: 2010 Camera and vision problems.
 
Quote:

Originally Posted by 1jbinder (Post 899434)
Reinstalling worked for us!!!!
Thanks guys,
Julian

Did you reinstall Windriver? or the driver station update?

Bigcheese 15-01-2010 18:04

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.

DanDon 15-01-2010 18:25

Re: 2010 Camera and vision problems.
 
Quote:

Originally Posted by Bigcheese (Post 899969)
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 :yikes: .


All times are GMT -5. The time now is 14:45.

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