Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   C/C++ (http://www.chiefdelphi.com/forums/forumdisplay.php?f=183)
-   -   Camera image crashing code??? (http://www.chiefdelphi.com/forums/showthread.php?t=113304)

wag2625 11-02-2013 22:28

Camera image crashing code???
 
Hello. We are working on the vision tracking component of our robot in Windriver and noticed that when we attempt to retrieve the camera image for filtering and particle analysis, it seems to crash our code.

When we enter Autonomous mode the code runs up until it is supposed to read the image from the camera. After that, the program freezes and we are unable to communicate in either Autonomous or Teleoperated mode, and need to reset the cRio in order to continue.


Any input would be greatly appreciated :)

Alan Anderson 12-02-2013 09:52

Re: Camera image crashing code???
 
Enable NetConsole and see what the cRIO tells you as it crashes. It'll probably have an error message with a clue about the cause of the problem.

aziobro 14-02-2013 19:56

Re: Camera image crashing code???
 
We are seeing the same problem with our code.
There seems to be a problem with the image from the axis camera.
If we check the height and with of the image we get 0.
Even when the GetImage returns true (1) the height and width still say they are 0.


We are using the vision sample code and add the following to check the height and width.

ColorImage *image;

int cameraimagegood = camera.Getimage(image)
int width = image->GetWidth();
int height = image->GetHeight();

We checked the camera setup and it looks correct. (User FRC Password FRC)
The Camera Image is getting to the DashBoard.

We are able to run in debug mode and set breakpoints to check values.

We are stuck.... Any suggestions?


All times are GMT -5. The time now is 13:05.

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