Skip to content

Commit 2416df6

Browse files
author
Alexandre Roux
committed
1.0.0
0 parents  commit 2416df6

File tree

152 files changed

+31555
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

152 files changed

+31555
-0
lines changed

.gitignore

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# Built application files
2+
*.apk
3+
*.ap_
4+
5+
# Files for the dex VM
6+
*.dex
7+
8+
# Java class files
9+
*.class
10+
11+
# Generated files
12+
bin/
13+
gen/
14+
15+
# Local configuration file (sdk path, etc)
16+
local.properties
17+
18+
# Windows thumbnail db
19+
Thumbs.db
20+
21+
# OSX files
22+
.DS_Store
23+
24+
# Android Studio
25+
*.iml
26+
.idea
27+
.gradle
28+
build/
29+
.navigation
30+
captures/
31+
output.json
32+
33+
# NDK
34+
obj/
35+
.externalNativeBuild
36+
37+
# Keys
38+
keystore.properties
39+
keys/
40+
41+
# Android QiSDK project config
42+
robotsdk.xml
43+
44+
# GIMP project files
45+
*.xcf

AUTHORS.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
## Dynamic Conversation Menu library Authors
2+
3+
The Dynamic Conversation Menu library was written by the Developer Experience team at SoftBank Robotics, Paris, May 2021.
4+
5+
* **Alexandre Roux** (aroux@softbankrobotics.com)

LICENSE

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
Copyright (c) 2011-2021, SoftBank Robotics Europe
2+
All rights reserved.
3+
4+
Redistribution and use in source and binary forms, with or without
5+
modification, are permitted provided that the following conditions are met:
6+
* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
7+
* 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.
8+
* Neither the name of the SoftBank Robotics Europe nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
9+
10+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
11+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
12+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
13+
DISCLAIMED. IN NO EVENT SHALL SoftBank Robotics Europe BE LIABLE FOR ANY
14+
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
15+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
16+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
17+
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
18+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
19+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Navigation Toolkit Demo
2+
3+
![Screenshot of the main menu](./screenshot.png)
4+
5+
This Android app presents an implementation of various [SoftBank Robotics Labs libraries](https://github.com/softbankrobotics-labs/):
6+
- [Pepper Conversation Menu](https://github.com/softbankrobotics-labs/pepper-conversation-menu), used for all the menus in the app. It makes it possible to navigate in the menus by touching the tablet or by using the robot's `Chat`. For instance, to select the "Come Here" option on the main screen, say "Come here" to the robot.
7+
- [Pepper Extras](https://github.com/softbankrobotics-labs/pepper-extras), used to run `StubbornGoTo` actions. The `StubbornGoTo` action is like the `GoTo` action, but has a better success rate as it will retry with differents strategies if it fails.
8+
- [Pepper Follow Me](https://github.com/softbankrobotics-labs/pepper-follow-me), used to make the robot follow someone when asked to do so.
9+
- [Pepper Gamepad](https://github.com/softbankrobotics-labs/pepper-gamepad), used to control the robot with a gamepad.
10+
- [Pepper Point At](https://github.com/softbankrobotics-labs/pepper-point-at), used to make the robot show where its Home Frame is when asked to do so.
11+
12+
## Features
13+
14+
- Come Here: if Pepper has detected a human, it come near him and stop.
15+
- Follow Me: if Pepper has detected a human, it follow it until instructed to stop.
16+
- Gamepad: if a gamepad is connected to the tablet, instructions are displayed to explain how to make Pepper move. If a gamepad isn't connected, explanations are given on how to connect a gamepad to the tablet.
17+
- Mapping: this feature allows Pepper to look at its environment to build an [ExplorationMap](https://developer.softbankrobotics.com/pepper-qisdk/api/motion/reference/explorationmap#exploration-map). This allows Pepper to make more precise movements. It is also possible to use the gamepad to make Pepper move during the mapping.
18+
- Go Home: Pepper go to its Home Frame. The Home Frame is the center of the `ExplorationMap` Pepper has in memory.
19+
- Go To Pod: this feature launches an Activity from the [Autonomous Recharge Companion Library](https://github.com/aldebaran/qisdk-sample-autonomous-recharge-advanced-integration) to make Pepper go to its pod.
20+
- Point At Home: Pepper makes an animation to show where its Home Frame is.
21+
22+
## License
23+
24+
This project is licensed under the BSD 3-Clause "New" or "Revised" License. See the [LICENSE](LICENSE.md) file for details.

app/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/build

app/build.gradle

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
apply plugin: 'com.android.application'
2+
apply plugin: 'kotlin-android'
3+
apply plugin: 'kotlin-android-extensions'
4+
5+
android {
6+
compileSdkVersion 30
7+
buildToolsVersion "30.0.2"
8+
9+
defaultConfig {
10+
applicationId "com.softbankrobotics.dx.navigationtoolkitdemo"
11+
minSdkVersion 23
12+
targetSdkVersion 30
13+
versionCode 1
14+
versionName "1.0.0"
15+
16+
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
17+
}
18+
19+
buildTypes {
20+
release {
21+
minifyEnabled false
22+
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
23+
}
24+
}
25+
compileOptions {
26+
sourceCompatibility JavaVersion.VERSION_1_8
27+
targetCompatibility JavaVersion.VERSION_1_8
28+
}
29+
}
30+
31+
dependencies {
32+
implementation fileTree(dir: "libs", include: ["*.jar"])
33+
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
34+
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.4.2"
35+
implementation 'androidx.appcompat:appcompat:1.3.1'
36+
implementation 'androidx.constraintlayout:constraintlayout:2.1.0'
37+
implementation 'androidx.core:core-ktx:1.6.0'
38+
implementation 'androidx.recyclerview:recyclerview:1.2.1'
39+
implementation 'com.airbnb.android:lottie:3.6.0'
40+
implementation 'com.aldebaran:qisdk:1.7.5'
41+
implementation 'com.aldebaran:qisdk-design:1.7.5'
42+
implementation 'com.github.softbankrobotics-labs:dynamic-conversation-menu:1.0.0'
43+
implementation 'com.github.softbankrobotics-labs:pepper-extras:1.1.1'
44+
implementation 'com.github.softbankrobotics-labs:pepper-follow-me:1.0.1'
45+
implementation 'com.github.softbankrobotics-labs:pepper-gamepad:1.0.3'
46+
implementation 'com.github.softbankrobotics-labs:pepper-point-at:1.0.0'
47+
implementation 'pl.droidsonroids.gif:android-gif-drawable:1.2.3'
48+
implementation project(path: ':autonomousrecharge')
49+
}

app/lint.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<lint>
3+
<issue id="IconLocation">
4+
<ignore path="src/main/res/drawable/gamepad.png" />
5+
</issue>
6+
</lint>

app/proguard-rules.pro

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Add project specific ProGuard rules here.
2+
# You can control the set of applied configuration files using the
3+
# proguardFiles setting in build.gradle.
4+
#
5+
# For more details, see
6+
# http://developer.android.com/guide/developing/tools/proguard.html
7+
8+
# If your project uses WebView with JS, uncomment the following
9+
# and specify the fully qualified class name to the JavaScript interface
10+
# class:
11+
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
12+
# public *;
13+
#}
14+
15+
# Uncomment this to preserve the line number information for
16+
# debugging stack traces.
17+
#-keepattributes SourceFile,LineNumberTable
18+
19+
# If you keep the line number information, uncomment this to
20+
# hide the original source file name.
21+
#-renamesourcefileattribute SourceFile

app/src/main/AndroidManifest.xml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3+
xmlns:tools="http://schemas.android.com/tools"
4+
package="com.softbankrobotics.dx.navigationtoolkitdemo">
5+
6+
<uses-feature android:name="com.softbank.hardware.pepper" />
7+
8+
<uses-permission android:name="com.softbankrobotics.permission.AUTO_RECHARGE" />
9+
<uses-permission
10+
android:name="android.permission.WRITE_EXTERNAL_STORAGE"
11+
tools:ignore="ScopedStorage" />
12+
13+
<application
14+
android:allowBackup="true"
15+
android:fullBackupContent="@xml/backup_descriptor"
16+
android:icon="@mipmap/ic_launcher"
17+
android:label="@string/app_name"
18+
android:roundIcon="@mipmap/ic_launcher_round"
19+
android:supportsRtl="true"
20+
android:theme="@style/AppTheme">
21+
<activity android:name=".PointAtHomeActivity" />
22+
<activity android:name=".ChargingFlapActivity" />
23+
<activity android:name=".GoHomeActivity" />
24+
<activity android:name=".FollowMeActivity" />
25+
<activity android:name=".GamepadActivity" />
26+
<activity android:name=".DockingMenuActivity" />
27+
<activity android:name=".MappingActivity" />
28+
<activity android:name=".MappingMenuActivity" />
29+
<activity
30+
android:name=".MainActivity"
31+
android:launchMode="singleTask" />
32+
<activity android:name=".LocalizeActivity" />
33+
<activity android:name=".StartActivity">
34+
<intent-filter>
35+
<action android:name="android.intent.action.MAIN" />
36+
37+
<category android:name="android.intent.category.LAUNCHER" />
38+
</intent-filter>
39+
</activity>
40+
</application>
41+
42+
</manifest>

0 commit comments

Comments
 (0)