您的位置:首页 > 移动开发 > Android开发

Pepper SDK for Android Getting Started

2016-11-17 20:46 357 查看

https://android.aldebaran.com/doc/create_project.html#create-project


Creating Robot Project

This chapter shows how to create a project to develop robot application and describes its structure.
StepAction
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.



For the next steps, default choices will do.
Once the Project is created, choose File > New > Robot Application.


Result:

The Robot project structure is
in place.

The tools allowing you to create content are now available.





Robot project structure

Robot project structure is shown in the images below.





External Libraries added

libs directory contains the libraries for your project.



The qichatplayer and qisdk library are distributed to your project through Mavenrepository.
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




/res directory contains the resources for your robot application.
Dir/FileContains ...For more details, see...
/rawFiles 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.xmlConfiguration 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” />


Next

See Tutorials to get
you up to speed, or simply inspired.
API Reference.
Qi SDK, the library for robot
development.
Connect to a
robot to run and debug your application.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: