![]() |
SmartDashboard Extension
Hello,
I've been having some trouble with SmartDashboard extensions. I tried a simple extension that extends WPICameraExtension and has an override for processImage to return the image. I can add it to the SmartDashboard fine but it says no connection - a Simple Camera Viewer works, though. The Camera widget also says no connection. Any ideas why it isn't able to connect? I thought it was my extension at first but due to the fact that the Camera widget/extension also says no connection makes me wonder if it's something non-plugin related. I'm using the vanilla SmartDashboard - not SFX. Thanks. |
Re: SmartDashboard Extension
It doesn't seem to load the extension when I load the dashboard through the driver station - only when I open the .jar file through the command line in Users/<user>/wpilib/tools/ will it load my extension. Even if it loads the extension if won't display the image - it displays the image using the Camera extension/widget though, if I launch it via the driver station.
Any ideas? |
Re: SmartDashboard Extension
I hate to bump this but I'm still having this issue.
|
Re: SmartDashboard Extension
We had some issues with a bad connection (I believe it was called a broken pipe) trying to use the intermediate vision example. I don't recall the exact solution, but it turned out that the broken connection was not between the 'RIO and the driver station, but between the driver station and the image widget we were displaying it in. I'll see if I can get more details at our build this evening.
|
Re: SmartDashboard Extension
Quote:
I spent more time working on this and am still having this issue. The Java SmartDashboard is opening with the same arguments I pass to it (java -jar /path/to/dashboard/SmartDashboard.jar) but for some reason, the one spawned through selecting the "Java" SmartDashboard is refusing to acknowledge my plugin. When I open it through the command line, it opens it and loads my extension/plugin. The Camera widget still does not work for me and won't establish a connection when opened through the command line. It works fine if it is opened through the Driver Station. I used a process monitoring tool to confirm that it is opening the same SmartDashboard I'm opening via command line (shoutout to Procmon!). I'm nearly at my wits end for this issue and have tried almost everything I can think of. Due to the non-existent documentation for SmartDashboard I've decompiled SmartDashboard and am trying to determine the cause of this issue but it's not going too well. If anyone who has experience with extensions/widgets or a SmartDashboard developer sees this I would love it if you could post. Thanks. |
Re: SmartDashboard Extension
Hum, The only think I can think of is the driver station may be using a different java version if you have multiple java installs on your computer. I cant access the smart dashboard code from this laptop but when I get home I will make sure its not checking for any weird arguments from the driver station.
The other thing you can try (If you have a java JDK installed and correctly added to your path variable) is to start the dashboard with the driver station then open the command prompt and type Code:
jpsCode:
jstack <Number Here> |
Re: SmartDashboard Extension
Quote:
Here's the result of its stack trace: Code:
C:\WINDOWS\system32>jstack 5480Thanks! |
Re: SmartDashboard Extension
When you launch the dashboard from within the Driver Station, the Driver Station uses an ini file to determine which program to run. This ini file is located in the directory:
Code:
C:\Users\Public\Documents\FRCThe name of the ini file is: Code:
FRC DS Data Storage.iniCode:
DashboardCmdLine = "java -jar "C:\\Users\\mmaunu\\wpilib\\tools\\SmartDashboard.jar""Inside the Driver Station, on the "Setup" tab, leave the dashboard type to "Default". By default, it will look for the command to run in the ini file. Your extensions should be installed in the following folder: Code:
C:\Users\mmaunu\SmartDashboard\extensionsWe create a jar file that contains our extensions and then just save the jar file to the folder above. Hope this helps. |
Re: SmartDashboard Extension
Quote:
Inside the lib folder is javacpp.jar, javacv.jar, javacv-windows-x86.jar, and WPIJavaCV.jar. The timestamps for everything is around 2013 -- could I be using an outdated jar? Can someone upload their WPICameraExtension.jar and others for me? I think this might be the case. Thanks! |
Re: SmartDashboard Extension
I haven't written any custom extensions that have dependencies on other jars so I'm unsure. I can try to test it later, but have you tried something like putting all of the jar files directly in the extensions folder (instead of having the java cv and cpp jars in "lib", put them all in "extensions")?
|
Re: SmartDashboard Extension
Quote:
|
Re: SmartDashboard Extension
Quote:
|
Re: SmartDashboard Extension
Quote:
|
Re: SmartDashboard Extension
Quote:
|
| All times are GMT -5. The time now is 10:56. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi