We’re trying to get image streaming working with our camera to the dashboard (we’re using C++). The code we’re using for setting up the image streaming is this:
AxisCamera& camera = AxisCamera::GetInstance();
camera.WriteResolution(AxisCamera::kResolution_320x240);
camera.WriteCompression(20);
camera.WriteBrightness(0);
which runs exactly once in our project, and runs only after the robot has been powered on for 10 seconds (to allow the camera to boot). However, this code makes my program crash with a kernel fault; it crashes within some vxworks network calls (recv). The actual robot program dies, but I do get a picture on the dashboard from the camera.
Does anyone have any idea why this might be happening?
Where is this in your code? We had something similar, and it appeared that every time camera went out-of-scope, the global camera object was destroyed. The next time it came into scope it was re-constructed and destroyed again when it went out of scope. At least this was our theory.