Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Java (http://www.chiefdelphi.com/forums/forumdisplay.php?f=184)
-   -   SmartDashboard extensions when launched from driver station (http://www.chiefdelphi.com/forums/showthread.php?t=114034)

Joe Ross 20-02-2013 01:41

SmartDashboard extensions when launched from driver station
 
I have a smartdashboard extension which I placed in the sunspotfrcsdk\tools\extension folder. When I launch smartdashboard from the sunspotfrcsdk\tools directory, my extension shows. However, when I launch smartdashboard from the driverstation java dashboard option, the extension does not show.

I was under the impression that the driver station launches the smartdashboard from the sunspotfrcsdk\tools folder. Is there another place it looks for extensions?

Note: I'm not using the smartdashboard installer, since I'm not using the camera plugin. I'm using the brand new feature of launching the smartdashboard installed by the java plugins.

joelg236 20-02-2013 02:41

Re: SmartDashboard extensions when launched from driver station
 
SmartDashboard is launched through an .exe when running from the driverstation. My guess is that the exe does not look for libraries because it loads libraries from ClassLoader, which never works well when .jar files are made into .exe ones.

Greg McKaskle 20-02-2013 07:53

Re: SmartDashboard extensions when launched from driver station
 
The Java button on the DS executes PATH/sunspotfrcsdk\tools\SmartDashboard.jar, where PATH is the user home directory.

Can you try that command line from a terminal or command window?

Greg McKaskle

Joe Ross 20-02-2013 13:22

Re: SmartDashboard extensions when launched from driver station
 
Quote:

Originally Posted by Greg McKaskle (Post 1237065)
The Java button on the DS executes PATH/sunspotfrcsdk\tools\SmartDashboard.jar, where PATH is the user home directory.

Can you try that command line from a terminal or command window?

It appears to be a working directory issue.

If I enter that command line from within the sunspotfrcsdk\tools\ directory, it works. If I run that command line from elsewhere (ie C:\), it fails to load the extensions and reports no Extension folder.

Looking at the SmartDashboard source, in FileSniffer.java, it appears to be searching "./extensions"

pblankenbaker 20-02-2013 13:55

Re: SmartDashboard extensions when launched from driver station
 
Try placing your extension JAR file in the C:\Program FIles\SmartDashboard\extensions\ directory. This worked for us last year (though we were bit by a memory leak in last year's image libraries).

If you are doing image processing as a SmartDashboard extension, I'd recommend that you monitor memory usage on your system as the memory leak we encountered last year was buried in one of the native Java DLLs. Hopefully, it's been fixed for this season.


All times are GMT -5. The time now is 10:08.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi