Creating Robot Project

This chapter shows how to create a project to develop robot application and describes its structure.

Step Action
From Android Studio, choose File > New > New Project.

When prompted by the wizard, choose the Phone and Tablet option, and make sure Android 5.1 (Lollipop) is selected.

_images/project_wizard.png

For the next steps, default choices will do.

Once the Project is created, choose File > New > Robot Application.

_images/new_robot_app.png

Result:

Robot project structure

Robot project structure is shown in the images below.

_images/project_structure.png

External Libraries added

libs directory contains the libraries for your project.

_images/project_libraries.png

The qichatplayer and qisdk library are distributed to your project through Maven repository.

So, the required script is automatically added to build.gradle and you can use Sync Now or reopen the project to download these libraries.

Resources

_images/resources.png

/res directory contains the resources for your robot application.

Dir/File Contains ... For more details, see...
/raw Files with .anim extension, defining robot’s animation. Animation Editor
Files with .pmt extension, defining robot’s movement. Trajectory editor

/raw-en

/raw-fr

Files with .top extension, defining robot’s dialog in English, French, etc. Chat Editor
robotsdk.xml Configuration file that stores the Robot SDK version of the project.  

Pepper hardware declared used

Used features added in Android Manifest

The uses-feature element like below is added to your AndroidManifest.xml.

<uses-feature android:name=”com.softbank.hardware.pepper” />