View Single Post
  #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