diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..363aad3 --- /dev/null +++ b/.gitignore @@ -0,0 +1,43 @@ +# Built application files +*.apk +*.ap_ + +# Files for the dex VM +*.dex + +# Java class files +*.class + +# Generated files +bin/ +gen/ + +# Local configuration file (sdk path, etc) +local.properties + +# Windows thumbnail db +Thumbs.db + +# OSX files +.DS_Store + +# Android Studio +*.iml +.idea +.gradle +build/ +.navigation +captures/ +output.json + +# NDK +obj/ +.externalNativeBuild + +# Keys +keystore.properties +keys/ + + +# Android QiSDK project config +robotsdk.xml diff --git a/AUTHORS.md b/AUTHORS.md new file mode 100644 index 0000000..0a89af9 --- /dev/null +++ b/AUTHORS.md @@ -0,0 +1,5 @@ +## Solitaries Loop library Authors + +The Solitaries Loop library was written by the Developer Experience team at Softbank Robotics, Paris, February 2020. + +* **Alexandre Roux** (aroux@softbankrobotics.com) \ No newline at end of file diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..177ec4e --- /dev/null +++ b/LICENSE @@ -0,0 +1,19 @@ +Copyright (c) 2011-2019, SoftBank Robotics Europe +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: +* 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 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. + +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 SoftBank Robotics Europe 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. diff --git a/README.md b/README.md new file mode 100644 index 0000000..55d8edf --- /dev/null +++ b/README.md @@ -0,0 +1,64 @@ +# Animated Solitaries Library + +This Android Library allows you to create a solitaries animations loop. A solitary animation is an animation that the robot +runs when it's alone to attract people. + +With this library, you can also define at which frequency you want the animations to run. By default, this value is set +to 60 seconds. **We advise you to not set this value below 30 seconds** or it may result in complains about robot being noisy +and impossible to reach. + +The solitaries animation loop can then be started and stopped whenever you want. + +## Getting Started + + +### Prerequisites + +A robotified project for Pepper with QiSDK. Read the [documentation](https://developer.softbankrobotics.com/pepper-qisdk) if needed. + +### Running the Sample Application + +The project comes complete with a sample project. You can clone the repository, open it in Android Studio, and run +this directly onto a robot. + +The sample demonstrate how to use the library in a project and what to do to avoid solitaries animations interacting +with your animations. + +Full implementation details are available to see in the project. + +### Installing + +[**Follow these instructions**](https://jitpack.io/#softbankrobotics-labs/solitaries-loop) + +Make sure to replace 'Tag' by the number of the version of the library you want to use. + + +## Usage + +*This README assumes some standard setup can be done by the user, such as initialising variables or implementing code in the correct functions. Refer to the Sample Project for full usage code.* + +Initialise the QiSDK in the onCreate. If you are unsure how to do this, refer to the QiSDK tutorials [here](https://qisdk.softbankrobotics.com/sdk/doc/pepper-sdk/ch1_gettingstarted/starting_project.html) +``` +QiSDK.register(this, this) +``` +In the `onRobotFocusGained`, instantiate a `AnimatedSolitary` object by passing it the QiContext and start the loop: +``` +animatedSolitary = AnimatedSolitary(qiContext) +``` +You can also define the frequency at which you want the animations to run (time in seconds): +``` +animatedSolitary = AnimatedSolitary(qiContext, 40) +``` +Start the solitaries loop whenever you want (for instance if no human has been detected around the robot for X minutes): +``` +animatedSolitary.start() +``` +Stop the solitaries loop whenever you want (for instance if a human is engaged or if you loose the robot focus): +``` +animatedSolitary.stop() +``` + + +## License + +This project is licensed under the BSD 3-Clause "New" or "Revised" License. See the [LICENSE](LICENSE.md) file for details. \ No newline at end of file diff --git a/animated-solitaries-root/.gitignore b/animated-solitaries-root/.gitignore new file mode 100644 index 0000000..603b140 --- /dev/null +++ b/animated-solitaries-root/.gitignore @@ -0,0 +1,14 @@ +*.iml +.gradle +/local.properties +/.idea/caches +/.idea/libraries +/.idea/modules.xml +/.idea/workspace.xml +/.idea/navEditor.xml +/.idea/assetWizardSettings.xml +.DS_Store +/build +/captures +.externalNativeBuild +.cxx diff --git a/animated-solitaries-root/build.gradle b/animated-solitaries-root/build.gradle new file mode 100644 index 0000000..834081b --- /dev/null +++ b/animated-solitaries-root/build.gradle @@ -0,0 +1,31 @@ +// Top-level build file where you can add configuration options common to all sub-projects/modules. + +buildscript { + ext.kotlin_version = '1.3.50' + repositories { + google() + jcenter() + + } + dependencies { + classpath 'com.android.tools.build:gradle:3.6.1' + classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" + // NOTE: Do not place your application dependencies here; they belong + // in the individual module build.gradle files + } +} + +allprojects { + repositories { + google() + jcenter() + maven { + url 'https://qisdk.softbankrobotics.com/sdk/maven' + } + + } +} + +task clean(type: Delete) { + delete rootProject.buildDir +} diff --git a/animated-solitaries-root/gradle.properties b/animated-solitaries-root/gradle.properties new file mode 100644 index 0000000..23339e0 --- /dev/null +++ b/animated-solitaries-root/gradle.properties @@ -0,0 +1,21 @@ +# Project-wide Gradle settings. +# IDE (e.g. Android Studio) users: +# Gradle settings configured through the IDE *will override* +# any settings specified in this file. +# For more details on how to configure your build environment visit +# http://www.gradle.org/docs/current/userguide/build_environment.html +# Specifies the JVM arguments used for the daemon process. +# The setting is particularly useful for tweaking memory settings. +org.gradle.jvmargs=-Xmx1536m +# When configured, Gradle will run in incubating parallel mode. +# This option should only be used with decoupled projects. More details, visit +# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects +# org.gradle.parallel=true +# AndroidX package structure to make it clearer which packages are bundled with the +# Android operating system, and which are packaged with your app's APK +# https://developer.android.com/topic/libraries/support-library/androidx-rn +android.useAndroidX=true +# Automatically convert third-party libraries to use AndroidX +android.enableJetifier=true +# Kotlin code style for this project: "official" or "obsolete": +kotlin.code.style=official diff --git a/animated-solitaries-root/gradle/wrapper/gradle-wrapper.jar b/animated-solitaries-root/gradle/wrapper/gradle-wrapper.jar new file mode 100644 index 0000000..f6b961f Binary files /dev/null and b/animated-solitaries-root/gradle/wrapper/gradle-wrapper.jar differ diff --git a/animated-solitaries-root/gradle/wrapper/gradle-wrapper.properties b/animated-solitaries-root/gradle/wrapper/gradle-wrapper.properties new file mode 100644 index 0000000..e543f33 --- /dev/null +++ b/animated-solitaries-root/gradle/wrapper/gradle-wrapper.properties @@ -0,0 +1,6 @@ +#Fri Mar 13 11:40:12 CET 2020 +distributionBase=GRADLE_USER_HOME +distributionPath=wrapper/dists +zipStoreBase=GRADLE_USER_HOME +zipStorePath=wrapper/dists +distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.4-all.zip diff --git a/animated-solitaries-root/gradlew b/animated-solitaries-root/gradlew new file mode 100755 index 0000000..cccdd3d --- /dev/null +++ b/animated-solitaries-root/gradlew @@ -0,0 +1,172 @@ +#!/usr/bin/env sh + +############################################################################## +## +## Gradle start up script for UN*X +## +############################################################################## + +# Attempt to set APP_HOME +# Resolve links: $0 may be a link +PRG="$0" +# Need this for relative symlinks. +while [ -h "$PRG" ] ; do + ls=`ls -ld "$PRG"` + link=`expr "$ls" : '.*-> \(.*\)$'` + if expr "$link" : '/.*' > /dev/null; then + PRG="$link" + else + PRG=`dirname "$PRG"`"/$link" + fi +done +SAVED="`pwd`" +cd "`dirname \"$PRG\"`/" >/dev/null +APP_HOME="`pwd -P`" +cd "$SAVED" >/dev/null + +APP_NAME="Gradle" +APP_BASE_NAME=`basename "$0"` + +# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +DEFAULT_JVM_OPTS="" + +# Use the maximum available, or set MAX_FD != -1 to use that value. +MAX_FD="maximum" + +warn () { + echo "$*" +} + +die () { + echo + echo "$*" + echo + exit 1 +} + +# OS specific support (must be 'true' or 'false'). +cygwin=false +msys=false +darwin=false +nonstop=false +case "`uname`" in + CYGWIN* ) + cygwin=true + ;; + Darwin* ) + darwin=true + ;; + MINGW* ) + msys=true + ;; + NONSTOP* ) + nonstop=true + ;; +esac + +CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar + +# Determine the Java command to use to start the JVM. +if [ -n "$JAVA_HOME" ] ; then + if [ -x "$JAVA_HOME/jre/sh/java" ] ; then + # IBM's JDK on AIX uses strange locations for the executables + JAVACMD="$JAVA_HOME/jre/sh/java" + else + JAVACMD="$JAVA_HOME/bin/java" + fi + if [ ! -x "$JAVACMD" ] ; then + die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." + fi +else + JAVACMD="java" + which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." +fi + +# Increase the maximum file descriptors if we can. +if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then + MAX_FD_LIMIT=`ulimit -H -n` + if [ $? -eq 0 ] ; then + if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then + MAX_FD="$MAX_FD_LIMIT" + fi + ulimit -n $MAX_FD + if [ $? -ne 0 ] ; then + warn "Could not set maximum file descriptor limit: $MAX_FD" + fi + else + warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" + fi +fi + +# For Darwin, add options to specify how the application appears in the dock +if $darwin; then + GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" +fi + +# For Cygwin, switch paths to Windows format before running java +if $cygwin ; then + APP_HOME=`cygpath --path --mixed "$APP_HOME"` + CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` + JAVACMD=`cygpath --unix "$JAVACMD"` + + # We build the pattern for arguments to be converted via cygpath + ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` + SEP="" + for dir in $ROOTDIRSRAW ; do + ROOTDIRS="$ROOTDIRS$SEP$dir" + SEP="|" + done + OURCYGPATTERN="(^($ROOTDIRS))" + # Add a user-defined pattern to the cygpath arguments + if [ "$GRADLE_CYGPATTERN" != "" ] ; then + OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" + fi + # Now convert the arguments - kludge to limit ourselves to /bin/sh + i=0 + for arg in "$@" ; do + CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` + CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option + + if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition + eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` + else + eval `echo args$i`="\"$arg\"" + fi + i=$((i+1)) + done + case $i in + (0) set -- ;; + (1) set -- "$args0" ;; + (2) set -- "$args0" "$args1" ;; + (3) set -- "$args0" "$args1" "$args2" ;; + (4) set -- "$args0" "$args1" "$args2" "$args3" ;; + (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; + (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; + (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; + (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; + (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; + esac +fi + +# Escape application args +save () { + for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done + echo " " +} +APP_ARGS=$(save "$@") + +# Collect all arguments for the java command, following the shell quoting and substitution rules +eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS" + +# by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong +if [ "$(uname)" = "Darwin" ] && [ "$HOME" = "$PWD" ]; then + cd "$(dirname "$0")" +fi + +exec "$JAVACMD" "$@" diff --git a/animated-solitaries-root/gradlew.bat b/animated-solitaries-root/gradlew.bat new file mode 100644 index 0000000..f955316 --- /dev/null +++ b/animated-solitaries-root/gradlew.bat @@ -0,0 +1,84 @@ +@if "%DEBUG%" == "" @echo off +@rem ########################################################################## +@rem +@rem Gradle startup script for Windows +@rem +@rem ########################################################################## + +@rem Set local scope for the variables with windows NT shell +if "%OS%"=="Windows_NT" setlocal + +set DIRNAME=%~dp0 +if "%DIRNAME%" == "" set DIRNAME=. +set APP_BASE_NAME=%~n0 +set APP_HOME=%DIRNAME% + +@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +set DEFAULT_JVM_OPTS= + +@rem Find java.exe +if defined JAVA_HOME goto findJavaFromJavaHome + +set JAVA_EXE=java.exe +%JAVA_EXE% -version >NUL 2>&1 +if "%ERRORLEVEL%" == "0" goto init + +echo. +echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:findJavaFromJavaHome +set JAVA_HOME=%JAVA_HOME:"=% +set JAVA_EXE=%JAVA_HOME%/bin/java.exe + +if exist "%JAVA_EXE%" goto init + +echo. +echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:init +@rem Get command-line arguments, handling Windows variants + +if not "%OS%" == "Windows_NT" goto win9xME_args + +:win9xME_args +@rem Slurp the command line arguments. +set CMD_LINE_ARGS= +set _SKIP=2 + +:win9xME_args_slurp +if "x%~1" == "x" goto execute + +set CMD_LINE_ARGS=%* + +:execute +@rem Setup the command line + +set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar + +@rem Execute Gradle +"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% + +:end +@rem End local scope for the variables with windows NT shell +if "%ERRORLEVEL%"=="0" goto mainEnd + +:fail +rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of +rem the _cmd.exe /c_ return code! +if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 +exit /b 1 + +:mainEnd +if "%OS%"=="Windows_NT" endlocal + +:omega diff --git a/animated-solitaries-root/sample-app/.gitignore b/animated-solitaries-root/sample-app/.gitignore new file mode 100644 index 0000000..796b96d --- /dev/null +++ b/animated-solitaries-root/sample-app/.gitignore @@ -0,0 +1 @@ +/build diff --git a/animated-solitaries-root/sample-app/build.gradle b/animated-solitaries-root/sample-app/build.gradle new file mode 100644 index 0000000..f3bc8ce --- /dev/null +++ b/animated-solitaries-root/sample-app/build.gradle @@ -0,0 +1,39 @@ +apply plugin: 'com.android.application' + +apply plugin: 'kotlin-android' + +apply plugin: 'kotlin-android-extensions' + +android { + compileSdkVersion 29 + buildToolsVersion "29.0.2" + defaultConfig { + applicationId "com.softbankrobotics.dx.solitariesloop" + minSdkVersion 23 + targetSdkVersion 29 + versionCode 1 + versionName "1.0.0" + testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" + } + buildTypes { + release { + minifyEnabled false + proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' + } + } + compileOptions { + sourceCompatibility = 1.8 + targetCompatibility = 1.8 + } +} + +dependencies { + implementation fileTree(dir: 'libs', include: ['*.jar']) + implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" + implementation 'androidx.appcompat:appcompat:1.1.0' + implementation 'androidx.core:core-ktx:1.2.0' + implementation 'androidx.constraintlayout:constraintlayout:1.1.3' + implementation 'com.aldebaran:qisdk:1.6.7' + implementation 'com.aldebaran:qisdk-design:1.6.7' + implementation project(':solitaries-loop') +} diff --git a/animated-solitaries-root/sample-app/proguard-rules.pro b/animated-solitaries-root/sample-app/proguard-rules.pro new file mode 100644 index 0000000..f1b4245 --- /dev/null +++ b/animated-solitaries-root/sample-app/proguard-rules.pro @@ -0,0 +1,21 @@ +# Add project specific ProGuard rules here. +# You can control the set of applied configuration files using the +# proguardFiles setting in build.gradle. +# +# For more details, see +# http://developer.android.com/guide/developing/tools/proguard.html + +# If your project uses WebView with JS, uncomment the following +# and specify the fully qualified class name to the JavaScript interface +# class: +#-keepclassmembers class fqcn.of.javascript.interface.for.webview { +# public *; +#} + +# Uncomment this to preserve the line number information for +# debugging stack traces. +#-keepattributes SourceFile,LineNumberTable + +# If you keep the line number information, uncomment this to +# hide the original source file name. +#-renamesourcefileattribute SourceFile diff --git a/animated-solitaries-root/sample-app/src/main/AndroidManifest.xml b/animated-solitaries-root/sample-app/src/main/AndroidManifest.xml new file mode 100644 index 0000000..0f34096 --- /dev/null +++ b/animated-solitaries-root/sample-app/src/main/AndroidManifest.xml @@ -0,0 +1,22 @@ + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/animated-solitaries-root/sample-app/src/main/java/com/softbankrobotics/dx/solitariesloop/MainActivity.kt b/animated-solitaries-root/sample-app/src/main/java/com/softbankrobotics/dx/solitariesloop/MainActivity.kt new file mode 100644 index 0000000..68970a2 --- /dev/null +++ b/animated-solitaries-root/sample-app/src/main/java/com/softbankrobotics/dx/solitariesloop/MainActivity.kt @@ -0,0 +1,79 @@ +package com.softbankrobotics.dx.solitariesloop + +import android.os.Bundle +import android.util.Log +import com.aldebaran.qi.sdk.QiContext +import com.aldebaran.qi.sdk.QiSDK +import com.aldebaran.qi.sdk.RobotLifecycleCallbacks +import com.aldebaran.qi.sdk.design.activity.RobotActivity +import com.aldebaran.qi.sdk.design.activity.conversationstatus.SpeechBarDisplayStrategy +import kotlinx.android.synthetic.main.activity_main.* + +class MainActivity : RobotActivity(), RobotLifecycleCallbacks { + + companion object { + private const val TAG = "MainActivity" + } + + private lateinit var qiContext: QiContext + + private lateinit var solitariesLoop: SolitariesLoop + + override fun onCreate(savedInstanceState: Bundle?) { + super.onCreate(savedInstanceState) + QiSDK.register(this, this) + setContentView(R.layout.activity_main) + setSpeechBarDisplayStrategy(SpeechBarDisplayStrategy.IMMERSIVE) + } + + override fun onRobotFocusGained(qiContext: QiContext) { + Log.i(TAG, "onRobotFocusGained") + this.qiContext = qiContext + + // Build the solitaries loop (60 sec. delay by default) + solitariesLoop = SolitariesLoop(qiContext) + + // Look for humans around + val activity = this + qiContext.humanAwareness.addOnHumansAroundChangedListener { + Log.d(TAG, "onHumansAroundChangedListener: ${it.size}") + if (it.size == 0) { + // When no human is around + solitariesLoop.start() + activity.runOnUiThread { + textView.text = getString(R.string.come) + } + } else { + // When a human is detected + solitariesLoop.stop() + activity.runOnUiThread { + textView.text = getString(R.string.hello) + } + } + } + + Log.d(TAG, "Humans around at start: ${qiContext.humanAwareness.humansAround.size}") + // If no human is engaged by the robot at app launch, start the loop + if (qiContext.humanAwareness.humansAround.size == 0) { + solitariesLoop.start() + runOnUiThread { + textView.text = getString(R.string.come) + } + } + } + + override fun onRobotFocusLost() { + Log.i(TAG, "onRobotFocusLost") + solitariesLoop.stop() + qiContext.humanAwareness.removeAllOnHumansAroundChangedListeners() + } + + override fun onRobotFocusRefused(reason: String?) { + Log.e(TAG, "onRobotFocusRefused: $reason") + } + + override fun onDestroy() { + super.onDestroy() + QiSDK.unregister(this, this) + } +} diff --git a/animated-solitaries-root/sample-app/src/main/res/drawable-v24/ic_launcher_foreground.xml b/animated-solitaries-root/sample-app/src/main/res/drawable-v24/ic_launcher_foreground.xml new file mode 100644 index 0000000..1f6bb29 --- /dev/null +++ b/animated-solitaries-root/sample-app/src/main/res/drawable-v24/ic_launcher_foreground.xml @@ -0,0 +1,34 @@ + + + + + + + + + + + diff --git a/animated-solitaries-root/sample-app/src/main/res/drawable/ic_launcher_background.xml b/animated-solitaries-root/sample-app/src/main/res/drawable/ic_launcher_background.xml new file mode 100644 index 0000000..0d025f9 --- /dev/null +++ b/animated-solitaries-root/sample-app/src/main/res/drawable/ic_launcher_background.xml @@ -0,0 +1,170 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/animated-solitaries-root/sample-app/src/main/res/layout/activity_main.xml b/animated-solitaries-root/sample-app/src/main/res/layout/activity_main.xml new file mode 100644 index 0000000..6e6790f --- /dev/null +++ b/animated-solitaries-root/sample-app/src/main/res/layout/activity_main.xml @@ -0,0 +1,20 @@ + + + + + + \ No newline at end of file diff --git a/animated-solitaries-root/sample-app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml b/animated-solitaries-root/sample-app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml new file mode 100644 index 0000000..eca70cf --- /dev/null +++ b/animated-solitaries-root/sample-app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/animated-solitaries-root/sample-app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml b/animated-solitaries-root/sample-app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml new file mode 100644 index 0000000..eca70cf --- /dev/null +++ b/animated-solitaries-root/sample-app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/animated-solitaries-root/sample-app/src/main/res/mipmap-hdpi/ic_launcher.png b/animated-solitaries-root/sample-app/src/main/res/mipmap-hdpi/ic_launcher.png new file mode 100644 index 0000000..898f3ed Binary files /dev/null and b/animated-solitaries-root/sample-app/src/main/res/mipmap-hdpi/ic_launcher.png differ diff --git a/animated-solitaries-root/sample-app/src/main/res/mipmap-hdpi/ic_launcher_round.png b/animated-solitaries-root/sample-app/src/main/res/mipmap-hdpi/ic_launcher_round.png new file mode 100644 index 0000000..dffca36 Binary files /dev/null and b/animated-solitaries-root/sample-app/src/main/res/mipmap-hdpi/ic_launcher_round.png differ diff --git a/animated-solitaries-root/sample-app/src/main/res/mipmap-mdpi/ic_launcher.png b/animated-solitaries-root/sample-app/src/main/res/mipmap-mdpi/ic_launcher.png new file mode 100644 index 0000000..64ba76f Binary files /dev/null and b/animated-solitaries-root/sample-app/src/main/res/mipmap-mdpi/ic_launcher.png differ diff --git a/animated-solitaries-root/sample-app/src/main/res/mipmap-mdpi/ic_launcher_round.png b/animated-solitaries-root/sample-app/src/main/res/mipmap-mdpi/ic_launcher_round.png new file mode 100644 index 0000000..dae5e08 Binary files /dev/null and b/animated-solitaries-root/sample-app/src/main/res/mipmap-mdpi/ic_launcher_round.png differ diff --git a/animated-solitaries-root/sample-app/src/main/res/mipmap-xhdpi/ic_launcher.png b/animated-solitaries-root/sample-app/src/main/res/mipmap-xhdpi/ic_launcher.png new file mode 100644 index 0000000..e5ed465 Binary files /dev/null and b/animated-solitaries-root/sample-app/src/main/res/mipmap-xhdpi/ic_launcher.png differ diff --git a/animated-solitaries-root/sample-app/src/main/res/mipmap-xhdpi/ic_launcher_round.png b/animated-solitaries-root/sample-app/src/main/res/mipmap-xhdpi/ic_launcher_round.png new file mode 100644 index 0000000..14ed0af Binary files /dev/null and b/animated-solitaries-root/sample-app/src/main/res/mipmap-xhdpi/ic_launcher_round.png differ diff --git a/animated-solitaries-root/sample-app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/animated-solitaries-root/sample-app/src/main/res/mipmap-xxhdpi/ic_launcher.png new file mode 100644 index 0000000..b0907ca Binary files /dev/null and b/animated-solitaries-root/sample-app/src/main/res/mipmap-xxhdpi/ic_launcher.png differ diff --git a/animated-solitaries-root/sample-app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png b/animated-solitaries-root/sample-app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png new file mode 100644 index 0000000..d8ae031 Binary files /dev/null and b/animated-solitaries-root/sample-app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png differ diff --git a/animated-solitaries-root/sample-app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/animated-solitaries-root/sample-app/src/main/res/mipmap-xxxhdpi/ic_launcher.png new file mode 100644 index 0000000..2c18de9 Binary files /dev/null and b/animated-solitaries-root/sample-app/src/main/res/mipmap-xxxhdpi/ic_launcher.png differ diff --git a/animated-solitaries-root/sample-app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png b/animated-solitaries-root/sample-app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png new file mode 100644 index 0000000..beed3cd Binary files /dev/null and b/animated-solitaries-root/sample-app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png differ diff --git a/animated-solitaries-root/sample-app/src/main/res/values/colors.xml b/animated-solitaries-root/sample-app/src/main/res/values/colors.xml new file mode 100644 index 0000000..69b2233 --- /dev/null +++ b/animated-solitaries-root/sample-app/src/main/res/values/colors.xml @@ -0,0 +1,6 @@ + + + #008577 + #00574B + #D81B60 + diff --git a/animated-solitaries-root/sample-app/src/main/res/values/strings.xml b/animated-solitaries-root/sample-app/src/main/res/values/strings.xml new file mode 100644 index 0000000..d27a11f --- /dev/null +++ b/animated-solitaries-root/sample-app/src/main/res/values/strings.xml @@ -0,0 +1,5 @@ + + Solitaries Loop + Hello! + Come to me! + diff --git a/animated-solitaries-root/sample-app/src/main/res/values/styles.xml b/animated-solitaries-root/sample-app/src/main/res/values/styles.xml new file mode 100644 index 0000000..5885930 --- /dev/null +++ b/animated-solitaries-root/sample-app/src/main/res/values/styles.xml @@ -0,0 +1,11 @@ + + + + + + diff --git a/animated-solitaries-root/settings.gradle b/animated-solitaries-root/settings.gradle new file mode 100644 index 0000000..b66156e --- /dev/null +++ b/animated-solitaries-root/settings.gradle @@ -0,0 +1,2 @@ +include ':sample-app', ':solitaries-loop' +rootProject.name='Solitaries Loop' diff --git a/animated-solitaries-root/solitaries-loop/.gitignore b/animated-solitaries-root/solitaries-loop/.gitignore new file mode 100644 index 0000000..796b96d --- /dev/null +++ b/animated-solitaries-root/solitaries-loop/.gitignore @@ -0,0 +1 @@ +/build diff --git a/animated-solitaries-root/solitaries-loop/build.gradle b/animated-solitaries-root/solitaries-loop/build.gradle new file mode 100644 index 0000000..1e5d7c6 --- /dev/null +++ b/animated-solitaries-root/solitaries-loop/build.gradle @@ -0,0 +1,39 @@ +apply plugin: 'com.android.library' +apply plugin: 'kotlin-android' +apply plugin: 'kotlin-android-extensions' +android { + compileSdkVersion 29 + buildToolsVersion "29.0.2" + + + defaultConfig { + minSdkVersion 23 + targetSdkVersion 29 + versionCode 1 + versionName "1.0.0" + + testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" + consumerProguardFiles 'consumer-rules.pro' + } + + buildTypes { + release { + minifyEnabled false + proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' + } + } + compileOptions { + sourceCompatibility = 1.8 + targetCompatibility = 1.8 + } + +} + +dependencies { + implementation fileTree(dir: 'libs', include: ['*.jar']) + implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" + implementation 'androidx.appcompat:appcompat:1.1.0' + implementation 'androidx.core:core-ktx:1.2.0' + implementation 'com.aldebaran:qisdk:1.6.7' + implementation 'com.aldebaran:qisdk-design:1.6.7' +} diff --git a/animated-solitaries-root/solitaries-loop/consumer-rules.pro b/animated-solitaries-root/solitaries-loop/consumer-rules.pro new file mode 100644 index 0000000..e69de29 diff --git a/animated-solitaries-root/solitaries-loop/proguard-rules.pro b/animated-solitaries-root/solitaries-loop/proguard-rules.pro new file mode 100644 index 0000000..f1b4245 --- /dev/null +++ b/animated-solitaries-root/solitaries-loop/proguard-rules.pro @@ -0,0 +1,21 @@ +# Add project specific ProGuard rules here. +# You can control the set of applied configuration files using the +# proguardFiles setting in build.gradle. +# +# For more details, see +# http://developer.android.com/guide/developing/tools/proguard.html + +# If your project uses WebView with JS, uncomment the following +# and specify the fully qualified class name to the JavaScript interface +# class: +#-keepclassmembers class fqcn.of.javascript.interface.for.webview { +# public *; +#} + +# Uncomment this to preserve the line number information for +# debugging stack traces. +#-keepattributes SourceFile,LineNumberTable + +# If you keep the line number information, uncomment this to +# hide the original source file name. +#-renamesourcefileattribute SourceFile diff --git a/animated-solitaries-root/solitaries-loop/src/main/AndroidManifest.xml b/animated-solitaries-root/solitaries-loop/src/main/AndroidManifest.xml new file mode 100644 index 0000000..317e734 --- /dev/null +++ b/animated-solitaries-root/solitaries-loop/src/main/AndroidManifest.xml @@ -0,0 +1 @@ + diff --git a/animated-solitaries-root/solitaries-loop/src/main/assets/CheckLeft_01.qianim b/animated-solitaries-root/solitaries-loop/src/main/assets/CheckLeft_01.qianim new file mode 100644 index 0000000..127baf0 --- /dev/null +++ b/animated-solitaries-root/solitaries-loop/src/main/assets/CheckLeft_01.qianim @@ -0,0 +1,507 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/animated-solitaries-root/solitaries-loop/src/main/assets/CheckRight_01.qianim b/animated-solitaries-root/solitaries-loop/src/main/assets/CheckRight_01.qianim new file mode 100644 index 0000000..d3dedff --- /dev/null +++ b/animated-solitaries-root/solitaries-loop/src/main/assets/CheckRight_01.qianim @@ -0,0 +1,507 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/animated-solitaries-root/solitaries-loop/src/main/assets/Funny_01.qianim b/animated-solitaries-root/solitaries-loop/src/main/assets/Funny_01.qianim new file mode 100644 index 0000000..70a016d --- /dev/null +++ b/animated-solitaries-root/solitaries-loop/src/main/assets/Funny_01.qianim @@ -0,0 +1,439 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/animated-solitaries-root/solitaries-loop/src/main/assets/Funny_02.qianim b/animated-solitaries-root/solitaries-loop/src/main/assets/Funny_02.qianim new file mode 100644 index 0000000..bba3624 --- /dev/null +++ b/animated-solitaries-root/solitaries-loop/src/main/assets/Funny_02.qianim @@ -0,0 +1,475 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/animated-solitaries-root/solitaries-loop/src/main/assets/LookAtSidesLeft_01.qianim b/animated-solitaries-root/solitaries-loop/src/main/assets/LookAtSidesLeft_01.qianim new file mode 100644 index 0000000..95712c0 --- /dev/null +++ b/animated-solitaries-root/solitaries-loop/src/main/assets/LookAtSidesLeft_01.qianim @@ -0,0 +1,439 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/animated-solitaries-root/solitaries-loop/src/main/assets/LookAtSidesRight_01.qianim b/animated-solitaries-root/solitaries-loop/src/main/assets/LookAtSidesRight_01.qianim new file mode 100644 index 0000000..51d2818 --- /dev/null +++ b/animated-solitaries-root/solitaries-loop/src/main/assets/LookAtSidesRight_01.qianim @@ -0,0 +1,455 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/animated-solitaries-root/solitaries-loop/src/main/assets/LookBumpersLeft_01.qianim b/animated-solitaries-root/solitaries-loop/src/main/assets/LookBumpersLeft_01.qianim new file mode 100644 index 0000000..2eec3b1 --- /dev/null +++ b/animated-solitaries-root/solitaries-loop/src/main/assets/LookBumpersLeft_01.qianim @@ -0,0 +1,463 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/animated-solitaries-root/solitaries-loop/src/main/assets/LookBumpersRight_01.qianim b/animated-solitaries-root/solitaries-loop/src/main/assets/LookBumpersRight_01.qianim new file mode 100644 index 0000000..2eec3b1 --- /dev/null +++ b/animated-solitaries-root/solitaries-loop/src/main/assets/LookBumpersRight_01.qianim @@ -0,0 +1,463 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/animated-solitaries-root/solitaries-loop/src/main/assets/LookFarLeft_01.qianim b/animated-solitaries-root/solitaries-loop/src/main/assets/LookFarLeft_01.qianim new file mode 100644 index 0000000..f7e1174 --- /dev/null +++ b/animated-solitaries-root/solitaries-loop/src/main/assets/LookFarLeft_01.qianim @@ -0,0 +1,539 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/animated-solitaries-root/solitaries-loop/src/main/assets/LookFarRight_01.qianim b/animated-solitaries-root/solitaries-loop/src/main/assets/LookFarRight_01.qianim new file mode 100644 index 0000000..5c78054 --- /dev/null +++ b/animated-solitaries-root/solitaries-loop/src/main/assets/LookFarRight_01.qianim @@ -0,0 +1,539 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/animated-solitaries-root/solitaries-loop/src/main/assets/LookHandLeft_01.qianim b/animated-solitaries-root/solitaries-loop/src/main/assets/LookHandLeft_01.qianim new file mode 100644 index 0000000..ea2cf5a --- /dev/null +++ b/animated-solitaries-root/solitaries-loop/src/main/assets/LookHandLeft_01.qianim @@ -0,0 +1,699 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/animated-solitaries-root/solitaries-loop/src/main/assets/LookHandRight_01.qianim b/animated-solitaries-root/solitaries-loop/src/main/assets/LookHandRight_01.qianim new file mode 100644 index 0000000..032e887 --- /dev/null +++ b/animated-solitaries-root/solitaries-loop/src/main/assets/LookHandRight_01.qianim @@ -0,0 +1,699 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/animated-solitaries-root/solitaries-loop/src/main/assets/LookLeft_01.qianim b/animated-solitaries-root/solitaries-loop/src/main/assets/LookLeft_01.qianim new file mode 100644 index 0000000..71218b0 --- /dev/null +++ b/animated-solitaries-root/solitaries-loop/src/main/assets/LookLeft_01.qianim @@ -0,0 +1,617 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/animated-solitaries-root/solitaries-loop/src/main/assets/LookRight_01.qianim b/animated-solitaries-root/solitaries-loop/src/main/assets/LookRight_01.qianim new file mode 100644 index 0000000..ae8adc1 --- /dev/null +++ b/animated-solitaries-root/solitaries-loop/src/main/assets/LookRight_01.qianim @@ -0,0 +1,617 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/animated-solitaries-root/solitaries-loop/src/main/assets/Looking_around_01.qianim b/animated-solitaries-root/solitaries-loop/src/main/assets/Looking_around_01.qianim new file mode 100644 index 0000000..a9a9dd7 --- /dev/null +++ b/animated-solitaries-root/solitaries-loop/src/main/assets/Looking_around_01.qianim @@ -0,0 +1,527 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/animated-solitaries-root/solitaries-loop/src/main/assets/Looking_around_wide_01.qianim b/animated-solitaries-root/solitaries-loop/src/main/assets/Looking_around_wide_01.qianim new file mode 100644 index 0000000..3916616 --- /dev/null +++ b/animated-solitaries-root/solitaries-loop/src/main/assets/Looking_around_wide_01.qianim @@ -0,0 +1,519 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/animated-solitaries-root/solitaries-loop/src/main/assets/MotorSoundLeft_01.qianim b/animated-solitaries-root/solitaries-loop/src/main/assets/MotorSoundLeft_01.qianim new file mode 100644 index 0000000..929722f --- /dev/null +++ b/animated-solitaries-root/solitaries-loop/src/main/assets/MotorSoundLeft_01.qianim @@ -0,0 +1,1495 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/animated-solitaries-root/solitaries-loop/src/main/assets/MotorSoundRight_01.qianim b/animated-solitaries-root/solitaries-loop/src/main/assets/MotorSoundRight_01.qianim new file mode 100644 index 0000000..854805a --- /dev/null +++ b/animated-solitaries-root/solitaries-loop/src/main/assets/MotorSoundRight_01.qianim @@ -0,0 +1,1495 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/animated-solitaries-root/solitaries-loop/src/main/assets/PlayWithHandLeft_01.qianim b/animated-solitaries-root/solitaries-loop/src/main/assets/PlayWithHandLeft_01.qianim new file mode 100644 index 0000000..4b2acdd --- /dev/null +++ b/animated-solitaries-root/solitaries-loop/src/main/assets/PlayWithHandLeft_01.qianim @@ -0,0 +1,1451 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/animated-solitaries-root/solitaries-loop/src/main/assets/PlayWithHandRight_01.qianim b/animated-solitaries-root/solitaries-loop/src/main/assets/PlayWithHandRight_01.qianim new file mode 100644 index 0000000..e69e46d --- /dev/null +++ b/animated-solitaries-root/solitaries-loop/src/main/assets/PlayWithHandRight_01.qianim @@ -0,0 +1,1451 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/animated-solitaries-root/solitaries-loop/src/main/java/com/softbankrobotics/dx/solitariesloop/SolitariesLoop.kt b/animated-solitaries-root/solitaries-loop/src/main/java/com/softbankrobotics/dx/solitariesloop/SolitariesLoop.kt new file mode 100644 index 0000000..ac9f689 --- /dev/null +++ b/animated-solitaries-root/solitaries-loop/src/main/java/com/softbankrobotics/dx/solitariesloop/SolitariesLoop.kt @@ -0,0 +1,101 @@ +package com.softbankrobotics.dx.solitariesloop + +import com.aldebaran.qi.Future +import com.aldebaran.qi.sdk.QiContext +import com.aldebaran.qi.sdk.builder.AnimateBuilder +import com.aldebaran.qi.sdk.builder.AnimationBuilder +import com.aldebaran.qi.sdk.util.FutureUtils +import java.util.concurrent.TimeUnit + +/** + * An animated solitary loop player, that can be started and stopped. + * + * @property delayInSeconds The time between animations, in seconds. + */ +class SolitariesLoop(private val qiContext: QiContext, private val delayInSeconds: Int = 60) { + + private val animationNames = arrayOf( + "CheckLeft_01.qianim", + "CheckRight_01.qianim", + "Funny_01.qianim", + "Funny_02.qianim", + "LookAtSidesLeft_01.qianim", + "LookAtSidesRight_01.qianim", + "LookBumpersLeft_01.qianim", + "LookBumpersRight_01.qianim", + "LookFarLeft_01.qianim", + "LookFarRight_01.qianim", + "LookHandLeft_01.qianim", + "LookHandRight_01.qianim", + "Looking_around_01.qianim", + "Looking_around_wide_01.qianim", + "LookLeft_01.qianim", + "LookRight_01.qianim", + "MotorSoundLeft_01.qianim", + "MotorSoundRight_01.qianim", + "PlayWithHandLeft_01.qianim", + "PlayWithHandRight_01.qianim" + ) + private var animationNamesQueue = mutableListOf() + private var lastAnimationName = "" + + private lateinit var animationFuture: Future + + private fun buildAndRunAnimate(): Future { + return FutureUtils.wait(delayInSeconds.toLong(), TimeUnit.SECONDS) + .andThenCompose { + lastAnimationName = chooseAnimationName() + AnimationBuilder.with(qiContext) + .withAssets(lastAnimationName) + .buildAsync() + } + .andThenCompose { animation -> + AnimateBuilder.with(qiContext) + .withAnimation(animation) + .buildAsync() + } + .andThenCompose { animate -> + animate.async().run() + } + .thenCompose { + if (it.isCancelled) { + buildAndRunAnimate() + } else { + FutureUtils.wait(0, TimeUnit.NANOSECONDS) + } + } + } + + private fun chooseAnimationName(): String { + if (animationNamesQueue.isEmpty()) { + animationNamesQueue = animationNames.toMutableList() + animationNamesQueue.shuffle() + // Sometimes the first item in the new list happens to be the last one we played + // We want to avoid duplicate animations, so: + if (animationNamesQueue[0] == lastAnimationName) { + // Swap with the last item + val lastIndex = animationNamesQueue.size - 1 + animationNamesQueue[0] = animationNamesQueue[lastIndex] + animationNamesQueue[lastIndex] = lastAnimationName + } + } + + return animationNamesQueue.removeAt(0) + } + + /** + * Starts periodically playing random animations, until stopped. + */ + fun start() { + animationFuture = buildAndRunAnimate() + } + + /** + * Stops the loop and cancels the current animation (if any); returns a future (that will finish + * when the animation has effectively been stopped. + */ + fun stop(): Future { + animationFuture.requestCancellation() + return animationFuture + } +} \ No newline at end of file