Update Fitbot project files and add robot conversation in MainActivity.java

This commit is contained in:
SebasKoedam
2024-04-24 15:18:22 +02:00
parent 0482c2b386
commit ca89d7af94
3 changed files with 18 additions and 9 deletions

View File

@@ -12,6 +12,6 @@
</deviceKey> </deviceKey>
</Target> </Target>
</targetSelectedWithDropDown> </targetSelectedWithDropDown>
<timeTargetWasSelectedWithDropDown value="2024-04-24T09:24:05.698446800Z" /> <timeTargetWasSelectedWithDropDown value="2024-04-24T11:45:40.185922Z" />
</component> </component>
</project> </project>

View File

@@ -9,6 +9,7 @@ import com.aldebaran.qi.sdk.RobotLifecycleCallbacks;
import com.aldebaran.qi.sdk.builder.SayBuilder; import com.aldebaran.qi.sdk.builder.SayBuilder;
import com.aldebaran.qi.sdk.design.activity.RobotActivity; import com.aldebaran.qi.sdk.design.activity.RobotActivity;
import com.aldebaran.qi.sdk.design.activity.conversationstatus.SpeechBarDisplayStrategy; import com.aldebaran.qi.sdk.design.activity.conversationstatus.SpeechBarDisplayStrategy;
import com.aldebaran.qi.sdk.object.conversation.Phrase;
import com.aldebaran.qi.sdk.object.conversation.Say; import com.aldebaran.qi.sdk.object.conversation.Say;
@@ -30,13 +31,21 @@ public class MainActivity extends RobotActivity implements RobotLifecycleCallbac
@Override @Override
public void onRobotFocusGained(QiContext qiContext) { public void onRobotFocusGained(QiContext qiContext) {
// Create a new say action. String locationName = ("de Hogeschool van Amsterdam");
Say say = SayBuilder.with(qiContext) // Create the builder with the context. String locationDescription = ("de Hogeschool van Amsterdam");
.withText("Hallo hoe gaat het?") // Set the text to say.
.build(); // Build the say action.
// Execute the action. Phrase namePhrase = new Phrase("This location is " + locationName);
say.run(); Say sayName = SayBuilder.with(qiContext)
.withPhrase(namePhrase)
.build();
Phrase descriptionPhrase = new Phrase(locationDescription);
Say sayDescription = SayBuilder.with(qiContext)
.withPhrase(descriptionPhrase)
.build();
sayName.run();
sayDescription.run();
} }
@Override @Override

View File

@@ -13,7 +13,7 @@ Betoog op basis van literatuuronderzoek van minimaal 1000 tot maximaal 1500 woor
Waar gaat je betoog over? Waar gaat je betoog over?
Het helpen van ouderen met fitness door middel van robots. Hoe ethisch verantwoord is het om robots in te zetten in de ouderenzorg om ouderen te helpen met fitness?
**B. AANLEIDING** De aanleiding en/of context van het thema/vraagstuk is: **B. AANLEIDING** De aanleiding en/of context van het thema/vraagstuk is:
@@ -43,7 +43,7 @@ Waar liggen de grenzen van de inzet van robots in de zorg voor ouderen wat fitne
Welke vraag ga je beantwoorden in je betoog? Welke vraag ga je beantwoorden in je betoog?
In hoeverre kunnen robots worden ingezet om ouderen te helpen met fitness? In hoeverre is het etisch verantwoord om robots in te zetten in de ouderenzorg om ouderen te helpen met fitness?
**H. BEGRIPSOMSCHRIJVING** De volgende begrippen uit mijn vraagstelling definieer ik als: **H. BEGRIPSOMSCHRIJVING** De volgende begrippen uit mijn vraagstelling definieer ik als: