Giter Club home page Giter Club logo

moverio_apps's Introduction

Android Studio Configuration

Author: Long Qian

For reminding myself.

Common stuff

  • Make sure you have JAVA SDK installed and JAVA_HOME, JRE_HOME, PATH configured.
  • Download android studio
  • Add android_studio/bin to PATH, set alias for android_studio/bin/studio.sh for terminal startup. Put android studio binaries somewhere you have full authority.
  • Download android SDK and other tools via SDK manager. Set ANDROID_HOME and add it to PATH.

Gradle

  • Android studio comes with Gradle in android_studio/bin/gradle/gradle-x.y. Setup GRADLE_HOME, add $GRADLE_HOME/bin to PATH.
  • I prefer local Gradle to Gradle Wrapper, and choose the local one in preferences menu.
  • I prefer local mavenRepository to jcenter, and use mavenLocal() in buildscript.
  • Dependency:
buildscript {
    repositories {
        mavenLocal()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:1.3.0'
    }
}

Moverio API

  • Moverio API is

ARToolKit

ARToolKit is cool!

  • Copy ARBaseLib code in the workspace, and in aRBaseLib/build.gradle apply android library plugin:
apply plugin: 'com.android.library'
  • Make sure you compile the library prior to the app, add the following to app/build.gradle:
dependencies {
    compile project(':aRBaseLib')
    compile fileTree(dir: 'libs', include: ['*.jar'])
}

ROS Android

ROS Android is awesome!

  • Install rosjava_core first. This will create you a local rosjava maven repository.
  • Compiling android_core from source is troublesome. An easier way is to clone the rosjava_mvn_repo to your local maven repository, add your local maven repository to your buildscript and you are done! Create ROS Android package as normal android package! Forget about rosjava_catkin!
  • A sample top level build.gradle for ROS Android project:
buildscript {
    def rosMavenPath = "$System.env.ROS_MAVEN_PATH".split(':').collect { 'file://' + it }
    repositories {
        rosMavenPath.each { p ->
            maven {
                url p
            }
        }
        mavenLocal()
    }
    dependencies {
        classpath 'org.ros.rosjava_bootstrap:gradle_plugins:0.2.1'
        classpath 'com.android.tools.build:gradle:1.3.0'
    }
}
allprojects {
    group 'org.lcsr.moverio'
}
subprojects {
    apply plugin: 'ros-android'
    apply plugin: 'com.android.application'
}
defaultTasks 'assembleRelease', 'uploadArchives'

  • Dependencies for a specific application in app/build.gradle:
dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    compile 'org.ros.rosjava_core:rosjava:0.2.1'
    compile 'org.ros.rosjava_messages:sensor_msgs:1.11.7'
    compile 'org.ros.android_core:android_gingerbread_mr1:0.1.2'
}

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.