Go to Post This is what happens when a couple of whackos get an idea at 2 am. - Rich Kressly [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 26-01-2013, 20:17
dhe95 dhe95 is offline
Registered User
FRC #2637 (Panthers)
Team Role: Programmer
 
Join Date: May 2012
Rookie Year: 2012
Location: California
Posts: 9
dhe95 is an unknown quantity at this point
Camera Extension not appearing in SmartDashboard

Our team is trying to write our own custom image processing extension for SmartDashboard but whenever we compile and move the .jar to the extensions folder, nothing shows up in the add menu.

Here is the code we are using
Code:
import edu.wpi.first.smartdashboard.camera.WPICameraExtension;
import edu.wpi.first.wpijavacv.WPIColorImage;
import edu.wpi.first.wpijavacv.WPIImage;

public class VisionSystem extends WPICameraExtension {

    @Override
    public WPIImage processImage(WPIColorImage rawImage) {
        return rawImage.getRedChannel();
    }
}
Any suggestions?
Reply With Quote
  #2   Spotlight this post!  
Unread 26-01-2013, 23:54
Johnbot's Avatar
Johnbot Johnbot is offline
Es Brokein!
AKA: John Westhoff
FRC #4791 (Pandroids)
Team Role: Mentor
 
Join Date: Feb 2012
Rookie Year: 2010
Location: Horsham, PA
Posts: 92
Johnbot is just really niceJohnbot is just really niceJohnbot is just really niceJohnbot is just really niceJohnbot is just really nice
Re: Camera Extension not appearing in SmartDashboard

We had a similar problem. We just re-installed the SmartDashboard from FIRSTForge and used its extensions folder and its jar, and everything was fine afterwards.
__________________

2011-2014 - FRC 2607 - Student
2012-2012 - FLL 2249 - Coach
2015- ???? - FRC 4791 - Mentor
Reply With Quote
  #3   Spotlight this post!  
Unread 27-01-2013, 15:33
dhe95 dhe95 is offline
Registered User
FRC #2637 (Panthers)
Team Role: Programmer
 
Join Date: May 2012
Rookie Year: 2012
Location: California
Posts: 9
dhe95 is an unknown quantity at this point
Re: Camera Extension not appearing in SmartDashboard

We tried that and it still doesn't show up. Could it be because it extends WPICameraExtension and not StaticWidget?
Reply With Quote
  #4   Spotlight this post!  
Unread 28-01-2013, 19:49
Johnbot's Avatar
Johnbot Johnbot is offline
Es Brokein!
AKA: John Westhoff
FRC #4791 (Pandroids)
Team Role: Mentor
 
Join Date: Feb 2012
Rookie Year: 2010
Location: Horsham, PA
Posts: 92
Johnbot is just really niceJohnbot is just really niceJohnbot is just really niceJohnbot is just really niceJohnbot is just really nice
Re: Camera Extension not appearing in SmartDashboard

No, it should be WPICameraExtension if you want it to display the camera image.
Are you sure you are putting your jar in the extensions folder in C:\Program Files\Smart Dashboard, and that you are running the exe in that folder?
__________________

2011-2014 - FRC 2607 - Student
2012-2012 - FLL 2249 - Coach
2015- ???? - FRC 4791 - Mentor
Reply With Quote
  #5   Spotlight this post!  
Unread 28-01-2013, 22:36
dhe95 dhe95 is offline
Registered User
FRC #2637 (Panthers)
Team Role: Programmer
 
Join Date: May 2012
Rookie Year: 2012
Location: California
Posts: 9
dhe95 is an unknown quantity at this point
Re: Camera Extension not appearing in SmartDashboard

Yes, our extensions folder contains WPICameraExtension.jar and our vision jar file. It also includes a folder named lib which contains javacpp.jar, javacv.jar, javacv-windows-x86.jar, and WPIJavaCV.jar

In the view->Add menu, the extensions that show up are Image, Connection Indicator, Label, Robot Preferences, Camera, and Laptop Camera

EDIT: We got it to work by running SmartDashboard through command prompt. Just set directory to SmartDashboard and run
Code:
java -jar smartdashboard.jar

Last edited by dhe95 : 28-01-2013 at 23:00.
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 12:54.

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