View Single Post
  #1   Spotlight this post!  
Unread 16-01-2015, 20:10
gaut1234 gaut1234 is offline
Registered User
AKA: Gautam Prabhu
FRC #0972 (Iron Claw)
Team Role: Leadership
 
Join Date: Jan 2015
Rookie Year: 2014
Location: Los Gatos
Posts: 4
gaut1234 is an unknown quantity at this point
IndexOutOfBoundsException with NI Vision

We have been using an axis M1013 IP camera for our vision system this year. We slightly modified the Axis Camera example program to save pictures the camera takes to the roboRIO for debugging purposes. We have repeatedly gotten "IndexOutOfBoundsException" with our call to the HSLImage class's "write" function. We have tried a lot of debugging and I think that the problem lies with ByteBuffer allocation in the roboRIO (this happens internally in WPILIB's writing function) but we have not fully confirmed this. In addition, the example axis program does not work as expected - we get no image on the dashboard. We can view the camera from the SmartDashboard and we can use the getImage() function without exceptions.

Thank you for your help.
Reply With Quote