Go to Post Basically, it just doesn't matter. - Mark Pettit [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

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 12-02-2012, 13:20
2526 2526 is offline
Crimson Robotics
FRC #2526 (Crimson Robotics)
Team Role: Teacher
 
Join Date: Feb 2008
Rookie Year: 2007
Location: Maple Grove Senior High
Posts: 10
2526 is an unknown quantity at this point
unable to compile camera code

After searching forums and docs we are still unable to build the code taken from the WPI user guide. I am using Netbeans, have plugins installed, and installed smartdashboard. I am trying to compile following code from user guide:

package com.crimsonrobotics;

import edu.wpi.first.smartdashboard.camera.WPICameraExten sion;
import edu.wpi.first.wpijavacv.WPIColorImage;
import edu.wpi.first.wpijavacv.WPIImage;

/**
*
* @author
* Wayne
*/
public class BasicCameraExtension extends WPICameraExtension {
//@Override
public WPIImage processImage(WPIColorImage rawImage) {
return rawImage.getRedChannel();
}
}

here are errors I get:

C:\Users\Wayne\Documents\NetBeansProjects\Team2526 Version5\src\com\crimsonrobotics\BasicCameraExtens ion.java:7: package edu.wpi.first.smartdashboard.camera does not exist
import edu.wpi.first.smartdashboard.camera.WPICameraExten sion;
C:\Users\Wayne\Documents\NetBeansProjects\Team2526 Version5\src\com\crimsonrobotics\BasicCameraExtens ion.java:8: package edu.wpi.first.wpijavacv does not exist
import edu.wpi.first.wpijavacv.WPIColorImage;
C:\Users\Wayne\Documents\NetBeansProjects\Team2526 Version5\src\com\crimsonrobotics\BasicCameraExtens ion.java:9: package edu.wpi.first.wpijavacv does not exist
import edu.wpi.first.wpijavacv.WPIImage;
C:\Users\Wayne\Documents\NetBeansProjects\Team2526 Version5\src\com\crimsonrobotics\BasicCameraExtens ion.java:16: cannot find symbol
symbol: class WPICameraExtension
public class BasicCameraExtension extends WPICameraExtension {
C:\Users\Wayne\Documents\NetBeansProjects\Team2526 Version5\src\com\crimsonrobotics\BasicCameraExtens ion.java:18: cannot find symbol
symbol : class WPIColorImage
location: class com.crimsonrobotics.BasicCameraExtension
public WPIImage processImage(WPIColorImage rawImage) {
C:\Users\Wayne\Documents\NetBeansProjects\Team2526 Version5\src\com\crimsonrobotics\BasicCameraExtens ion.java:18: cannot find symbol
symbol : class WPIImage
location: class com.crimsonrobotics.BasicCameraExtension
public WPIImage processImage(WPIColorImage rawImage) {
6 errors
C:\Users\Wayne\sunspotfrcsdk\ant\compile.xml:48: Compile failed; see the compiler error output for details.
BUILD FAILED (total time: 1 second)

Once we get past this we can be on our way. Any sugestions? I tried to add jars in all places I could to no avail.
Reply With Quote
 


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 11:41.

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