Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Have drop down options for ports #54

Open
tony-p opened this issue Aug 12, 2024 · 0 comments
Open

Feature Request: Have drop down options for ports #54

tony-p opened this issue Aug 12, 2024 · 0 comments

Comments

@tony-p
Copy link

tony-p commented Aug 12, 2024

Is your feature request related to a problem? Please describe.
Many input ports often require a valid value from a limited value selection, relying only on free input in these scenarios is fragile and requires intimate knowledge of underlying behaviour

Describe the solution you'd like
It would be great to be able to define options in the imported tree model that could then appear as drop down values in Groot. (Free input should still be allowed to allow for ports instead of constants)

<input_port name="port_name" default="default_value" type="std::string">Port description
  <option>Value_1</option>
  <option>Value_2</option>
  <option>Value_3</option>
</input_port>

This could be used to help solve enum sets (magic enum i already supported on an underlying level), but also string sets. I would also like to use this to inject valid ROS actions/topics/service addresses for node type into the tree model after initial generation to make them available in groot.

Describe alternatives you've considered
This is the only real valid solution I have thought of so far besides sticking with manual free input

Additional context
N/A

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant