我在Choregraphe中创建了一个应用程序,并从choregraphe调用了tablet视图,然后我必须将一个值从javascript传递到switch box。我该怎么做呢?我是个舞蹈新手。
发布于 2018-02-09 22:28:01
基本上,使用qimessaging.js从页面中引发一个ALMemory值,然后在内存中订阅该事件。
在你的javascript中,例如使用robotutils.js,你可以在点击回调中这样做:
RobotUtils.onService(function(ALMemory) {
ALMemory.raiseEvent("MyApplication/MyTabletEvent", 42);
});(你也可以directly use qimessaging js,robotutils只是添加了一些语法糖,让它更容易在浏览器中测试,而不需要安装到机器人上)
..。然后在Choregraphe中,将此ALMemory事件链接到您的框,如示例in step 3 of this tutorial所示
https://stackoverflow.com/questions/48705455
复制相似问题