0

I'm looking for solution, how to solve a problem with Pepper and Choreograph. If this is not possible by Choreograph, I will gladly use it anyway. I have a screen (not a tablet),which can be trigged using a webhook. This webhook has options to enable and disable that screen. I would like Pepper to say something and then he turned on screen and said something and turned it off. How to solve it in Choreographe? If not in Choreograhe, someone could help with advice / code.

Thank you !

4

2 回答 2

0

如果你的 screen 可以被 webhook 触发,只需从 Pepper 访问 screen。

一种简单的方法(但效率不高):在 python 框中,输入此代码,例如在 onStart 方法中:

import os
os.system( "wget your_web_adress" )

一旦你验证它可以工作,考虑使用一个专用的 python 模块,比如 urllib。只需在本网站中查找“python 中的 http 请求”以获取更多信息......

于 2020-01-30T09:00:49.200 回答
0

您计划使用的 webhook 肯定会记录在代码示例中。如果你能在 Python 中找到一个,它可能在 Choregraphe 中工作。

于 2020-06-26T07:06:03.627 回答