Android App for the frobomind mobile robot, using ROSjava
#Creating a workspace with the git repo
(Tested on windows)
Prerequisites: Android studio with API 15 installed, but android studio normaly finds missing API by itself, and ask you to install.
//open bashrc (skip on windows)
$ sudo gedit ~/.bachrc (skip on windows)
//add the following at the button (skip on windows)
export PATH=${PATH}:/YourPath/Android/Sdk/tools:/YourPath/Android/Sdk/platform-tools:/YourPath/android-studio/bin
export ANDROID_HOME=/YourPath/Android/Sdk
//clone the repo (start from here on windows, The example uses "git bash")
$ git clone "repo url"
$ source devel/setup.bash (skip on windows)
//start android studio from the same terminal (skip on windows)
$ /YourPath/android-studio/bin/studio.sh (skip on windows, just start android studio)
Now Import (not open!) project at the path AndroidUI/src/android_ui in android studio
you should now be good to go.
#Getting stated with ROSjava and Android Core
This guide will help you make an app that connects to a roscore on the network and publish images from the camera.
Before you start you must have ROS indigo and Android Studio install on Ubuntu.
Set PATH of android studio and sdk:
$ echo export PATH=${PATH}:/opt/Android/Sdk/tools:/opt/Android/Sdk/platform-tools:/opt/android-studio/bin >> ~/.bashrc
$ echo export ANDROID_HOME=/opt/Android/Sdk >> ~/.bashrc
Make sure you have installed:
Android SDK Build Tools 21.2 (21.1.2 should work fine)
Android APIs:
10 (gingerbread)
13 (honeycomb)
15 (ice cream)
18 (jellybean)
21 (LOLLIPOP).
Use the standalone SDK Manager, otherwise you wont be able to find all API's (can be launced from within Android Stuido)
Complete step 2 and 3.1 in this guide (http://wiki.ros.org/rosjava/Tutorials/indigo/Source%20Installation).
Follow this guide (http://wiki.ros.org/android/Tutorials/indigo/Installation%20-%20ROS%20Development%20Environment) (from step 4.1).
When you have completed step 5.1 you got an app that, connects to the roscore and published images from the mobile camera.