Git Product home page Git Product logo

steamwork2017's Introduction

Team 2984 Robot Code

This is team 2984's code for the 2017 robotics season, FIRST Steamworks.

Project Configuration for Mac

Eclipse

Full instructions can be found at:

Installing Eclipse (C++/Java)

Site:

http://first.wpi.edu/FRC/roborio/release/eclipse/

Add libraries to project with using Properties > Java Build Path > Add External Jars

Download and install Talon libraries (page, direct link).

After unzipping, add java/lib directory contents to:

$HOME/wpilib/user/java/

OpenCV

http://www.rmnd.net/install-and-use-opencv-3-0-on-mac-os-x-with-eclipse-java/

$ brew update
$ brew install ant
$ brew tap homebrew/science
$ brew install opencv3 --with-java
$ sudo cp /usr/local/Cellar/opencv3/3.2.0/share/OpenCV/java/libopencv_java320.dylib /Library/Java/Extensions/

Test for OpenCV

Create a new project. Add Hello.java:

import org.opencv.core.Core;
import org.opencv.core.CvType;
import org.opencv.core.Mat;
 
public class Hello
{
   public static void main( String[] args )
   {
      System.loadLibrary( Core.NATIVE_LIBRARY_NAME );
      Mat mat = Mat.eye( 3, 3, CvType.CV_8UC1 );
      System.out.println( "mat = " + mat.dump() );
   }
}

In project, right-click then properties. Add Library>External Jar. Point to:

/usr/local/Cellar/opencv3/3.2.0/share/OpenCV/java/opencv-320.jar

It should be unnecessary to link native code when the jarfile is included in this way.

steamwork2017's People

Contributors

pumuckl007 avatar rapodaca avatar vikingrobotics2984 avatar

Watchers

James Cloos avatar Grant Pauker avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.