diff --git a/code/src/Fitbot/.idea/deploymentTargetDropDown.xml b/code/src/Fitbot/.idea/deploymentTargetDropDown.xml
index a5abdd5..7f839bd 100644
--- a/code/src/Fitbot/.idea/deploymentTargetDropDown.xml
+++ b/code/src/Fitbot/.idea/deploymentTargetDropDown.xml
@@ -12,6 +12,6 @@
-
+
\ No newline at end of file
diff --git a/code/src/Fitbot/.idea/misc.xml b/code/src/Fitbot/.idea/misc.xml
index e00f2f3..6711755 100644
--- a/code/src/Fitbot/.idea/misc.xml
+++ b/code/src/Fitbot/.idea/misc.xml
@@ -6,9 +6,15 @@
-
-
+
+
+
+
+
+
+
+
diff --git a/code/src/Fitbot/app/build.gradle b/code/src/Fitbot/app/build.gradle
index 23c5f19..5148a3d 100644
--- a/code/src/Fitbot/app/build.gradle
+++ b/code/src/Fitbot/app/build.gradle
@@ -33,6 +33,7 @@ dependencies {
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support.constraint:constraint-layout:2.0.4'
implementation 'com.android.support:cardview-v7:28.0.0'
+ implementation 'com.android.support:design:28.0.0'
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
diff --git a/code/src/Fitbot/app/src/main/AndroidManifest.xml b/code/src/Fitbot/app/src/main/AndroidManifest.xml
index 7a1dc0f..61cd8ea 100644
--- a/code/src/Fitbot/app/src/main/AndroidManifest.xml
+++ b/code/src/Fitbot/app/src/main/AndroidManifest.xml
@@ -27,7 +27,7 @@
android:name=".BicepVideo"
android:exported="false" />
{
- Intent i = new Intent(MainScreen.this, BicepVideo.class);
- startActivity(i);
- });
+ /*---Hooks---*/
+ drawerLayout = findViewById(R.id.drawer_layout);
+ navigationView = findViewById(R.id.nav_view);
+ toolbar = findViewById(R.id.toolbar);
+
+ /*---Tool Bar---*/
+ setSupportActionBar(toolbar);
+
+ /*---Navigation Drawer Menu---*/
+ ActionBarDrawerToggle toggle = new ActionBarDrawerToggle(this.drawerLayout,toolbar,R.string.navigation_drawer_open,R.string.navigation_drawer_close);
+ drawerLayout.addDrawerListener(toggle);
+ toggle.syncState();
}
-}
\ No newline at end of file
+}
diff --git a/code/src/Fitbot/app/src/main/java/com/example/fitbot/PowerScreen.java b/code/src/Fitbot/app/src/main/java/com/example/fitbot/PowerScreen.java
new file mode 100644
index 0000000..cc29742
--- /dev/null
+++ b/code/src/Fitbot/app/src/main/java/com/example/fitbot/PowerScreen.java
@@ -0,0 +1,43 @@
+package com.example.fitbot;
+
+import android.content.Intent;
+import android.os.Bundle;
+import android.support.v7.app.AppCompatActivity;
+import android.widget.ImageButton;
+
+public class PowerScreen extends AppCompatActivity {
+ ImageButton openBicepVideo;
+ ImageButton openSquatVideo;
+ ImageButton openTricepVideo;
+ ImageButton goToHome;
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.activity_power_screen);
+
+ openBicepVideo = findViewById(R.id.open_BicepVideo);
+ openSquatVideo = findViewById(R.id.open_SquatVideo);
+ openTricepVideo = findViewById(R.id.open_TricepVideo);
+ goToHome = findViewById(R.id.GoToHome);
+
+ openBicepVideo.setOnClickListener(v -> {
+ Intent intent = new Intent(PowerScreen.this, BicepVideo.class);
+ startActivity(intent);
+ });
+ openSquatVideo.setOnClickListener(v -> {
+ Intent intent = new Intent(PowerScreen.this, SquatVideo.class);
+ startActivity(intent);
+ });
+
+ openTricepVideo.setOnClickListener(v -> {
+ Intent intent = new Intent(PowerScreen.this, TricepVideo.class);
+ startActivity(intent);
+ });
+
+ goToHome.setOnClickListener(v -> {
+ Intent intent = new Intent(PowerScreen.this, MainActivity.class);
+ startActivity(intent);
+ });
+ }
+}
\ No newline at end of file
diff --git a/code/src/Fitbot/app/src/main/res/drawable/house_3.png b/code/src/Fitbot/app/src/main/res/drawable/house_3.png
new file mode 100644
index 0000000..b2be9a1
Binary files /dev/null and b/code/src/Fitbot/app/src/main/res/drawable/house_3.png differ
diff --git a/code/src/Fitbot/app/src/main/res/drawable/ic_baseline_home_48.xml b/code/src/Fitbot/app/src/main/res/drawable/ic_baseline_home_48.xml
new file mode 100644
index 0000000..e6f32a4
--- /dev/null
+++ b/code/src/Fitbot/app/src/main/res/drawable/ic_baseline_home_48.xml
@@ -0,0 +1,5 @@
+
+
+
diff --git a/code/src/Fitbot/app/src/main/res/drawable/ic_baseline_settings_48.xml b/code/src/Fitbot/app/src/main/res/drawable/ic_baseline_settings_48.xml
new file mode 100644
index 0000000..d91f2bc
--- /dev/null
+++ b/code/src/Fitbot/app/src/main/res/drawable/ic_baseline_settings_48.xml
@@ -0,0 +1,5 @@
+
+
+
diff --git a/code/src/Fitbot/app/src/main/res/drawable/ic_baseline_star_rate_48.xml b/code/src/Fitbot/app/src/main/res/drawable/ic_baseline_star_rate_48.xml
new file mode 100644
index 0000000..a9aee33
--- /dev/null
+++ b/code/src/Fitbot/app/src/main/res/drawable/ic_baseline_star_rate_48.xml
@@ -0,0 +1,5 @@
+
+
+
diff --git a/code/src/Fitbot/app/src/main/res/drawable/noun_bicep_499185.png b/code/src/Fitbot/app/src/main/res/drawable/noun_bicep_499185.png
new file mode 100644
index 0000000..1cb2117
Binary files /dev/null and b/code/src/Fitbot/app/src/main/res/drawable/noun_bicep_499185.png differ
diff --git a/code/src/Fitbot/app/src/main/res/drawable/robotLogo.png b/code/src/Fitbot/app/src/main/res/drawable/robotLogo.png
new file mode 100644
index 0000000..48b5804
Binary files /dev/null and b/code/src/Fitbot/app/src/main/res/drawable/robotLogo.png differ
diff --git a/code/src/Fitbot/app/src/main/res/drawable/squatlogo.png b/code/src/Fitbot/app/src/main/res/drawable/squatlogo.png
new file mode 100644
index 0000000..a37bc8c
Binary files /dev/null and b/code/src/Fitbot/app/src/main/res/drawable/squatlogo.png differ
diff --git a/code/src/Fitbot/app/src/main/res/drawable/triceplogo.png b/code/src/Fitbot/app/src/main/res/drawable/triceplogo.png
new file mode 100644
index 0000000..69e714d
Binary files /dev/null and b/code/src/Fitbot/app/src/main/res/drawable/triceplogo.png differ
diff --git a/code/src/Fitbot/app/src/main/res/layout/activity_main.xml b/code/src/Fitbot/app/src/main/res/layout/activity_main.xml
index 8cebf92..e331324 100644
--- a/code/src/Fitbot/app/src/main/res/layout/activity_main.xml
+++ b/code/src/Fitbot/app/src/main/res/layout/activity_main.xml
@@ -1,19 +1,30 @@
-
+ tools:context=".MainActivity"
+ android:fitsSystemWindows="true"
+ tools:openDrawer="start">
+
+
+ android:text="Hello World"
+ android:layout_centerInParent="true"/>
+
+
-
\ No newline at end of file
+
+
+
\ No newline at end of file
diff --git a/code/src/Fitbot/app/src/main/res/layout/activity_main_screen.xml b/code/src/Fitbot/app/src/main/res/layout/activity_main_screen.xml
deleted file mode 100644
index 1ac4230..0000000
--- a/code/src/Fitbot/app/src/main/res/layout/activity_main_screen.xml
+++ /dev/null
@@ -1,24 +0,0 @@
-
-
-
-
-
-
\ No newline at end of file
diff --git a/code/src/Fitbot/app/src/main/res/layout/activity_power_screen.xml b/code/src/Fitbot/app/src/main/res/layout/activity_power_screen.xml
new file mode 100644
index 0000000..bbfe7df
--- /dev/null
+++ b/code/src/Fitbot/app/src/main/res/layout/activity_power_screen.xml
@@ -0,0 +1,84 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/code/src/Fitbot/app/src/main/res/layout/header.xml b/code/src/Fitbot/app/src/main/res/layout/header.xml
new file mode 100644
index 0000000..6a3eac7
--- /dev/null
+++ b/code/src/Fitbot/app/src/main/res/layout/header.xml
@@ -0,0 +1,25 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/code/src/Fitbot/app/src/main/res/layout/toolbar.xml b/code/src/Fitbot/app/src/main/res/layout/toolbar.xml
new file mode 100644
index 0000000..1a12217
--- /dev/null
+++ b/code/src/Fitbot/app/src/main/res/layout/toolbar.xml
@@ -0,0 +1,9 @@
+
+
+
+
\ No newline at end of file
diff --git a/code/src/Fitbot/app/src/main/res/menu/main_menu.xml b/code/src/Fitbot/app/src/main/res/menu/main_menu.xml
new file mode 100644
index 0000000..38ae31c
--- /dev/null
+++ b/code/src/Fitbot/app/src/main/res/menu/main_menu.xml
@@ -0,0 +1,32 @@
+
+
diff --git a/code/src/Fitbot/app/src/main/res/values/strings.xml b/code/src/Fitbot/app/src/main/res/values/strings.xml
index f6ac891..731c17b 100644
--- a/code/src/Fitbot/app/src/main/res/values/strings.xml
+++ b/code/src/Fitbot/app/src/main/res/values/strings.xml
@@ -1,4 +1,7 @@
Fitbotoefeningvideo
+
+ Open navigation drawer
+ Open navigation close
\ No newline at end of file
diff --git a/docs/.pages b/docs/.pages
index 00324b7..9460ad7 100644
--- a/docs/.pages
+++ b/docs/.pages
@@ -16,5 +16,7 @@ nav:
- 📚 Documentation:
- 🧠Brianstorm:
- Ideas: documentation/brianstorm/ideas
- - 📱Andriod:
+ - 📱 Andriod:
- Andriod Studio: documentation/andriod/androidStudio
+ - 🤖 Pepper:
+ - Pepper Setup: documentation/pepper/pepperSetup
diff --git a/docs/documentation/android/appSetup.md b/docs/documentation/android/appSetup.md
index f19693d..16835af 100644
--- a/docs/documentation/android/appSetup.md
+++ b/docs/documentation/android/appSetup.md
@@ -23,9 +23,13 @@ public class MainActivity extends AppCompatActivity {
}
}
```
+With setContentView you can set the layout file that you made earlier.
+``` java
+ setContentView(R.layout.activity_main);
+```
### Manifest
-For the app to be able to build you need to add the activity to the manifest file. You can do this by adding this to the manifest file.
+For the app to be able to build you need to add the activity class to the manifest file.
```xml
```
-The class name that is ran first is defined in the first line of the class.
\ No newline at end of file
+In this instance MainActivity is the first class that is ran.
\ No newline at end of file
diff --git a/docs/documentation/robots/NAOBOT.png b/docs/documentation/assets/NAOBOT.png
similarity index 100%
rename from docs/documentation/robots/NAOBOT.png
rename to docs/documentation/assets/NAOBOT.png
diff --git a/docs/documentation/assets/android10.png b/docs/documentation/assets/android10.png
new file mode 100644
index 0000000..a1f4eb3
Binary files /dev/null and b/docs/documentation/assets/android10.png differ
diff --git a/docs/documentation/assets/interfaceModules.png b/docs/documentation/assets/interfaceModules.png
new file mode 100644
index 0000000..e9a3645
Binary files /dev/null and b/docs/documentation/assets/interfaceModules.png differ
diff --git a/docs/documentation/brainstorm/colorsforlayout.md b/docs/documentation/brainstorm/colorsforlayout.md
new file mode 100644
index 0000000..beeaf85
--- /dev/null
+++ b/docs/documentation/brainstorm/colorsforlayout.md
@@ -0,0 +1,18 @@
+# Colors for our app
+
+### Vision changes
+As we become older, our vision worsens. We need to keep this in mind because our target audience includes elderly people. Beginning around the age of 40 we are already seeing some issues with our sight. It might become harder to focus on text, hence the need for reading glasses. This is an issue to keep in mind when designing our app, we want to resolve this by using images or bigger text so that it becomes easier to read. We are planing to avoid redundant text. We also see issues with light. With aging our pupils will shrink, this will result in lower light sensitivity and the increased sensitivity to glare. We need to use warmer colors to reduce the brightness on the eye and make our app able to be used when the brightness of the screen is low to resolve this issue. However, one of the biggest issues is with contrast. The older we get, the less able we are able to make out of low contrast patterns. This is really important to keep in mind, some combinations can be really hard to see for elderly people. I'll show you how by providing an example.
+
+This image shows what elderly people may experience while reading or using an app. We must keep this in mind as we design our app.
+### color psychology
+
+
+
+### Conclusion
+
+
+
+
+# Source
+
+https://eldertech.org/color-in-designing-technology-for-seniors/
\ No newline at end of file
diff --git a/docs/documentation/brainstorm/contrastcolors.png b/docs/documentation/brainstorm/contrastcolors.png
new file mode 100644
index 0000000..0662515
Binary files /dev/null and b/docs/documentation/brainstorm/contrastcolors.png differ
diff --git a/docs/documentation/pepper/pepperSetup.md b/docs/documentation/pepper/pepperSetup.md
new file mode 100644
index 0000000..9936497
--- /dev/null
+++ b/docs/documentation/pepper/pepperSetup.md
@@ -0,0 +1,60 @@
+# How to setup android studio for pepper
+
+This is a guide on pepper setup for android studio. This guide will show you how to setup android studio for pepper. To start off we will follow the provided guide on the [softbank website](https://qisdk.softbankrobotics.com/sdk/doc/pepper-sdk/ch1_gettingstarted/installation.html). This guide will only help with certain parts of the setup
+
+It is important to note that multiple combinations of android studio and pepper sdk can work together. This guide will show you how to setup android studio for pepper sdk with the versions that worked for us.
+
+## Installing the Pepper SDK plug-in
+
+### Install Android Studio
+
+To start off you need to install android studio. QiSDK recommends installing the latest stable version (version 3.4 or higher). In this guide we recommend using version 2021.1.1 You can download android studio [here](https://developer.android.com/studio/archive). It is recommended to always start up android studio as an administrator. This can be done by right clicking on the android studio icon and selecting `Run as administrator`.
+
+### Get Android SDK and Build-Tools
+
+Follow the first step on the QiSDK guide. Here are a few pointers to help you with this step:
+
+- Android 6.0 (API level 23) is the minimum version required for the Pepper SDK. But it is not the version that will be used.
+- The recommended version is Android 10.0 (API level 29). This is not shown as API 29 but as Android 10.0. This is the version that worked for us.
+
+
+
+After this you can follow the rest of the guide on the QiSDK website.
+
+### Robot SDK Manager
+
+The option to simulate pepper and the tablet won't work. We have yet to find a solution for this. You can still create a device and run the app on the device. But you won't be able to simulate the robot.
+
+## Creating a robot application
+
+### Creating a project
+
+To create a project you need to follow the steps on the QiSDK website. Here are a few pointers to help you with this step:
+
+- Make sure to select a template that works for you. We recommend using the `Empty Activity` template. This will give you a blank project to start with.
+- On step 5 of the guide make sure that the interface looks the following image, if it does not look the same gradle doens't recognize the project as an android project:
+
+
+
+### Implementing QiSDK Design & the Robot Life Cycle
+
+On this step the QiSDK guide provides you with a code snippet. This code snippet is used to make the robot do something. But the provided snipped makes use of the pepper library. This library is not included in the guide. To make use of the library you need to add the following line to the `settings.gradle` file:
+
+```gradle
+dependencyResolutionManagement {
+ repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
+ repositories {
+ google()
+ mavenCentral()
+ maven {
+ url 'https://qisdk.softbankrobotics.com/sdk/maven/'
+ }
+ }
+}
+```
+
+After this you should be able to make use of the pepper library. The imports of classes will show up red to solve this right click the imported class, there will be a option to import the class. Do this for all imports that are red. After this restart android studio and the imports should be fixed.
+
+### Conclusion
+
+The guide on the QiSDK website is a good guide to follow. But it is not complete. This guide is meant to help you with the parts that are not covered in the QiSDK guide. Once all steps from both guides are followed you should be able to run the app on the robot.
\ No newline at end of file
diff --git a/docs/documentation/robots/Comparisons.md b/docs/documentation/robots/Comparisons.md
index 278d679..72bc99c 100644
--- a/docs/documentation/robots/Comparisons.md
+++ b/docs/documentation/robots/Comparisons.md
@@ -7,7 +7,7 @@ With our project, we want the people to start moving more. Since people are beco
### Why are we not using the NAO bot
- The NAO robot is a humanoid robot used for research and education. The robot was developed by the French company Aldebaran Robotics, which was acquired by the Japanese Softbank Robotics in 2015. We did not end up using this robot for our project. Due to its complex programming and not havong a built in tablet. This made it for us hard to work with and the tablet makes it nice to additional guidance for the people. I will list some pros and cons below
+ The NAO robot is a humanoid robot used for research and education. The robot was developed by the French company Aldebaran Robotics, which was acquired by the Japanese Softbank Robotics in 2015. We did not end up using this robot for our project. Due to its complex programming and not havong a built in tablet. This made it for us hard to work with and the tablet makes it nice to additional guidance for the people. I will list some pros and cons below
#### Pros
NAO has more control over its body. It can use it legs to walk or sit, for example. This makes it able to demonstrate a lot more exercises which could come in handy especially with more leg focused exercises.
@@ -22,7 +22,7 @@ Due to its small size, the battery is also way smaller, which might make it hard
# Pepper bot
-
+
The Pepper robot is a humanoid robot developed by the Japanese company Softbank Robotics. The robot is designed to communicate with humans and can do this through speech, facial recognition and movement. This robot is also equipped with a tablet so you can use Android apps.
### Why did we choose the pepper bot