View Single Post
  #1   Spotlight this post!  
Unread 09-01-2012, 17:59
JewishDan18's Avatar
JewishDan18 JewishDan18 is offline
Registered User
FRC #1700
Team Role: Engineer
 
Join Date: Feb 2009
Rookie Year: 2007
Location: Sunnyvale, CA
Posts: 185
JewishDan18 is a splendid one to beholdJewishDan18 is a splendid one to beholdJewishDan18 is a splendid one to beholdJewishDan18 is a splendid one to beholdJewishDan18 is a splendid one to beholdJewishDan18 is a splendid one to behold
Connecting to the Camera

I have the camera assigned to the IP 10.0.20.11 (on team 20). I have it connected to my router, along with everything else. My web browser can open the stream, and I can see the feed in the dashboard just fine. However, I am having issues accessing the camera in my code. I get an instance of the camera, but the code stops running very soon after I get the instance. Here is the code I am using:

Code:
        try {
            camera = AxisCamera.getInstance();
            for(int i=0;true;i++) {
                System.out.println(i);
            }
        } catch (Exception e) {
            e.printStackTrace();
        }
The count reaches about 15, then stops. I switch modes or disable and re-enable, but the counter does not start again, and a reboot is needed. Once, I saw an error message saying the camera was not accessible. However, this was only once; normally I do not get any error message. Does anyone have any ideas on how to start diagnosing this issue? Thanks!
Reply With Quote