PEPPER(软银机器人):我如何发送“外部"文件?数据(例如,传感器)到 Coregraphe 软件? [英] PEPPER (Softbank Robotics): How can I send "external" data (e.g., sensor) to Coregraphe Software?

查看:31
本文介绍了PEPPER(软银机器人):我如何发送“外部"文件?数据(例如,传感器)到 Coregraphe 软件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将外部"数据(例如,字符串、传感器值等)导入 Coregraphe 环境.例如,在更大的上下文中,我需要以某种方式发送一个字母A".基于 Coregraphe 的系统必须识别它并启动预设操作.

I'm trying to import "external" data (e.g., a string, a sensor value, etc.) to Coregraphe environment. In a more large context, I need, for example, to send - in a certain way - a letter "A". The Coregraphe-based system must recognize it and actuate a preset operation.

到目前为止,我尝试通过 PuTTY 编写日志消息,方法是登录 Pepper 机器人并使用:

Up to now, I tried to write a log message via PuTTY, by logging in Pepper robot and using:

qicli log-send -m A

我可以在 Coregraphe 环境的日志 INFO 中看到它(即消息):

I can see it (i.e., the message) in the log INFO of the Coregraphe environment:

[INFO ] qicli.qilog.logsend /home/opennao/work/release-2.5/sdk/libqi/bin/qicli/qilog.cpp:subCmd_logSend:143 hello there, do you read me?

但我无法提取它进行进一步处理.

but I'm not able to extract it for further processing.

有人可以帮助我吗?

非常感谢你们.

乔瓦尼

推荐答案

ALMemory 将是这样做的标准方法.您可以从 Python、javascript 或命令行调用它,例如

ALMemory would be the standard way of doing that. You can call it from Python, javascript or the command line, for example

qicli 调用 ALMemory.raiseEvent MyCustomEvent MyValue

qicli call ALMemory.raiseEvent MyCustomEvent MyValue

然后您可以在 Choregraphe 中查看此 ALMemory 值,例如参见本教程:

You can then watch this ALMemory value in Choregraphe, for example see this tutorial:

https://developer.softbankrobotics.com/pepper-naoqi-25/naoqi-developer-guide/other-tutorials/choregraphe-tutorials/creating-python-boxes#choregraphe-tuto-右保险杠记忆

您也可以直接在 Python 或 Javascript(或 C++ 等)中查看此值

You can also watch this value directly in Python or Javascript (or C++ etc.)

这篇关于PEPPER(软银机器人):我如何发送“外部"文件?数据(例如,传感器)到 Coregraphe 软件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆