Go to Post You know, if I was John V-Neun I would get a copyright on my name! - Jay H 237 [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 20-02-2013, 01:41
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,567
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
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.

Last edited by Joe Ross : 20-02-2013 at 21:50.
Reply With Quote
  #2   Spotlight this post!  
Unread 20-02-2013, 02:41
joelg236 joelg236 is offline
4334 Retired Mentor & Alumni
AKA: Joel Gallant
no team
Team Role: Mentor
 
Join Date: Dec 2011
Rookie Year: 2012
Location: Calgary
Posts: 733
joelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond repute
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.
__________________
All opinions are my own.
Reply With Quote
  #3   Spotlight this post!  
Unread 20-02-2013, 07:53
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,751
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
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
Reply With Quote
  #4   Spotlight this post!  
Unread 20-02-2013, 13:22
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,567
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: SmartDashboard extensions when launched from driver station

Quote:
Originally Posted by Greg McKaskle View Post
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"
Reply With Quote
  #5   Spotlight this post!  
Unread 20-02-2013, 13:55
pblankenbaker pblankenbaker is offline
Registered User
FRC #0868
 
Join Date: Feb 2012
Location: Carmel, IN, USA
Posts: 103
pblankenbaker is a glorious beacon of lightpblankenbaker is a glorious beacon of lightpblankenbaker is a glorious beacon of lightpblankenbaker is a glorious beacon of lightpblankenbaker is a glorious beacon of light
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.
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 22:16.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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