LoginSignup
6
7

More than 5 years have passed since last update.

PEPPER pythonインタプリタでデバッグする

Posted at

pythonインタプリタでデバッグするメモ

概要

  • 検証するときや、デバッグするときに便利

前提

  • sshでpepperにログインする。

使用法

1. pythonコマンドでインタプリタを起動

$ python
Python 2.7.3 (default, Sep  8 2015, 19:02:10) 
[GCC 4.5.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> 

2. naoqiモジュールからALProxyをインポート

>>> from naoqi import ALProxy

3. 使いたいサービスに接続

>>> m = ALProxy("ALMemory", "localhost", 9559) # 接続先はlocalhost, ポートは9559を指定する。

4. APIをコールする

>>> m.raiseEvent("Hoge/TestEvent", "hugahuga")

以上。

6
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
6
7