Search code examples
pepperchoregraphe

Choregraphe 2.5.5: More than 20 outputs on Dialog Box


I'm using Choregraphe 2.5.5 to program Pepper. I have one topic with lots of outputs (over 20) which Chroregraphe doesn't like. So, I used two dialog boxes with the same topic (made in Choregraphe 2.1.4). Now on my virtual robot, it basically only runs on of the dialog boxes, not both (which is what I want and what happened in Choregraphe 2.1.4). Is there anything I can do to have more than 20 outputs on a topic with a dialog box? Thanks.


Solution

  • Having 20 outputs to your box is indeed a sign that your project will be complicated and hard to maintain ... do you really need all those outputs?

    Some possibilities:

    • Split this into several dialogue topics
    • Make outputs that are strings or numbers instead of being empty, containing a code indicating what to do, and have a switch (as you suggest in a comment). This makes sense if some outputs are, for example "finishSUccessfully", "finishFailure"; or ""goToStep1", "goToStep2", etc.
    • Do more logic in Python, less in dialogue

    ... the specifics are really going to depend on your app and why you need so many outputs.