Log in

View Full Version : Java Smart Dashboard Camera Display Problem


conwill345
12-01-2013, 16:29
We at Team 708 are trying to display our camera feed in the Smart Dashboard this year. Our camera is configured at the correct address (10.7.8.11), and anonymous viewing is enabled. We can view the feed with a browser. The feed will not show up on the Java Smart Dashboard, and when the Dashboard is run from the command line we get the following error output:

Exception in thread "Thread-5" java.lang.UnsatisfiedLinkError: no jniavutil in java.library.path
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at com.googlecode.javacpp.Loader.load(Loader.java:338 )
at com.googlecode.javacpp.Loader.load(Loader.java:266 )
at com.googlecode.javacv.cpp.avutil.<clinit>(avutil.java:74)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at com.googlecode.javacpp.Loader.load(Loader.java:286 )
at com.googlecode.javacv.cpp.avcodec.<clinit>(avcodec.java:85)
at com.googlecode.javacv.FFmpegFrameGrabber.<init>

Please help!

mitchellweb1
12-01-2013, 16:34
Try running java -version in the command line. If the version includes 64-bit then you have a 64 bit JVM installed. This is a problem for the vision code because the native libraries are 32-bit so they can only be loaded into a 32-bit JVM. To solve this you can install the 32-bit version of the JRE. The JRE installer should set the 32-bit version to be the default one and then the smart dashboard camera plugin should work properly.

conwill345
12-01-2013, 16:57
It worked, thanks!

thomassmailus
16-02-2013, 16:38
We are having camera problems.

When we were using the 2012 smart dash, the camera feed showed up fine.

We upgraded to the 2013 smart dash and libraries and now there is no camera feed showing up on the smart dashboard.

I checked Java version, it is 1.6.0_30, nothing about 64 bit, so I think its all 32 bit.

I checked and anonymous login to the camera is enabled. The web page access to the axis cam works fine and we see the image there.

There is no smart dashboard Add-> Camera choice in the menu.
We only have optioon to add: Image (I think thats a static image), Connection Indicator (already using and works great), Label, and Robot Preferences (which doesn't seem to be anything related to this)

So how does one get the axsis camera feed placed on the dash?

I'm assuming that maybe the smart dashboard software is missing a module related to cameras?

RufflesRidge
16-02-2013, 19:29
So how does one get the axsis camera feed placed on the dash?


http://wpilib.screenstepslive.com/s/3120/m/7932/l/93058-smart-dashboard-standalone-vision-installer

thomassmailus
18-02-2013, 21:24
I'll give that a try. Thanks so much.

Ugh, if only the installers were complete and all inclusive and we didn't have to spend so much of the highly limited time futzing around with the basic software architecture.