15
16

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

NAOqi Pythonによるサンプル(NAOを歩かせる)

Last updated at Posted at 2014-08-27

前回まででWebotsのインストールと、Pythonのライブラリのインストールができたので、早速Pythonのコードを実行してみます。

  1. Webotsを立ち上げる
  2. 以下のスクリプトをPythonで実行
from naoqi import ALProxy
motion = ALProxy("ALMotion", "127.0.0.1", 9559)
motion.setStiffnesses("Body", 1.0)
motion.moveInit()
motion.moveTo(0.5, 0, 0)

motion.moveTo(0.5, 0, 0)の代わりに、motion.post.moveTO(0.5, 0, 0)とすると非同期に実行することが出来ます。これは便利ですね。

simulator walk

15
16
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
15
16

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?