1

getImageLocal を使用してロボットから画像を取得しようとすると、エラー メッセージが表示されます。これは、コードをロボットで直接実行しているにもかかわらずです。エラーメッセージは次のとおりです。

Traceback (most recent call last):
  File "test.py", line 13, in <module>
    video_device.getImageLocal(handle)
RuntimeError: Uncaught error: Pointer serialization not implemented

このエラーを取得するために使用したコードは次のとおりです (C++ を使用している場合も同じエラーが発生します)。

import qi
import sys

if __name__ == "__main__":
    app = qi.Application(sys.argv)

    # start the eventloop
    app.start()

    video_device = app.session.service("ALVideoDevice")
    handle = video_device.subscribe('handler', 0, 0, 10)

    video_device.getImageLocal(handle)
    video_device.releaseImage(handle)

現在、次を使用してこのコードを実行しています。

python test.py --qi-url=tcp://pepper.local

ここで間違っているのか、それとももっと深刻な根本的な問題があるのか​​ を知りたいです。

4

1 に答える 1