Choregraphe Switch between Apps with NAO

133 Views Asked by At

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?

1

There are 1 best solutions below

1
On BEST ANSWER

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))