共同のダイアログを起動するためのソフトウェアの方法があります:ALDialog.runDialog()
だから、あなただけの次のコードを使用してボックスを作成することができます。
class MyClass(GeneratedClass):
def __init__(self):
GeneratedClass.__init__(self)
def onLoad(self):
self.dialog = self.session().service("ALDialog")
def onUnload(self):
self.dialog.stopDialog()
def onInput_onStart(self):
self.dialog.runDialog()
#self.onStopped() #activate the output of the box
def onInput_onStop(self):
self.onUnload() #it is recommended to reuse the clean-up as the box is stopped
self.onStopped() #activate the output of the box
出典
2017-09-05 15:53:16
JLS
あなたはChoregrapheスキームを共有することはできますか? (ボックス) – albert
あなたはロボットとの会話をするときに「自律的な生活」と話したいと思うと思います。 – albert
@albertはい、私は基本チャンネルから 'run_dialog_dev'によって実行される独自のダイアログも作成しました。 –