Loading... # Pepper ssh 使用命令 **部分API如失效,请以最新官网为准。** ## 1. 命名说明: 1. PepperIPAddress:Pepper的ip地址 2. PepperHeadFilePath:文件在Pepper Head下的绝对路径地址 3. ComputerFilePath:文件在电脑下的绝对路径地址 4. AppPackageName:app的包名 ## 2. 登录Pepper Head ssh nao@PepperIPAddress ## 3. 查询、卸载、安装应用 ALTabletService API地址:http://doc.aldebaran.com/2-5/naoqi/core/altabletservice-api.html#altabletservice-api ### 3.1 安装应用 #### 3.1.1 安装apk qicli call ALTabletService._installApk http://PepperIPAddress/PepperHeadFilePath #### 3.1.2 安装pkg qicli call PackageManager.install PepperHeadFilePath ### 3.2 列出所有应用 #### 3.2.1 列出所有apk qicli call ALTabletService._listApks #### 3.2.2 列出所有pkg qicli call PackageManager.packages ### 3.3 卸载指定应用 #### 3.2.1 卸载apk qicli call ALTabletService._removeApk AppPackageName #### 3.3.2 卸载pkg qicli call PackageManager.removePkg AppPackageName //未验证 ### 3.4 查询指定应用是否被安装 #### 3.4.1 查询apk qicli call ALTabletService._isApkExist AppPackageName #### 3.4.2 查询pkg qicli call PackageManager.package AppPackageName ## 4. 复制文件 ### 4.1 复制电脑文件到Pepper脑袋 scp ComputerFilePath nao@PepperIPAddress:/PepperHeadFilePath ### 4.2 复制Pepper 脑部文件到电脑 scp -r nao@PepperIPAddress:/PepperHeadFilePath ComputerFilePath ## 5. 查询参数、状态 ### 5.1 实时查询audio日志 tail -f /var/log/naoqi/servicemanager/audio.Audio.log ### 5.2 查询asr使用的第三方服务厂商名称 journalctl | grep audio ### 5.3 查询Pepper的HeadId 方式一: head_id 方式二: qicli call ALMemory.getData RobotConfig/Head/HeadId ### 5.4 查询Pepper的BodyId qicli call ALMemory.getData Device/DeviceList/ChestBoard/BodyId ### 5.5 查询隐藏的方法 qicli info XXX –hidden 比如:qicli info ALTabletService --hidden | grep Apk Last modification:October 31st, 2019 at 11:35 am © 允许规范转载 Support If you think my article is useful to you, please feel free to appreciate ×Close Appreciate the author Sweeping payments