LoginSignup
7
7

More than 5 years have passed since last update.

PEPPER Macのpythonインタプリタでpepperに接続する

Last updated at Posted at 2015-12-14

sshでログインしないでMacからpepperに直接接続する

概要

ChoregrapheをインストールするとSDKがインストールされるので
SDKのパスをpythonに通してから起動する。

手順

1. 下記のようなshellスクリプトを作成する。

naoqi-console

#!/bin/bash

NAOQI_PATH=[Choregarphe.appのパス]/Contents/Resources/lib

# SDKのパスをpythonに通す
export PYTHONPATH=${PYTHONPATH}:${NAOQI_PATH}
export DYLD_LIBRARY_PATH=${DYLD_LIBRARY_PATH}:${NAOQI_PATH}

/usr/bin/python

2. shellスクリプトを実行する

sh naoqi-console

3. naoqiのsdkにパスが通っているpythonのインタプリタが起動する。

$ sh naoqi-console 
Python 2.7.10 (default, Jul 14 2015, 19:46:27) 
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.39)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>>

4. naoqiモジュールをインポートできてればOK

>>> import naoqi

以上

7
7
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
7
7