Added libraries
This commit is contained in:
@@ -16,6 +16,9 @@ import com.aldebaran.qi.sdk.object.actuation.Animate;
|
|||||||
import com.aldebaran.qi.sdk.object.actuation.Animation;
|
import com.aldebaran.qi.sdk.object.actuation.Animation;
|
||||||
import com.aldebaran.qi.sdk.object.conversation.Phrase;
|
import com.aldebaran.qi.sdk.object.conversation.Phrase;
|
||||||
import com.aldebaran.qi.sdk.object.conversation.Say;
|
import com.aldebaran.qi.sdk.object.conversation.Say;
|
||||||
|
import com.aldebaran.qi.sdk.object.locale.Language;
|
||||||
|
import com.aldebaran.qi.sdk.object.locale.Locale;
|
||||||
|
import com.aldebaran.qi.sdk.object.locale.Region;
|
||||||
|
|
||||||
|
|
||||||
public class MainActivity extends RobotActivity implements RobotLifecycleCallbacks {
|
public class MainActivity extends RobotActivity implements RobotLifecycleCallbacks {
|
||||||
@@ -36,12 +39,17 @@ public class MainActivity extends RobotActivity implements RobotLifecycleCallbac
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onRobotFocusGained(QiContext qiContext) {
|
public void onRobotFocusGained(QiContext qiContext) {
|
||||||
|
Locale locale = new Locale(Language.DUTCH, Region.NETHERLANDS);
|
||||||
|
|
||||||
// Create a new say action.
|
// Create a new say action.
|
||||||
Say say = SayBuilder.with(qiContext) // Create the builder with the context.
|
Say say = SayBuilder.with(qiContext) // Create the builder with the context.
|
||||||
.withText("Hallo hoe gaat het?") // Set the text to say.
|
.withText("Hallo hoe gaat het?") // Set the text to say.
|
||||||
.build(); // Build the say action.
|
.build(); // Build the say action.
|
||||||
|
|
||||||
Phrase namePhrase = new Phrase("This location is " + locationName);
|
String locationName = ("de hogeschool van amsterdam");
|
||||||
|
String locationDescription = ("0 bitches");
|
||||||
|
|
||||||
|
Phrase namePhrase = new Phrase("Deze locatie is " + locationName);
|
||||||
Say sayName = SayBuilder.with(qiContext)
|
Say sayName = SayBuilder.with(qiContext)
|
||||||
.withPhrase(namePhrase)
|
.withPhrase(namePhrase)
|
||||||
.withLocale(locale)
|
.withLocale(locale)
|
||||||
@@ -57,10 +65,10 @@ public class MainActivity extends RobotActivity implements RobotLifecycleCallbac
|
|||||||
sayDescription.run();
|
sayDescription.run();
|
||||||
|
|
||||||
// Create a new BicepVideo with the qiContext
|
// Create a new BicepVideo with the qiContext
|
||||||
bicepvideo BicepVideo = new bicepvideo();
|
// BicepVideo BicepVideo = new BicepVideo();
|
||||||
|
//
|
||||||
// Call the videoPlayer method
|
// // Call the videoPlayer method
|
||||||
BicepVideo.Video(qiContext);
|
// BicepVideo.Video(qiContext);
|
||||||
|
|
||||||
// Execute the action.
|
// Execute the action.
|
||||||
say.run();
|
say.run();
|
||||||
|
Reference in New Issue
Block a user