Universal Robots Forum

Insert collapsed nodes programmatically

When developing templates, it can be the case that there exist multiple sequences or hooks that the user needs to interact with and customize. To the best of my knowledge, Polyscope will always insert them expanded, which is undesired.

Consider a pick and place example. Ideally, this is what I would like to show upon insertion:

Robot program
  Pick and place       <-- Top-level template node
    Object detection   <-- Collapsed sequence nodes
    Pick
    Place

The above clearly shows the structure of the template, and allows the user to inspect each sequence node as desired. However, what one currently gets in Polyscope is a fully expanded tree, which is overwhelming and removes the emphasis from the separation into three main sequences (object detection, pick and place). In some cases, the fully expanded tree might not even fit in the screen.

Robot program
  Pick and place       <-- Top-level template node
    Object detection   <-- Fully expanded sequence node
      MoveJ
        Stuff
      Stuff
    Pick               <-- Another fully expanded sequence node
      MoveJ
        Stuff
      MoveL
        Stuff
      Stuff
    Place              <-- Another fully expanded sequence node
      MoveJ
        Stuff
      Stuff

It would be great if the SDK would allow inserting collapsed nodes, and provide the user with a cleaner experience.

5 Likes

@adolfo
Thanks for this feature request. I have noted this.