Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorporate changes #4

Open
wants to merge 36 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
50b2d47
Added - Updates by @talregev
goldbattle Jan 5, 2016
62120bc
Added - Toggle view
goldbattle Jan 6, 2016
f1b6b48
Removed - Old random files
goldbattle Jan 6, 2016
36e4ce4
Added - Config page content
goldbattle Jan 6, 2016
bd06562
Added - Config submit button
goldbattle Jan 6, 2016
36c3e0d
Added - Configuration of what nodes are running, live updates
goldbattle Jan 7, 2016
971dfc0
Cleaned - Unnneded code
goldbattle Jan 7, 2016
af98bd3
Changed - Topics
goldbattle Jan 7, 2016
c3fa4ba
Added - Toast if the node creation failed, let the user know what hap…
goldbattle Jan 7, 2016
253bfde
Changed - Run in both orientations
goldbattle Jan 7, 2016
f0784b5
Fixed - Annoying highlighting of input on activity start
goldbattle Jan 7, 2016
b2925b5
Added - Working camera connection, limited to 2 cameras at a time though
goldbattle Jan 8, 2016
82af828
Added - Generation of camera list
goldbattle Jan 8, 2016
ca8f9df
Added - degree symbol, and rearranged config page
goldbattle Jan 8, 2016
dfab0d8
Added - Second itteration on camera, uses opencv
goldbattle Jan 8, 2016
07d87f1
Added - Semiworking config code
goldbattle Jan 8, 2016
ce3463d
Added - Mostly working camera code on tango, need to get it working o…
goldbattle Jan 8, 2016
10c6f64
Added - New configuration, need to implement still
goldbattle Jan 11, 2016
1df6879
Added - Simple impmentation on publisher config
goldbattle Jan 11, 2016
967064b
Added - Dropdown styles, and rest of implmentation for configuration
goldbattle Jan 11, 2016
f1cdff2
Fixed - RDG color
goldbattle Jan 11, 2016
394523e
Added - Screenshots
goldbattle Jan 11, 2016
5cddbbe
Added - Image raw, note that there is a memory error so the app needs…
goldbattle Jan 13, 2016
b671a47
Changed - A bunch of stuff
goldbattle Jan 15, 2016
72c0869
Removed - Left in local file
goldbattle Jan 15, 2016
b7b2a7b
Init README
plieningerweb Jan 12, 2017
ce1e558
Doc: Add compile instructions
plieningerweb Jan 12, 2017
213ac41
Doc: Fix identation
plieningerweb Jan 12, 2017
484932d
Doc: Fix code formatting
plieningerweb Jan 12, 2017
175cdd7
Merge pull request #1 from plieningerweb/master
goldbattle Jan 12, 2017
e96c78a
Update README.md
goldbattle Jan 12, 2017
27f0a0d
Update README.md
goldbattle Jan 12, 2017
2b9bc04
Started upgrade to new gradle and android versions
goldbattle Oct 27, 2017
1e03b3b
Building with new versions
goldbattle Oct 27, 2017
ea15b0e
Added - Working GPS listener using google play services
goldbattle Oct 27, 2017
482c002
Added - New screenshots
goldbattle Oct 27, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
*~
~*
.classpath
.gradle
.project
Expand All @@ -19,3 +17,5 @@ project.properties
.idea
build.log
build-log.xml
*~
*.log
64 changes: 0 additions & 64 deletions AndroidManifest.xml

This file was deleted.

15 changes: 15 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
cmake_minimum_required(VERSION 2.8.3)
project(android_ros_drivers)

find_package(catkin REQUIRED rosjava_build_tools)

catkin_android_setup(assembleRelease uploadArchives)

catkin_package()

##############################################################################
# Installation
##############################################################################

install(DIRECTORY ${CATKIN_DEVEL_PREFIX}/${CATKIN_GLOBAL_MAVEN_DESTINATION}/android_ros_drivers/
DESTINATION ${CATKIN_GLOBAL_MAVEN_DESTINATION}/android_ros_drivers)
32 changes: 32 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# ROS Driver for Android Sensors
This is a nice android application that allows for publishing of data from a phone to a publish ROS master.
This can be used to record a ROS bag of data or to preform SLAM on a higher powered computer.
Note that this only works on phones that use the Camera1 API (so no newer camera2 api phones).
If you are interested in recording data for a Camera2 API phone check out our other repository [android-dataset-recorder](https://github.com/rpng/android-dataset-recorder).
Also note that on some phones the number of cameras that you can use is limited (and thus if you select more the app will fail).
This is caused by a limit to the bandwidth over the camera buses on the physical phone hardware.



## How to compile and install?

* Downlaod Android Studio and install https://developer.android.com/studio/index.html
* run `git clone https://github.com/rpng/android_sensors_driver.git android_sensor_project`
* open android_sensor_porject as existing project in Android Studio
* Press run button
* Build will fail but suggest to install missing frameworks. Click on the link, install missing, and press run again.
* You can choose to run on a simulator or on your phone
* Phone
* Your phone must have developer mode enabled.
* Enter IP of rosmaster
* Emulator
* IP of localhost of emulator computer is 10.0.0.2
* Enter 10.0.0.2 in your app in emulator, if ros is running at your local computer as well


## Screenshots

![Screenshot 1](screenshots/Screenshot_2016-01-11-11-53-21.png)
![Screenshot 2](screenshots/Screenshot_2016-01-11-11-48-04.png)
![Screenshot 3](screenshots/Screenshot_2017-10-27-12-22-12.png)
![Screenshot 4](screenshots/Screenshot_2017-10-27-12-25-37.png)
75 changes: 46 additions & 29 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,42 +1,59 @@
/*
* Copyright (C) 2011 Google Inc.
* Copyright (c) 2015, Tal Regev
* All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* http://www.apache.org/licenses/LICENSE-2.0
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* * Neither the name of the Android Sensors Driver nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/



dependencies {
compile "org.ros.rosjava_core:rosjava:0.2.0"
compile "org.ros.rosjava_core:rosjava_tutorial_pubsub:[0,)"
compile 'com.android.support:support-v4:21.0.0'
compile project(':android_15')

task wrapper(type: Wrapper) {
gradleVersion = "2.14.1"
}

buildscript {
apply from: "https://github.com/rosjava/android_core/raw/kinetic/buildscript.gradle"
}

apply plugin: 'android'

/*debug.dependsOn project(':android_gingerbread_mr1').tasks.debug*/
apply plugin: "catkin"

android {
compileSdkVersion 15
allprojects {
group "org"
version = project.catkin.pkg.version
}

defaultConfig {
minSdkVersion 15
applicationId "org.ros.android.android_sensor_driver"
targetSdkVersion 15
versionCode 1
versionName "1.0"
subprojects {
apply plugin: 'ros-android'
afterEvaluate { project ->
android {
// Exclude a few files that are duplicated across our dependencies and
// prevent packaging Android applications.
packagingOptions {
exclude "META-INF/LICENSE.txt"
exclude "META-INF/NOTICE.txt"
}
}
}
}

defaultTasks 'jar' , 'assembleRelease', 'uploadArchives'
92 changes: 0 additions & 92 deletions build.xml

This file was deleted.

11 changes: 0 additions & 11 deletions buildAll.sh

This file was deleted.

13 changes: 13 additions & 0 deletions cv_bridge/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="cv_bridge">
</manifest>


<!--<?xml version="1.0" encoding="utf-8"?>-->
<!--<manifest xmlns:android="http://schemas.android.com/apk/res/android"-->
<!--package="cv_bridge">-->
<!--<application-->
<!--android:icon="@mipmap/ros_icon"-->
<!--android:label="@string/app_name">-->
<!--</application>-->
<!--</manifest>-->
29 changes: 29 additions & 0 deletions cv_bridge/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
//apply plugin: "ros-android"
apply plugin: "com.android.library"

dependencies {
compile 'org.ros.android_core:android_10:[0.3,0.4)'
// compile "org.ros.rosjava_core:rosjava:[0.2,0.3)"
// compile "org.ros.rosjava_messages:sensor_msgs:[1.11,1.12)"
compile project(':opencv3')
compile project(':image')
}


android {
compileSdkVersion 25
buildToolsVersion "25.0.2"
defaultConfig {
minSdkVersion 10
targetSdkVersion 25
}
sourceSets {
main {
manifest.srcFile 'AndroidManifest.xml'
java.srcDirs = ['src']
resources.srcDirs = ['src']
res.srcDirs = ['res']
aidl.srcDirs = ['src']
}
}
}
Binary file added cv_bridge/res/mipmap-hdpi/ros_icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added cv_bridge/res/mipmap-ldpi/ros_icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added cv_bridge/res/mipmap-mdpi/ros_icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions cv_bridge/res/values/common_strings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>

<string name="app_name">cv_bridge for Android</string>
</resources>
Loading