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