https://github.com/open-rmf/rmf_site/pull/163 added the ability to spawn menus and submenus through entities.
This works well, however it can be tricky to make sure menus are only displayed in a specific state which means adding a new menu entry to the site editor will also display it for the workcell editor and viceversa, while it may not be relevant (i.e. adding lat/lon coordinates to a workcell, or exporting a site to Urdf).
Possible solutions include:
Changing the way the menu entities are spawned from the current (resource that is spawned at world creation time) to a spawn on state enter and despawn on state exit.
Change the MenuItem itself to contain some logic that allows this kind of filtering, for example a set of states where it should be displayed or event an arbitrary closure.
https://github.com/open-rmf/rmf_site/pull/163 added the ability to spawn menus and submenus through entities. This works well, however it can be tricky to make sure menus are only displayed in a specific state which means adding a new menu entry to the site editor will also display it for the workcell editor and viceversa, while it may not be relevant (i.e. adding lat/lon coordinates to a workcell, or exporting a site to Urdf).
Possible solutions include:
MenuItem
itself to contain some logic that allows this kind of filtering, for example a set of states where it should be displayed or event an arbitrary closure.