Hopefully this is a basic question to answer, but I couldn’t find the answer in any of the tutorials, or an existing forum topic.
With the .NET API, you can retrieve a list of programs for a given IRobotExecutor, and create a new one, with IRobotExecutor::CreateProgram(string). When I do this, I can confirm that the result is !=null, but I cannot see in the GUI tree any of these new programs. I can only see the default (“Main”), and the list of “Subprograms”
The IProgram interface has the AddRoutine(string) method. If I call this on the default (“Main”) IProgram, I can see these routines populated in the “Subprogram” panel, where it is listed in the same level of hierarchy as “Main”, even though it appears as though “Main” in the backend exists at the higher-level.
So I guess my question is: is there a standard use case for maintaining multiple IPrograms with a single IRobotExecutor? If so, how does one access them through the standard GUI, or is it necessary to create new GUI elements to find them? Is it more conventional to maintain a single IProgram, and simply manipulate SubPrograms/Routines within it? Is there any different between a SubProgram or Routine in the Visual-Components ecosystem, or are these synonymous?
Thanks!