Reputation: 79
I have created several apps for NAO in Choregraphe and would like to be able to launch them though a single 'Master' application.
Through Master's dialog box I call ^switchFocus(traffic_lights-7xxxx/behavior_1)
and it works fine. It stops Master app and Launches TrafficLights app.
Is there a way to switch back to the Master app once the second app is stopped?
Upvotes: 1
Views: 128
Reputation: 2342
There is an alternate overload for switching focus that supports exactly that. In Python, you could write:
life = self.session().service("ALAutonoumousLife")
life.switchFocus("traffic_lights-7xxxx/behavior_1", 1)
In QiChat, you can theoretically perform this kind of calls. Therefore this should work:
^pCall(ALAutonomousLife(traffic_lights-7xxxx/behavior_1, 1))
Upvotes: 1